1# Copyright (c) 2022 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 include_dirs = [ 25 "include/", 26 "//foundation/ability/dmsfwk/interfaces/innerkits/common/include/", 27 "//foundation/ability/dmsfwk/interfaces/innerkits/continuation_manager/include/", 28 ] 29} 30 31ohos_shared_library("distributed_ability_manager_svr") { 32 install_enable = true 33 sources = [ 34 "src/continuation_manager/app_device_callback_stub.cpp", 35 "src/continuation_manager/connect_status_info.cpp", 36 "src/continuation_manager/continuation_extra_params.cpp", 37 "src/continuation_manager/continuation_result.cpp", 38 "src/continuation_manager/device_selection_notifier_proxy.cpp", 39 "src/continuation_manager/device_selection_notifier_stub.cpp", 40 "src/continuation_manager/notifier_death_recipient.cpp", 41 "src/continuation_manager/notifier_info.cpp", 42 "src/distributed_ability_manager_dumper.cpp", 43 "src/distributed_ability_manager_service.cpp", 44 "src/distributed_ability_manager_stub.cpp", 45 ] 46 47 configs = [ 48 ":distributed_ability_manager_config", 49 "//foundation/ability/dmsfwk/services/dtbschedmgr/test/resource:coverage_flags", 50 ] 51 52 ldflags = [ "-rdynamic" ] 53 54 external_deps = [ 55 "access_token:libaccesstoken_sdk", 56 "c_utils:utils", 57 "device_manager:devicemanagersdk", 58 "eventhandler:libeventhandler", 59 "hiviewdfx_hilog_native:libhilog", 60 "init:libbegetutil", 61 "ipc:ipc_core", 62 "safwk:system_ability_fwk", 63 ] 64 65 deps = [ "//foundation/ability/dmsfwk/services/base:dmsbaseinner" ] 66 67 part_name = "dmsfwk" 68 subsystem_name = "ability" 69} 70