• 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("samgr_proxy_private_config") {
22  include_dirs = [
23    "include",
24    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/lsamgr",
25    "//foundation/systemabilitymgr/samgr/services/lsamgr/include",
26    "//foundation/systemabilitymgr/samgr/services/samgr/native/include",
27    "//foundation/systemabilitymgr/samgr/utils/native/include",
28  ]
29}
30
31ohos_shared_library("samgr_proxy") {
32  defines = [ "SAMGR_PROXY" ]
33  sources = [
34    "//foundation/systemabilitymgr/samgr/frameworks/native/source/system_ability_load_callback_stub.cpp",
35    "//foundation/systemabilitymgr/samgr/frameworks/native/source/system_ability_manager_proxy.cpp",
36    "//foundation/systemabilitymgr/samgr/frameworks/native/source/system_ability_status_change_stub.cpp",
37    "//foundation/systemabilitymgr/samgr/services/lsamgr/src/local_ability_manager_proxy.cpp",
38    "//foundation/systemabilitymgr/samgr/services/samgr/native/source/service_registry.cpp",
39  ]
40  configs = [
41    ":samgr_proxy_private_config",
42    "//foundation/systemabilitymgr/samgr/test/resource:coverage_flags",
43  ]
44
45  all_dependent_configs = [ ":samgr_proxy_config" ]
46
47  if (is_standard_system) {
48    external_deps = [
49      "c_utils:utils",
50      "hiviewdfx_hilog_native:libhilog",
51      "ipc:ipc_single",
52    ]
53
54    part_name = "samgr"
55  }
56
57  install_images = [ system_base_dir ]
58  relative_install_dir = "chipset-pub-sdk"
59  subsystem_name = "systemabilitymgr"
60}
61