• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_base/ability_base.gni")
16import("//foundation/ability/ability_runtime/ability_runtime.gni")
17
18config("appmgr_sdk_config") {
19  include_dirs = [
20    "include/appmgr",
21    "${ability_base_innerapi_path}/log/include",
22    "${ability_base_kits_path}/configuration/include",
23    "${ability_base_kits_path}/want/include",
24    "${ability_runtime_path}/interfaces/kits/native/ability/native",
25    "${ability_runtime_innerkits_path}/ability_manager/include",
26    "${bundlefwk_inner_api_path}/appexecfwk_base/include",
27  ]
28  defines = []
29  if (ability_command_for_test) {
30    defines += [ "ABILITY_COMMAND_FOR_TEST" ]
31  }
32}
33
34config("appmgr_core_config") {
35  include_dirs = [ "include" ]
36  defines = []
37  if (ability_command_for_test) {
38    defines += [ "ABILITY_COMMAND_FOR_TEST" ]
39  }
40}
41
42ohos_shared_library("app_manager") {
43  include_dirs = [
44    "//third_party/json/include",
45    "${ability_runtime_services_path}/appmgr/include",
46    "${ability_runtime_services_path}/common/include",
47  ]
48
49  sources = [
50    "src/appmgr/ability_controller_proxy.cpp",
51    "src/appmgr/ability_controller_stub.cpp",
52    "src/appmgr/ability_info_callback_proxy.cpp",
53    "src/appmgr/ability_info_callback_stub.cpp",
54    "src/appmgr/ability_state_data.cpp",
55    "src/appmgr/ams_mgr_proxy.cpp",
56    "src/appmgr/ams_mgr_stub.cpp",
57    "src/appmgr/app_launch_data.cpp",
58    "src/appmgr/app_mgr_client.cpp",
59    "src/appmgr/app_mgr_proxy.cpp",
60    "src/appmgr/app_mgr_stub.cpp",
61    "src/appmgr/app_process_data.cpp",
62    "src/appmgr/app_record_id.cpp",
63    "src/appmgr/app_scheduler_host.cpp",
64    "src/appmgr/app_scheduler_proxy.cpp",
65    "src/appmgr/app_service_manager.cpp",
66    "src/appmgr/app_state_callback_host.cpp",
67    "src/appmgr/app_state_callback_proxy.cpp",
68    "src/appmgr/app_state_data.cpp",
69    "src/appmgr/app_task_info.cpp",
70    "src/appmgr/application_state_observer_proxy.cpp",
71    "src/appmgr/application_state_observer_stub.cpp",
72    "src/appmgr/component_interception_proxy.cpp",
73    "src/appmgr/component_interception_stub.cpp",
74    "src/appmgr/configuration_observer_proxy.cpp",
75    "src/appmgr/configuration_observer_stub.cpp",
76    "src/appmgr/priority_object.cpp",
77    "src/appmgr/process_data.cpp",
78    "src/appmgr/process_info.cpp",
79    "src/appmgr/profile.cpp",
80    "src/appmgr/quick_fix_callback_proxy.cpp",
81    "src/appmgr/quick_fix_callback_stub.cpp",
82    "src/appmgr/render_scheduler_host.cpp",
83    "src/appmgr/render_scheduler_proxy.cpp",
84    "src/appmgr/running_process_info.cpp",
85    "src/appmgr/start_specified_ability_response_proxy.cpp",
86    "src/appmgr/start_specified_ability_response_stub.cpp",
87    "src/appmgr/system_memory_attr.cpp",
88  ]
89
90  public_configs = [
91    ":appmgr_core_config",
92    ":appmgr_sdk_config",
93  ]
94
95  defines = [ "AMS_LOG_TAG = \"AppexecfwkCore\"" ]
96  cflags = []
97  if (target_cpu == "arm") {
98    cflags += [ "-DBINDER_IPC_32BIT" ]
99  }
100  deps = []
101
102  external_deps = [
103    "ability_base:configuration",
104    "ability_base:want",
105    "bundle_framework:appexecfwk_base",
106    "c_utils:utils",
107    "hitrace_native:hitrace_meter",
108    "hiviewdfx_hilog_native:libhilog",
109    "ipc:ipc_core",
110    "samgr:samgr_proxy",
111  ]
112
113  if (background_task_mgr_continuous_task_enable) {
114    defines += [ "BGTASKMGR_CONTINUOUS_TASK_ENABLE" ]
115  }
116
117  subsystem_name = "ability"
118  part_name = "ability_runtime"
119}
120