1# Copyright (c) 2021-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("//foundation/ability/ability_runtime/ability_runtime.gni") 16 17ohos_shared_library("missionmanager_napi") { 18 sources = [ 19 "js_mission_info_utils.cpp", 20 "js_mission_listener.cpp", 21 "mission_manager.cpp", 22 "native_module.cpp", 23 ] 24 25 configs = [ "${ability_runtime_services_path}/common:common_config" ] 26 27 include_dirs = [ "${ability_runtime_path}/interfaces/kits/native/ability/native/continuation/kits" ] 28 29 deps = [ 30 "${ability_runtime_innerkits_path}/ability_manager:ability_manager", 31 "${ability_runtime_innerkits_path}/ability_manager:ability_start_options", 32 "${ability_runtime_innerkits_path}/ability_manager:mission_info", 33 "${ability_runtime_innerkits_path}/runtime:runtime", 34 "${ability_runtime_napi_path}/inner/napi_common:napi_common", 35 "${ability_runtime_native_path}/ability/native:abilitykit_native", 36 ] 37 38 external_deps = [ 39 "ability_base:base", 40 "ability_base:want", 41 "c_utils:utils", 42 "common_event_service:cesfwk_innerkits", 43 "eventhandler:libeventhandler", 44 "hilog:libhilog", 45 "ipc:ipc_core", 46 "ipc:ipc_napi", 47 "napi:ace_napi", 48 ] 49 50 if (ability_runtime_graphics) { 51 external_deps += [ 52 "graphic_2d:color_manager", 53 "icu:shared_icuuc", 54 "image_framework:image", 55 ] 56 defines = [ 57 "SUPPORT_GRAPHICS", 58 "SUPPORT_SCREEN", 59 ] 60 } 61 62 cflags_cc = [] 63 if (os_dlp_part_enabled) { 64 cflags_cc += [ "-DWITH_DLP" ] 65 } 66 67 relative_install_dir = "module/application" 68 69 subsystem_name = "ability" 70 part_name = "ability_runtime" 71} 72 73ohos_shared_library("distributedmissionmanager") { 74 include_dirs = [] 75 76 configs = [ "${ability_runtime_services_path}/common:common_config" ] 77 78 cflags = [ 79 "-fPIC", 80 "-g3", 81 ] 82 83 sources = [ 84 "distributed_mission_manager.cpp", 85 "distributed_mission_manager_helper.cpp", 86 "dms_sa_client.cpp", 87 "mission_continue_stub.cpp", 88 ] 89 90 deps = [ 91 "${ability_runtime_innerkits_path}/ability_manager:ability_manager", 92 "${ability_runtime_innerkits_path}/ability_manager:ability_start_options", 93 "${ability_runtime_innerkits_path}/ability_manager:mission_info", 94 "${ability_runtime_innerkits_path}/app_manager:app_manager", 95 "${ability_runtime_napi_path}/inner/napi_common:napi_common", 96 "${ability_runtime_native_path}/ability/native:abilitykit_native", 97 ] 98 99 external_deps = [ 100 "ability_base:want", 101 "bundle_framework:appexecfwk_base", 102 "bundle_framework:appexecfwk_core", 103 "c_utils:utils", 104 "common_event_service:cesfwk_innerkits", 105 "eventhandler:libeventhandler", 106 "hilog:libhilog", 107 "init:libbegetutil", 108 "ipc:ipc_core", 109 "ipc:ipc_napi", 110 "libuv:uv", 111 "napi:ace_napi", 112 "node:node_header_notice", 113 "samgr:samgr_proxy", 114 ] 115 116 relative_install_dir = "module" 117 118 subsystem_name = "ability" 119 part_name = "ability_runtime" 120} 121