• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-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("//build/ohos_var.gni")
16import("//foundation/ability/dmsfwk/dmsfwk.gni")
17
18group("unittest") {
19  testonly = true
20  deps = [ "test:unittest" ]
21}
22
23config("distributed_ability_manager_config") {
24  visibility = [ ":*" ]
25  visibility += [ "./test/*" ]
26  include_dirs = [ "include/" ]
27  defines = []
28  if (os_account_part) {
29    defines += [ "OS_ACCOUNT_PART" ]
30  }
31}
32
33ohos_shared_library("distributed_ability_manager_svr") {
34  branch_protector_ret = "pac_ret"
35  sanitize = {
36    boundary_sanitize = true
37    cfi = true
38    cfi_cross_dso = true
39    debug = false
40    integer_overflow = true
41    ubsan = true
42  }
43
44  install_enable = true
45  sources = [
46    "src/continuation_manager/app_connection_stub.cpp",
47    "src/continuation_manager/app_device_callback_stub.cpp",
48    "src/continuation_manager/connect_status_info.cpp",
49    "src/continuation_manager/continuation_extra_params.cpp",
50    "src/continuation_manager/continuation_result.cpp",
51    "src/continuation_manager/device_selection_notifier_proxy.cpp",
52    "src/continuation_manager/device_selection_notifier_stub.cpp",
53    "src/continuation_manager/notifier_death_recipient.cpp",
54    "src/continuation_manager/notifier_info.cpp",
55    "src/distributed_ability_manager_dumper.cpp",
56    "src/distributed_ability_manager_service.cpp",
57  ]
58
59  configs = [
60    ":distributed_ability_manager_config",
61    "//foundation/ability/dmsfwk/services/dtbschedmgr/test/resource:coverage_flags",
62  ]
63
64  ldflags = [
65    "-rdynamic",
66    "-fpie",
67    "-Wl,-z,relro",
68    "-Wl,-z,now",
69  ]
70
71  deps = [
72    "../../interfaces/innerkits/common:common_sdk",
73    "../../interfaces/innerkits/continuation_manager:continuation_manager",
74    "//foundation/ability/dmsfwk/interfaces/innerkits/common:dmsfwk_idl_source",
75  ]
76
77  external_deps = [
78    "ability_base:want",
79    "ability_runtime:ability_manager",
80    "access_token:libaccesstoken_sdk",
81    "bundle_framework:appexecfwk_base",
82    "bundle_framework:appexecfwk_core",
83    "c_utils:utils",
84    "eventhandler:libeventhandler",
85    "ffrt:libffrt",
86    "hilog:libhilog",
87    "image_framework:image_native",
88    "init:libbegetutil",
89    "ipc:ipc_core",
90    "safwk:system_ability_fwk",
91    "samgr:samgr_proxy",
92  ]
93  if (os_account_part) {
94    external_deps += [ "os_account:os_account_innerkits" ]
95  }
96
97  public_configs = [ "//foundation/ability/dmsfwk/interfaces/innerkits/common:dmsfwk_idl_config" ]
98
99  part_name = "dmsfwk"
100  subsystem_name = "ability"
101}
102