• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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")
15
16config("all_config_samgr_common") {
17  include_dirs = [
18    "include",
19    "//third_party/libxml2/include",
20  ]
21}
22
23config("config_samgr_common") {
24  include_dirs = [
25    "include",
26    "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include",
27    "//foundation/systemabilitymgr/samgr/services/dfx/include",
28  ]
29}
30
31################################################################################
32ohos_shared_library("samgr_common") {
33  sources = [
34    "//foundation/systemabilitymgr/samgr/services/common/src/parse_util.cpp",
35    "//foundation/systemabilitymgr/samgr/services/dfx/source/hisysevent_adapter.cpp",
36  ]
37
38  configs = [
39    ":config_samgr_common",
40    "//foundation/systemabilitymgr/samgr/test/resource:coverage_flags",
41  ]
42
43  public_configs = [ ":config_samgr_common" ]
44
45  all_dependent_configs = [ ":all_config_samgr_common" ]
46
47  deps = [ "//third_party/libxml2:libxml2" ]
48
49  if (is_standard_system) {
50    external_deps = [
51      "c_utils:utils",
52      "hisysevent_native:libhisysevent",
53      "hitrace_native:hitrace_meter",
54      "hiviewdfx_hilog_native:libhilog",
55    ]
56    part_name = "samgr"
57  }
58
59  subsystem_name = "systemabilitymgr"
60}
61################################################################################
62