1# Copyright (c) 2024-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("//build/ohos.gni") 15import("//foundation/ability/dmsfwk/dmsfwk.gni") 16 17config("abilityconnectionmanager_napi_public_config") { 18 visibility = [ ":*" ] 19 include_dirs = [ 20 "${dms_path}/common/include", 21 "${dms_path}/interfaces/innerkits/common/include", 22 "${dms_path}/interfaces/kits/napi/ability_connection_manager", 23 "${dms_path}/services/dtbcollabmgr/include/ability_connection_manager", 24 "${dms_path}/services/dtbcollabmgr/include/av_trans_stream_provider", 25 "${dms_path}/services/dtbcollabmgr/include/channel_manager", 26 ] 27} 28 29ohos_shared_library("abilityconnectionmanager_napi") { 30 branch_protector_ret = "pac_ret" 31 sanitize = { 32 cfi = true 33 cfi_cross_dso = true 34 debug = false 35 } 36 37 install_enable = true 38 39 sources = [ 40 "ability_connection_manager_module.cpp", 41 "js_ability_connection_manager.cpp", 42 ] 43 44 public_configs = [ ":abilityconnectionmanager_napi_public_config" ] 45 46 deps = [ 47 "${dms_path}/services/dtbcollabmgr/src/ability_connection_manager:distributed_ability_connection_manager", 48 "${dms_path}/services/dtbcollabmgr/src/channel_manager:dtbcollab_channel_manager", 49 ] 50 51 external_deps = [ 52 "ability_runtime:ability_context_native", 53 "ability_runtime:abilitykit_native", 54 "ability_runtime:extensionkit_native", 55 "ability_runtime:napi_base_context", 56 "ability_runtime:napi_common", 57 "ability_runtime:runtime", 58 "ability_runtime:ui_extension", 59 "access_token:libtokenid_sdk", 60 "av_codec:av_codec_client", 61 "av_codec:av_codec_media_engine_filters", 62 "av_codec:native_media_codecbase", 63 "cJSON:cjson", 64 "c_utils:utils", 65 "dsoftbus:softbus_client", 66 "graphic_surface:surface", 67 "hiappevent:hiappevent_innerapi", 68 "hilog:libhilog", 69 "hisysevent:libhisysevent", 70 "image_framework:image", 71 "ipc:ipc_core", 72 "media_foundation:media_foundation", 73 "napi:ace_napi", 74 ] 75 76 relative_install_dir = "module/distributedsched" 77 78 subsystem_name = "ability" 79 part_name = "dmsfwk" 80} 81