1# Copyright (c) 2025 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 16ohos_shared_library("linkenhance") { 17 18 include_dirs = [ 19 "$dsoftbus_root_path/interfaces/kits/connection", 20 "$dsoftbus_sdk_path/napi/link_enhance/include", 21 ] 22 23 sources = [ 24 "$dsoftbus_sdk_path/napi/link_enhance/src/napi_link_enhance_connection.cpp", 25 "$dsoftbus_sdk_path/napi/link_enhance/src/napi_link_enhance_module.cpp", 26 "$dsoftbus_sdk_path/napi/link_enhance/src/napi_link_enhance_server.cpp", 27 "$dsoftbus_sdk_path/napi/link_enhance/src/napi_link_enhance_utils.cpp", 28 "$dsoftbus_sdk_path/napi/link_enhance/src/napi_link_enhance_object.cpp", 29 ] 30 31 sanitize = { 32 cfi = true 33 cfi_cross_dso = true 34 debug = false 35 } 36 37 deps = [ 38 "$dsoftbus_dfx_path:softbus_dfx", 39 "$dsoftbus_root_path/adapter:softbus_adapter", 40 "$dsoftbus_root_path/core/common:softbus_utils", 41 "$dsoftbus_root_path/sdk:softbus_client", 42 "$dsoftbus_dfx_path/dumper/legacy:softbus_dfx_dump", 43 ] 44 45 external_deps = [ 46 "c_utils:utils", 47 "bounds_checking_function:libsec_shared", 48 "hilog:libhilog", 49 "napi:ace_napi", 50 ] 51 52 relative_install_dir = "module/distributedsched" 53 54 subsystem_name = "communication" 55 part_name = "dsoftbus" 56}