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. 13import("../dsoftbus.gni") 14ohos_shared_library("proxychannelmanager") { 15 include_dirs = [ 16 "common/include" 17 ] 18 sources = [ 19 "br_proxy_module.c", 20 "common/src/softbus_napi_utils.c", 21 ] 22 sanitize = { 23 cfi = true 24 cfi_cross_dso = true 25 debug = false 26 } 27 28 deps = [ 29 "$dsoftbus_dfx_path:softbus_dfx", 30 "$dsoftbus_root_path/adapter:softbus_adapter", 31 "$dsoftbus_root_path/core/common:softbus_utils", 32 "$dsoftbus_root_path/sdk:softbus_client", 33 "$dsoftbus_root_path/core/frame:softbus_server", 34 "$dsoftbus_dfx_path/dumper/legacy:softbus_dfx_dump" 35 ] 36 37 external_deps = [ 38 "c_utils:utils", 39 "bounds_checking_function:libsec_shared", 40 "hilog:libhilog", 41 "napi:ace_napi", 42 ] 43 44 relative_install_dir = "module/distributedsched" 45 46 subsystem_name = "communication" 47 part_name = "dsoftbus" 48} 49 50ohos_shared_library("br_proxy_adapter") { 51 sanitize = { 52 cfi = true 53 cfi_cross_dso = true 54 debug = false 55 } 56 sources = [] 57 if (is_standard_system) { 58 sources += [ 59 "br_proxy_adapter.cpp", 60 ] 61 external_deps = [ 62 "c_utils:utils", 63 "ability_runtime:ability_manager", 64 "bundle_framework:appexecfwk_base", 65 "bundle_framework:appexecfwk_core", 66 "ipc:ipc_single", 67 "samgr:samgr_proxy", 68 ] 69 } else { 70 sources += [ "br_proxy_adapter_virtual.cpp" ] 71 } 72 73 include_dirs = [ 74 "$dsoftbus_root_path/interfaces/kits/common", 75 ] 76 subsystem_name = "communication" 77 part_name = "dsoftbus" 78} 79 80group("br_proxy") { 81 deps = [ 82 ":proxychannelmanager", 83 ":br_proxy_adapter", 84 ] 85}