1# Copyright (c) 2021-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 14import("../../core/discovery/ble/disc_ble.gni") 15import("../../core/discovery/coap/disc_coap.gni") 16import("../../core/discovery/event_manager/disc_event_manager.gni") 17import("../../core/discovery/usb/disc_usb.gni") 18import("../../core/discovery/virlink/disc_virlink.gni") 19import("../../dsoftbus.gni") 20 21DISC_SERVER_DEFINES = [] 22disc_server_src = [] 23disc_server_inc = [] 24disc_server_deps = [] 25disc_server_external_deps = [] 26 27disc_server_inc += [ 28 "$dsoftbus_root_path/core/discovery/manager/include", 29 "$dsoftbus_root_path/core/discovery/interface", 30 "$dsoftbus_root_path/core/discovery/coap/interface", 31 "$dsoftbus_root_path/interfaces/kits/disc", 32 "$dsoftbus_root_path/core/discovery/interface", 33] 34disc_server_inc += disc_event_manager_inc 35disc_server_src += disc_event_manager_src 36disc_server_deps += disc_event_manager_deps 37disc_server_src += [ 38 "$dsoftbus_root_path/core/discovery/manager/src/disc_manager.c", 39 "$dsoftbus_root_path/core/discovery/manager/src/softbus_disc_server.c", 40] 41 42DISC_SERVER_DEFINES += [ "DISC_COMMUNITY" ] 43if (defined(ohos_lite)) { 44 if (ohos_kernel_type != "liteos_m") { 45 disc_server_deps += [ 46 "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single", 47 ] 48 } 49 disc_server_src += [ "$dsoftbus_root_path/core/discovery/common/src/locale_config_wrapper_mock.cpp" ] 50} else { 51 disc_server_external_deps += [ "c_utils:utils" ] 52 53 if (qemu_arm_disable) { 54 disc_server_src += [ 55 "$dsoftbus_root_path/core/discovery/common/src/locale_config_wrapper.cpp", 56 ] 57 } else { 58 disc_server_src += [ "$dsoftbus_root_path/core/discovery/common/src/locale_config_wrapper_mock.cpp" ] 59 } 60} 61 62disc_server_src += ble_discovery_src 63disc_server_inc += ble_discovery_inc 64disc_server_deps += ble_discovery_deps 65 66disc_server_src += disc_coap_src 67disc_server_inc += disc_coap_inc 68disc_server_deps += disc_coap_deps 69disc_server_external_deps += disc_coap_external_deps 70 71disc_server_src += usb_disc_src 72disc_server_inc += usb_disc_inc 73disc_server_deps += usb_disc_deps 74disc_server_external_deps += usb_disc_external_deps 75 76disc_server_src += disc_virlink_src 77disc_server_inc += disc_virlink_inc 78disc_server_deps += disc_virlink_deps 79