2023-02-27 12:00:38 +00:00
|
|
|
# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
|
2022-06-23 08:13:29 +00:00
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
import("//build/ohos.gni")
|
|
|
|
import("//build/ohos_var.gni")
|
2023-09-21 12:05:43 +00:00
|
|
|
import("//foundation/ability/dmsfwk/dmsfwk.gni")
|
2022-06-23 08:13:29 +00:00
|
|
|
|
2022-07-03 10:06:51 +00:00
|
|
|
group("unittest") {
|
|
|
|
testonly = true
|
|
|
|
deps = [ "test:unittest" ]
|
|
|
|
}
|
|
|
|
|
2022-06-23 08:13:29 +00:00
|
|
|
config("distributed_ability_manager_config") {
|
|
|
|
visibility = [ ":*" ]
|
2023-04-12 04:01:38 +00:00
|
|
|
visibility += [ "./test/*" ]
|
2023-02-27 12:00:38 +00:00
|
|
|
include_dirs = [ "include/" ]
|
2023-10-19 11:23:41 +00:00
|
|
|
defines = []
|
|
|
|
if (os_account_part) {
|
|
|
|
defines += [ "OS_ACCOUNT_PART" ]
|
|
|
|
}
|
2022-06-23 08:13:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ohos_shared_library("distributed_ability_manager_svr") {
|
2023-10-17 02:16:44 +00:00
|
|
|
branch_protector_ret = "pac_ret"
|
2023-10-07 03:07:26 +00:00
|
|
|
sanitize = {
|
|
|
|
cfi = true
|
|
|
|
cfi_cross_dso = true
|
|
|
|
debug = false
|
|
|
|
}
|
|
|
|
|
2022-06-23 08:13:29 +00:00
|
|
|
install_enable = true
|
|
|
|
sources = [
|
2023-02-27 12:00:38 +00:00
|
|
|
"src/continuation_manager/app_connection_stub.cpp",
|
2022-07-25 12:29:18 +00:00
|
|
|
"src/continuation_manager/app_device_callback_stub.cpp",
|
|
|
|
"src/continuation_manager/connect_status_info.cpp",
|
|
|
|
"src/continuation_manager/continuation_extra_params.cpp",
|
|
|
|
"src/continuation_manager/continuation_result.cpp",
|
|
|
|
"src/continuation_manager/device_selection_notifier_proxy.cpp",
|
|
|
|
"src/continuation_manager/device_selection_notifier_stub.cpp",
|
|
|
|
"src/continuation_manager/notifier_death_recipient.cpp",
|
|
|
|
"src/continuation_manager/notifier_info.cpp",
|
2022-09-06 10:04:24 +00:00
|
|
|
"src/distributed_ability_manager_dumper.cpp",
|
2022-06-23 08:13:29 +00:00
|
|
|
"src/distributed_ability_manager_service.cpp",
|
|
|
|
"src/distributed_ability_manager_stub.cpp",
|
|
|
|
]
|
|
|
|
|
2022-08-22 03:18:31 +00:00
|
|
|
configs = [
|
|
|
|
":distributed_ability_manager_config",
|
|
|
|
"//foundation/ability/dmsfwk/services/dtbschedmgr/test/resource:coverage_flags",
|
|
|
|
]
|
2022-06-23 08:13:29 +00:00
|
|
|
|
|
|
|
ldflags = [ "-rdynamic" ]
|
|
|
|
|
2023-05-25 12:34:00 +00:00
|
|
|
deps = [
|
|
|
|
"../../interfaces/innerkits/common:common_sdk",
|
|
|
|
"../../interfaces/innerkits/continuation_manager:continuation_manager",
|
|
|
|
]
|
|
|
|
|
2022-06-23 08:13:29 +00:00
|
|
|
external_deps = [
|
2023-02-27 12:00:38 +00:00
|
|
|
"ability_base:want",
|
|
|
|
"ability_runtime:ability_manager",
|
2022-09-22 02:56:17 +00:00
|
|
|
"access_token:libaccesstoken_sdk",
|
2023-02-27 12:00:38 +00:00
|
|
|
"bundle_framework:appexecfwk_base",
|
|
|
|
"bundle_framework:appexecfwk_core",
|
2022-08-10 06:22:06 +00:00
|
|
|
"c_utils:utils",
|
2022-06-23 08:13:29 +00:00
|
|
|
"eventhandler:libeventhandler",
|
2023-06-19 02:50:44 +00:00
|
|
|
"ffrt:libffrt",
|
2023-06-19 09:26:20 +00:00
|
|
|
"hilog:libhilog",
|
2022-07-11 09:32:51 +00:00
|
|
|
"init:libbegetutil",
|
2022-06-23 08:13:29 +00:00
|
|
|
"ipc:ipc_core",
|
|
|
|
"safwk:system_ability_fwk",
|
2023-02-27 12:00:38 +00:00
|
|
|
"samgr:samgr_proxy",
|
2022-06-23 08:13:29 +00:00
|
|
|
]
|
2023-09-21 12:05:43 +00:00
|
|
|
if (os_account_part) {
|
|
|
|
external_deps += [ "os_account:os_account_innerkits" ]
|
|
|
|
}
|
2022-06-23 08:13:29 +00:00
|
|
|
|
2022-07-19 07:57:56 +00:00
|
|
|
part_name = "dmsfwk"
|
|
|
|
subsystem_name = "ability"
|
2022-06-23 08:13:29 +00:00
|
|
|
}
|