• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("../../dsoftbus.gni")
19
20DISC_SERVER_DEFINES = []
21disc_server_src = []
22disc_server_inc = []
23disc_server_deps = []
24disc_server_external_deps = []
25
26disc_server_inc += [
27  "$dsoftbus_root_path/core/discovery/manager/include",
28  "$dsoftbus_root_path/core/discovery/interface",
29  "$dsoftbus_root_path/core/discovery/coap/interface",
30]
31disc_server_inc += disc_event_manager_inc
32disc_server_src += disc_event_manager_src
33disc_server_deps += disc_event_manager_deps
34disc_server_src += [
35  "$dsoftbus_root_path/core/discovery/manager/src/disc_manager.c",
36  "$dsoftbus_root_path/core/discovery/manager/src/softbus_disc_server.c",
37]
38
39if (!dsoftbus_feature_ex_kits) {
40  DISC_SERVER_DEFINES += [ "DISC_COMMUNITY" ]
41}
42if (defined(ohos_lite)) {
43  if (ohos_kernel_type != "liteos_m") {
44    disc_server_deps += [
45      "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single",
46    ]
47  }
48  disc_server_src += [ "$dsoftbus_root_path/core/discovery/common/src/locale_config_wrapper_mock.cpp" ]
49} else {
50  disc_server_external_deps += [ "c_utils:utils" ]
51
52  if (support_i18n && qemu_arm_disable) {
53    disc_server_external_deps += [ "i18n:intl_util" ]
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