• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-2023 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")
16
17group("unittest") {
18  testonly = true
19  deps = [ "test:unittest" ]
20}
21
22config("distributed_ability_manager_config") {
23  visibility = [ ":*" ]
24  visibility += [ "./test/*" ]
25  include_dirs = [ "include/" ]
26}
27
28ohos_shared_library("distributed_ability_manager_svr") {
29  install_enable = true
30  sources = [
31    "src/continuation_manager/app_connection_stub.cpp",
32    "src/continuation_manager/app_device_callback_stub.cpp",
33    "src/continuation_manager/connect_status_info.cpp",
34    "src/continuation_manager/continuation_extra_params.cpp",
35    "src/continuation_manager/continuation_result.cpp",
36    "src/continuation_manager/device_selection_notifier_proxy.cpp",
37    "src/continuation_manager/device_selection_notifier_stub.cpp",
38    "src/continuation_manager/notifier_death_recipient.cpp",
39    "src/continuation_manager/notifier_info.cpp",
40    "src/distributed_ability_manager_dumper.cpp",
41    "src/distributed_ability_manager_service.cpp",
42    "src/distributed_ability_manager_stub.cpp",
43  ]
44
45  configs = [
46    ":distributed_ability_manager_config",
47    "//foundation/ability/dmsfwk/services/dtbschedmgr/test/resource:coverage_flags",
48  ]
49
50  ldflags = [ "-rdynamic" ]
51
52  deps = [
53    "../../interfaces/innerkits/common:common_sdk",
54    "../../interfaces/innerkits/continuation_manager:continuation_manager",
55  ]
56
57  external_deps = [
58    "ability_base:want",
59    "ability_runtime:ability_manager",
60    "access_token:libaccesstoken_sdk",
61    "bundle_framework:appexecfwk_base",
62    "bundle_framework:appexecfwk_core",
63    "c_utils:utils",
64    "eventhandler:libeventhandler",
65    "ffrt:libffrt",
66    "hilog:libhilog",
67    "init:libbegetutil",
68    "ipc:ipc_core",
69    "os_account:os_account_innerkits",
70    "safwk:system_ability_fwk",
71    "samgr:samgr_proxy",
72  ]
73
74  part_name = "dmsfwk"
75  subsystem_name = "ability"
76}
77