# Copyright (c) 2021-2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("../../../dsoftbus.gni") import("../../common/dfx/dsoftbus_dfx.gni") if (dsoftbus_feature_disc_coap == true) { disc_coap_src = [ "$dsoftbus_root_path/core/discovery/coap/common/src/disc_coap_parser.c", "$dsoftbus_root_path/core/discovery/coap/nstackx_coap/src/disc_coap.c", "$dsoftbus_root_path/core/discovery/coap/nstackx_coap/src/disc_nstackx_adapter.c", ] } else { disc_coap_src = [ "$dsoftbus_root_path/core/discovery/coap/interface/disc_coap_virtual.c", ] } disc_coap_inc = [ "$dsoftbus_root_path/core/discovery/coap/interface", "$dsoftbus_root_path/core/discovery/coap/common/include", "$dsoftbus_root_path/core/discovery/coap/nstackx_coap/include", "$dsoftbus_root_path/interfaces/kits/bus_center", "$dsoftbus_root_path/interfaces/kits/common", "$dsoftbus_root_path/interfaces/kits/discovery", "$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/core/common/dfx/hisysevent_adapter/include", "//third_party/cJSON", ] if (dsoftbus_feature_ex_kits) { import( "$dsoftbus_root_path/dsoftbus_enhance/core/discovery/coap/coap_enhance.gni") disc_coap_src += coap_enhance_src disc_coap_inc += coap_enhance_inc } else { disc_coap_src += [ "$dsoftbus_root_path/core/discovery/coap/nstackx_coap/src/disc_coap_capability.c" ] } disc_coap_deps = [ "$dsoftbus_dfx_path/anonymize:softbus_dfx_anonymizer", "$dsoftbus_dfx_path/log:softbus_dfx_log", "$dsoftbus_root_path/components/nstackx/nstackx_ctrl:nstackx_ctrl", ]