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("extension_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("extension_manager_config") {
29  visibility = [ ":*" ]
30
31  include_dirs = [
32    "${ability_runtime_services_path}/abilitymgr/include/utils",
33    "${ability_runtime_services_path}/abilitymgr/include",
34    "${ability_runtime_services_path}/common/include",
35  ]
36}
37
38ohos_shared_library("extension_manager") {
39  branch_protector_ret = "pac_ret"
40
41  sources = [
42    "src/extension_manager_client.cpp",
43    "src/extension_manager_proxy.cpp",
44  ]
45
46  configs = [ ":extension_manager_config" ]
47  public_configs = [ ":extension_manager_public_config" ]
48
49  public_deps = [ "${ability_runtime_innerkits_path}/ability_manager:ability_connect_callback_stub" ]
50
51  external_deps = [
52    "ability_base:want",
53    "bundle_framework:appexecfwk_base",
54    "c_utils:utils",
55    "hilog:libhilog",
56    "hitrace:hitrace_meter",
57    "ipc:ipc_single",
58    "safwk:system_ability_fwk",
59    "samgr:samgr_proxy",
60  ]
61
62  innerapi_tags = [ "platformsdk" ]
63  subsystem_name = "ability"
64  part_name = "ability_runtime"
65}
66