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("../../dsoftbus.gni") 18 19disc_server_src = ble_discovery_src + disc_coap_src + disc_event_manager_src 20disc_server_inc = ble_discovery_inc + disc_coap_inc + disc_event_manager_inc 21disc_server_deps = ble_discovery_deps + disc_coap_deps + disc_event_manager_deps 22disc_server_external_deps = [] 23disc_server_src += [ 24 "$dsoftbus_root_path/core/discovery/manager/src/disc_manager.c", 25 "$dsoftbus_root_path/core/discovery/manager/src/softbus_disc_server.c", 26] 27disc_server_inc += [ 28 "$dsoftbus_root_path/core/discovery/ipc/include", 29 "$dsoftbus_root_path/core/discovery/ipc/include", 30 "$dsoftbus_root_path/core/discovery/manager/include", 31 "$dsoftbus_root_path/core/discovery/interface", 32 "$dsoftbus_root_path/core/common/dfx/hisysevent_adapter/include", 33] 34if (defined(ohos_lite)) { 35 if (ohos_kernel_type == "liteos_m") { 36 disc_server_src += 37 [ "$dsoftbus_root_path/core/discovery/ipc/mini/disc_client_proxy.c" ] 38 disc_server_inc += [ "$dsoftbus_root_path/sdk/discovery/manager/include" ] 39 } else { 40 disc_server_src += 41 [ "$dsoftbus_root_path/core/discovery/ipc/small/disc_client_proxy.c" ] 42 disc_server_deps += [ 43 "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single", 44 ] 45 } 46} else { 47 disc_server_src += [ 48 "$dsoftbus_root_path/core/discovery/ipc/$os_type/src/disc_client_proxy.cpp", 49 "$dsoftbus_root_path/core/discovery/ipc/$os_type/src/disc_client_proxy_standard.cpp", 50 ] 51 disc_server_inc += [ 52 "$dsoftbus_root_path/core/discovery/ipc/$os_type/include", 53 "//utils/system/safwk/native/include", 54 ] 55 disc_server_external_deps += [ "c_utils:utils" ] 56} 57