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_DEFINES = [] 20disc_server_src = ble_discovery_src + disc_coap_src + disc_event_manager_src 21disc_server_inc = ble_discovery_inc + disc_coap_inc + disc_event_manager_inc 22disc_server_deps = ble_discovery_deps + disc_coap_deps + disc_event_manager_deps 23disc_server_external_deps = disc_coap_external_deps 24disc_server_src += [ 25 "$dsoftbus_root_path/core/discovery/manager/src/disc_manager.c", 26 "$dsoftbus_root_path/core/discovery/manager/src/softbus_disc_server.c", 27] 28disc_server_inc += [ 29 "$dsoftbus_root_path/core/discovery/manager/include", 30 "$dsoftbus_root_path/core/discovery/interface", 31 "$dsoftbus_root_path/core/common/dfx/hisysevent_adapter/include", 32] 33if (!dsoftbus_feature_ex_kits) { 34 DISC_SERVER_DEFINES += [ "DISC_COMMUNITY" ] 35} 36if (defined(ohos_lite)) { 37 if (ohos_kernel_type == "liteos_m") { 38 } else { 39 disc_server_deps += [ 40 "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single", 41 ] 42 } 43} else { 44 disc_server_external_deps += [ "c_utils:utils" ] 45} 46