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