• 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("//build/ohos_var.gni")
16
17config("samgr_proxy_config") {
18  include_dirs = [ "include" ]
19}
20
21config("lsamgr_proxy_config") {
22  include_dirs =
23      [ "//foundation/systemabilitymgr/samgr/services/lsamgr/include" ]
24}
25
26config("samgr_proxy_private_config") {
27  include_dirs = [
28    "include",
29    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/lsamgr",
30    "//foundation/systemabilitymgr/samgr/services/lsamgr/include",
31    "//foundation/systemabilitymgr/samgr/services/samgr/native/include",
32    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/dynamic_cache/include",
33    "//foundation/systemabilitymgr/samgr/utils/native/include",
34    "//third_party/json/include",
35    "//third_party/json/single_include",
36  ]
37}
38
39ohos_shared_library("samgr_proxy") {
40  version_script = "libsamgr_proxy.versionscript"
41  defines = [ "SAMGR_PROXY" ]
42  sources = [
43    "//foundation/systemabilitymgr/samgr/frameworks/native/source/system_ability_load_callback_stub.cpp",
44    "//foundation/systemabilitymgr/samgr/frameworks/native/source/system_ability_manager_proxy.cpp",
45    "//foundation/systemabilitymgr/samgr/frameworks/native/source/system_ability_on_demand_event.cpp",
46    "//foundation/systemabilitymgr/samgr/frameworks/native/source/system_ability_status_change_stub.cpp",
47    "//foundation/systemabilitymgr/samgr/frameworks/native/source/system_process_status_change_stub.cpp",
48    "//foundation/systemabilitymgr/samgr/services/lsamgr/src/local_ability_manager_proxy.cpp",
49    "//foundation/systemabilitymgr/samgr/services/lsamgr/src/local_abilitys.cpp",
50    "//foundation/systemabilitymgr/samgr/services/samgr/native/source/service_registry.cpp",
51  ]
52  configs = [
53    ":samgr_proxy_private_config",
54    "//foundation/systemabilitymgr/samgr/test/resource:coverage_flags",
55  ]
56
57  deps = [ "//foundation/systemabilitymgr/samgr/interfaces/innerkits/dynamic_cache:dynamic_cache" ]
58
59  public_configs = [ ":lsamgr_proxy_config" ]
60  all_dependent_configs = [ ":samgr_proxy_config" ]
61
62  if (is_standard_system) {
63    external_deps = [
64      "c_utils:utils",
65      "hilog:libhilog",
66      "init:libbegetutil",
67      "ipc:ipc_single",
68    ]
69
70    part_name = "samgr"
71  }
72
73  innerapi_tags = [
74    "chipsetsdk",
75    "platformsdk",
76    "sasdk",
77  ]
78  install_images = [
79    system_base_dir,
80    updater_base_dir,
81  ]
82  subsystem_name = "systemabilitymgr"
83}
84