1c1d0c72aSopenharmony_ci# Copyright (c) 2022-2024 Huawei Device Co., Ltd.
2c1d0c72aSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3c1d0c72aSopenharmony_ci# you may not use this file except in compliance with the License.
4c1d0c72aSopenharmony_ci# You may obtain a copy of the License at
5c1d0c72aSopenharmony_ci#
6c1d0c72aSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7c1d0c72aSopenharmony_ci#
8c1d0c72aSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9c1d0c72aSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10c1d0c72aSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11c1d0c72aSopenharmony_ci# See the License for the specific language governing permissions and
12c1d0c72aSopenharmony_ci# limitations under the License.
13c1d0c72aSopenharmony_ci
14c1d0c72aSopenharmony_ciimport("//drivers/hdf_core/adapter/uhdf2/uhdf.gni")
15c1d0c72aSopenharmony_cihdf_adapter_path = "."
16c1d0c72aSopenharmony_ci
17c1d0c72aSopenharmony_ciif (defined(ohos_lite)) {
18c1d0c72aSopenharmony_ci  group("uhdf_entry") {
19c1d0c72aSopenharmony_ci    deps = [
20c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf/manager:hdf_core",
21c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf/platform:hdf_platform",
22c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf/posix:hdf_posix_osal",
23c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf/posix/old:hdf_posix",
24c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf2/hdi:libhdi",
25c1d0c72aSopenharmony_ci    ]
26c1d0c72aSopenharmony_ci  }
27c1d0c72aSopenharmony_ci  group("uhdf_test_entry") {
28c1d0c72aSopenharmony_ci    deps = [
29c1d0c72aSopenharmony_ci      "$hdf_adapter_path/build/test_common:libhdf_test_common",
30c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf/test:hdf_test_uhdf",
31c1d0c72aSopenharmony_ci    ]
32c1d0c72aSopenharmony_ci  }
33c1d0c72aSopenharmony_ci} else {
34c1d0c72aSopenharmony_ci  group("uhdf_entry") {
35c1d0c72aSopenharmony_ci    hdf_framework_path = "./../framework"
36c1d0c72aSopenharmony_ci
37c1d0c72aSopenharmony_ci    deps = [
38c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf2/hdi:libhdi",
39c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf2/host:hdf_devhost",
40c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf2/host:libhdf_host",
41c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf2/ipc:libhdf_ipc_adapter",
42c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf2/manager:hdf_devmgr",
43c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf2/manager:hdf_devmgr.cfg",
44c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf2/manager:hdf_devmgr.para.dac",
45c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf2/manager:hdf_pnp.cfg",
46c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf2/platform:libhdf_platform",
47c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf2/pub_utils:libpub_utils",
48c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf2/utils:libhdf_utils",
49c1d0c72aSopenharmony_ci      "$hdf_framework_path/tools/hdf_dbg:hdf_dbg",
50c1d0c72aSopenharmony_ci    ]
51c1d0c72aSopenharmony_ci
52c1d0c72aSopenharmony_ci    if (hdf_core_default_peripheral_config) {
53c1d0c72aSopenharmony_ci      deps += [ "./uhdf2/host/peripheral:hdf_peripheral.cfg" ]
54c1d0c72aSopenharmony_ci    }
55c1d0c72aSopenharmony_ci
56c1d0c72aSopenharmony_ci    if (with_sample) {
57c1d0c72aSopenharmony_ci      deps += [
58c1d0c72aSopenharmony_ci        "$hdf_adapter_path/uhdf2/host/test/unittest/sample1_driver:libsample1_driver",
59c1d0c72aSopenharmony_ci        "$hdf_adapter_path/uhdf2/host/test/unittest/sample_driver:libsample_driver",
60c1d0c72aSopenharmony_ci      ]
61c1d0c72aSopenharmony_ci    }
62c1d0c72aSopenharmony_ci  }
63c1d0c72aSopenharmony_ci  group("uhdf_test_entry") {
64c1d0c72aSopenharmony_ci    testonly = true
65c1d0c72aSopenharmony_ci    deps = [
66c1d0c72aSopenharmony_ci      "$hdf_adapter_path/build/test_common:libhdf_test_common",
67c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf2/hdi/test:unittest",
68c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf2/host/test:unittest",
69c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf2/osal/test:unittest",
70c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf2/shared/test:unittest",
71c1d0c72aSopenharmony_ci      "$hdf_adapter_path/uhdf2/test:hdf_test_uhdf",
72c1d0c72aSopenharmony_ci    ]
73c1d0c72aSopenharmony_ci  }
74c1d0c72aSopenharmony_ci}
75