• 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/dsoftbus.gni")
15
16if (defined(ohos_lite)) {
17  import("//build/lite/config/component/lite_component.gni")
18
19  executable("disc_coap_test") {
20    sources = [ "disc_coap_test.c" ]
21    include_dirs = [
22      "${dsoftbus_root_path}/core/discovery/coap/include",
23      "${dsoftbus_root_path}/core/common/include",
24      "$dsoftbus_root_path/core/discovery/interface",
25      "$dsoftbus_root_path/interfaces/kits/discovery",
26      "//third_party/bounds_checking_function/include",
27    ]
28    cflags = [
29      "-Wall",
30      "-std=c99",
31    ]
32    ldflags = [
33      "-lrt",
34      "-lpthread",
35      "-Wl,-rpath-link=$ohos_root_path/$root_out_dir",
36    ]
37    deps = [
38      "${dsoftbus_root_path}/core/discovery/coap:dsoftbus_disc_coap",
39      "//third_party/bounds_checking_function:libsec_shared",
40    ]
41  }
42} else {
43  import("//build/ohos.gni")
44
45  ohos_executable("disc_coap_test") {
46    install_enable = true
47    sources = [ "disc_coap_test.c" ]
48    include_dirs = [
49      "${dsoftbus_root_path}/core/discovery/coap/include",
50      "${dsoftbus_root_path}/core/common/include",
51      "$dsoftbus_root_path/core/discovery/interface",
52      "$dsoftbus_root_path/interfaces/kits/discovery",
53      "//third_party/bounds_checking_function/include",
54    ]
55    cflags = [
56      "-Wall",
57      "-std=c99",
58    ]
59    deps = [ "$dsoftbus_root_path/core/frame/$os_type/server:softbus_server" ]
60    part_name = "softbus_L2"
61    subsystem_name = "communication"
62  }
63}
64