• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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
17config("mission_manager_public_config") {
18  include_dirs = [
19    "include",
20    "${ability_runtime_innerkits_path}/ability_manager/include",
21  ]
22
23  if (target_cpu == "arm") {
24    cflags = [ "-DBINDER_IPC_32BIT" ]
25  }
26}
27
28config("mission_manager_config") {
29  visibility = [ ":*" ]
30
31  include_dirs = [
32    "${ability_runtime_innerkits_path}/mission_manager/include",
33    "${ability_runtime_services_path}/abilitymgr/include/utils",
34    "${ability_runtime_services_path}/abilitymgr/include",
35    "${ability_runtime_services_path}/common/include",
36  ]
37}
38
39ohos_shared_library("mission_manager") {
40  branch_protector_ret = "pac_ret"
41
42  sources = [
43    "src/mission_manager_client.cpp",
44    "src/mission_manager_proxy.cpp",
45  ]
46
47  sanitize = {
48    cfi = true
49    cfi_cross_dso = true
50    debug = false
51  }
52
53  configs = [ ":mission_manager_config" ]
54  public_configs = [ ":mission_manager_public_config" ]
55
56  deps = [
57    "${ability_runtime_innerkits_path}/ability_manager:ability_connect_callback_stub",
58    "${ability_runtime_innerkits_path}/ability_manager:mission_info",
59  ]
60
61  external_deps = [
62    "ability_base:session_info",
63    "ability_base:want",
64    "bundle_framework:appexecfwk_base",
65    "c_utils:utils",
66    "c_utils:utilsbase",
67    "hilog:libhilog",
68    "hitrace:hitrace_meter",
69    "image_framework:image_native",
70    "ipc:ipc_single",
71    "safwk:system_ability_fwk",
72    "samgr:samgr_proxy",
73    "window_manager:libwsutils",
74    "window_manager:session_manager_lite",
75  ]
76
77  innerapi_tags = [ "platformsdk" ]
78  subsystem_name = "ability"
79  part_name = "ability_runtime"
80}
81