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("../../dsoftbus.gni") 15 16disc_sdk_src = 17 [ "$dsoftbus_root_path/sdk/discovery/service/src/client_disc_service.c" ] 18disc_sdk_inc = [ 19 "$dsoftbus_root_path/sdk/discovery/ipc/include", 20 "$dsoftbus_root_path/sdk/discovery/manager/include", 21 "$dsoftbus_root_path/sdk/discovery/service/include", 22] 23if (defined(ohos_lite)) { 24 disc_sdk_inc += [ "$dsoftbus_root_path/core/discovery/interface" ] 25 if (ohos_kernel_type == "liteos_m") { 26 import("../../core/discovery/disc.gni") 27 disc_sdk_src += [ 28 "$dsoftbus_root_path/sdk/discovery/ipc/mini/disc_server_proxy.c", 29 "$dsoftbus_root_path/sdk/discovery/manager/src/client_disc_manager.c", 30 ] 31 disc_sdk_inc += disc_server_inc 32 } else { 33 disc_sdk_src += [ 34 "$dsoftbus_root_path/sdk/discovery/ipc/small/disc_server_proxy.c", 35 "$dsoftbus_root_path/sdk/discovery/manager/src/client_disc_manager.c", 36 ] 37 } 38} else { 39 disc_sdk_inc += [ 40 "$dsoftbus_root_path/sdk/discovery/ipc/$os_type/include", 41 "$dsoftbus_root_path/core/frame/$os_type/init/include", 42 "$dsoftbus_root_path/core/transmission/common/include", 43 "$dsoftbus_root_path/interfaces/kits/transport", 44 "//utils/system/safwk/native/include", 45 ] 46 disc_sdk_src += [ 47 "$dsoftbus_root_path/sdk/discovery/ipc/$os_type/src/disc_server_proxy.cpp", 48 "$dsoftbus_root_path/sdk/discovery/ipc/$os_type/src/disc_server_proxy_standard.cpp", 49 "$dsoftbus_root_path/sdk/discovery/manager/src/client_disc_manager.c", 50 ] 51} 52