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