• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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("//foundation/communication/dsoftbus/core/discovery/ble/disc_ble.gni")
15import("//foundation/communication/dsoftbus/core/discovery/coap/disc_coap.gni")
16import("//foundation/communication/dsoftbus/dsoftbus.gni")
17
18disc_server_src = ble_discovery_src + disc_coap_src
19disc_server_inc = ble_discovery_inc + disc_coap_inc
20disc_server_deps = ble_discovery_deps + disc_coap_deps
21disc_server_external_deps = []
22disc_server_src += [
23  "$dsoftbus_root_path/core/discovery/manager/src/disc_manager.c",
24  "$dsoftbus_root_path/core/discovery/manager/src/softbus_disc_server.c",
25]
26disc_server_inc += [
27  "$dsoftbus_root_path/core/discovery/ipc/include",
28  "$dsoftbus_root_path/core/discovery/ipc/include",
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 (defined(ohos_lite)) {
34  if (ohos_kernel_type == "liteos_m") {
35    disc_server_src +=
36        [ "$dsoftbus_root_path/core/discovery/ipc/mini/disc_client_proxy.c" ]
37    disc_server_inc += [ "$dsoftbus_root_path/sdk/discovery/manager/include" ]
38  } else {
39    disc_server_src +=
40        [ "$dsoftbus_root_path/core/discovery/ipc/small/disc_client_proxy.c" ]
41    disc_server_deps += [
42      "//foundation/communication/ipc/interfaces/innerkits/c/ipc:ipc_single",
43    ]
44  }
45} else {
46  disc_server_src += [
47    "$dsoftbus_root_path/core/discovery/ipc/$os_type/src/disc_client_proxy.cpp",
48    "$dsoftbus_root_path/core/discovery/ipc/$os_type/src/disc_client_proxy_standard.cpp",
49  ]
50  disc_server_inc += [
51    "$dsoftbus_root_path/core/discovery/ipc/$os_type/include",
52    "//utils/system/safwk/native/include",
53  ]
54  disc_server_external_deps += [ "c_utils:utils" ]
55}
56