• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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("child_process_manager_config") {
18  visibility = [ ":*" ]
19  include_dirs = [ "include" ]
20
21  if (target_cpu == "arm") {
22    cflags = [ "-DBINDER_IPC_32BIT" ]
23  }
24}
25
26ohos_shared_library("child_process_manager") {
27  configs = [ "${ability_runtime_services_path}/common:common_config" ]
28  public_configs = [ ":child_process_manager_config" ]
29
30  sources = [
31    "${ability_runtime_native_path}/ability/native/child_process_manager/child_process.cpp",
32    "${ability_runtime_native_path}/ability/native/child_process_manager/child_process_manager.cpp",
33    "${ability_runtime_native_path}/ability/native/child_process_manager/child_process_manager_error_utils.cpp",
34    "${ability_runtime_native_path}/ability/native/child_process_manager/js_child_process.cpp",
35  ]
36
37  deps = [
38    "${ability_runtime_innerkits_path}/app_manager:app_manager",
39    "${ability_runtime_innerkits_path}/runtime:runtime",
40    "${ability_runtime_napi_path}/inner/napi_common:napi_common",
41    "${ability_runtime_native_path}/appkit:app_context",
42    "${ability_runtime_services_path}/common:app_util",
43  ]
44
45  external_deps = [
46    "ability_base:extractortool",
47    "bundle_framework:appexecfwk_base",
48    "bundle_framework:appexecfwk_core",
49    "c_utils:utils",
50    "eventhandler:libeventhandler",
51    "hilog:libhilog",
52    "init:libbegetutil",
53    "ipc:ipc_core",
54    "napi:ace_napi",
55    "samgr:samgr_proxy",
56  ]
57
58  defines = []
59  if (background_task_mgr_continuous_task_enable) {
60    defines += [ "BGTASKMGR_CONTINUOUS_TASK_ENABLE" ]
61  }
62
63  innerapi_tags = [ "platformsdk" ]
64  subsystem_name = "ability"
65  part_name = "ability_runtime"
66}
67