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") 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 cfi = true 37 cfi_cross_dso = true 38 debug = false 39 } 40 41 install_enable = true 42 sources = [ 43 "src/continuation_manager/app_connection_stub.cpp", 44 "src/continuation_manager/app_device_callback_stub.cpp", 45 "src/continuation_manager/connect_status_info.cpp", 46 "src/continuation_manager/continuation_extra_params.cpp", 47 "src/continuation_manager/continuation_result.cpp", 48 "src/continuation_manager/device_selection_notifier_proxy.cpp", 49 "src/continuation_manager/device_selection_notifier_stub.cpp", 50 "src/continuation_manager/notifier_death_recipient.cpp", 51 "src/continuation_manager/notifier_info.cpp", 52 "src/distributed_ability_manager_dumper.cpp", 53 "src/distributed_ability_manager_service.cpp", 54 "src/distributed_ability_manager_stub.cpp", 55 ] 56 57 configs = [ 58 ":distributed_ability_manager_config", 59 "//foundation/ability/dmsfwk/services/dtbschedmgr/test/resource:coverage_flags", 60 ] 61 62 ldflags = [ "-rdynamic" ] 63 64 deps = [ 65 "../../interfaces/innerkits/common:common_sdk", 66 "../../interfaces/innerkits/continuation_manager:continuation_manager", 67 ] 68 69 external_deps = [ 70 "ability_base:want", 71 "ability_runtime:ability_manager", 72 "access_token:libaccesstoken_sdk", 73 "bundle_framework:appexecfwk_base", 74 "bundle_framework:appexecfwk_core", 75 "c_utils:utils", 76 "eventhandler:libeventhandler", 77 "ffrt:libffrt", 78 "hilog:libhilog", 79 "init:libbegetutil", 80 "ipc:ipc_core", 81 "safwk:system_ability_fwk", 82 "samgr:samgr_proxy", 83 ] 84 if (os_account_part) { 85 external_deps += [ "os_account:os_account_innerkits" ] 86 } 87 88 part_name = "dmsfwk" 89 subsystem_name = "ability" 90} 91