# Copyright (c) 2021 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("//foundation/communication/dsoftbus/dsoftbus.gni") if (dsoftbus_standard_feature_disc_coap == true) { disc_coap_src = [ "$dsoftbus_root_path/core/discovery/coap/src/disc_coap.c", "$dsoftbus_root_path/core/discovery/coap/src/disc_nstackx_adapter.c", ] } else { disc_coap_src = [ "$dsoftbus_root_path/core/discovery/coap/src/disc_coap_virtual.c" ] } disc_coap_inc = [ "$dsoftbus_root_path/core/discovery/coap/include", "$dsoftbus_root_path/interfaces/kits/bus_center", "$dsoftbus_root_path/interfaces/kits/common", "$dsoftbus_root_path/interfaces/kits/discovery", "//third_party/cJSON", ] disc_coap_deps = [] if (defined(ohos_lite)) { if (ohos_kernel_type == "liteos_m") { disc_coap_deps += [ "$dsoftbus_root_path/components/nstackx_mini/nstackx_ctrl:nstackx_ctrl", ] } else { disc_coap_deps += [ "$dsoftbus_root_path/components/nstackx/nstackx_ctrl:nstackx_ctrl" ] } } else { disc_coap_deps += [ "$dsoftbus_root_path/components/nstackx/nstackx_ctrl:nstackx_ctrl" ] }