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