1# Copyright (c) 2021-2022 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 14import("//build/ohos_var.gni") 15 16import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 17import("//test/xts/tools/build/suite.gni") 18 19module_output_path = "hdf/bluetooth" 20 21###########################palTest########################### 22 23ohos_moduletest_suite("HatsBluetoothHdiTest") { 24 module_out_path = module_output_path 25 sources = [ 26 "bluetooth_hci_callback_impl.cpp", 27 "bluetooth_hci_services_test.cpp", 28 ] 29 30 deps = [ 31 "//drivers/peripheral/bluetooth/hci/hdi_service:hdi_bluetooth_hci_service", 32 "//third_party/googletest:gmock_main", 33 "//third_party/googletest:gtest_main", 34 ] 35 36 include_dirs = [ 37 "include", 38 "//drivers/peripheral/bluetooth/hci/hdi_service", 39 "//drivers/peripheral/bluetooth/hci/hdi_service/implement", 40 ] 41 42 if (is_standard_system) { 43 external_deps = [ 44 "c_utils:utils", 45 "drivers_interface_bluetooth:libbluetooth_hci_proxy_1.0", 46 "hdf_core:libhdf_host", 47 "hdf_core:libhdf_ipc_adapter", 48 "hdf_core:libhdf_utils", 49 "hdf_core:libhdi", 50 "hiviewdfx_hilog_native:libhilog", 51 ] 52 } else { 53 external_deps = [ "hilog:libhilog" ] 54 } 55 external_deps += [ "ipc:ipc_single" ] 56 57 subsystem_name = "hdf" 58 part_name = "drivers_peripheral_bluetooth" 59} 60 61###########################end########################### 62 63