• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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
16###############################################################################
17
18declare_args() {
19  paramapi_feature_watcher = true
20}
21
22config("syspara_config") {
23  visibility = [ ":*" ]
24  include_dirs = [
25    "//commonlibrary/c_utils/base/include",
26    "//base/startup/syspara_lite/hals/parameter/include",
27    "include",
28    "//third_party/openssl/include/",
29  ]
30}
31
32config("syspara_public_config") {
33  include_dirs = [
34    "include",
35    "//base/startup/syspara_lite/adapter/native/syspara/include",
36  ]
37}
38
39ohos_shared_library("syspara") {
40  include_dirs = [
41    "include",
42    "//base/startup/init/services/include/param",
43    "//base/startup/syspara_lite/adapter/native/syspara/include",
44  ]
45  configs = [ ":syspara_config" ]
46  public_configs = [ ":syspara_public_config" ]
47  deps = [ "//base/startup/init/interfaces/innerkits:libbegetutil_static" ]
48  subsystem_name = "startup"
49  part_name = "startup_l2"
50  install_images = [
51    "system",
52    "updater",
53  ]
54  external_deps = [ "c_utils:utils" ]
55}
56
57ohos_shared_library("syspara_watchagent") {
58  include_dirs = [
59    "include",
60    "//base/startup/init/services/include/param",
61    "//base/startup/syspara_lite/interfaces/innerkits/native/syspara/include",
62  ]
63  sources = [ "//base/startup/syspara_lite/interfaces/innerkits/native/syspara/src/param_watchagent.cpp" ]
64  configs = [ ":syspara_config" ]
65  public_configs = [ ":syspara_public_config" ]
66  if (paramapi_feature_watcher) {
67    deps = [ "//base/startup/init/interfaces/innerkits:libbeget_proxy" ]
68  } else {
69    defines = [ "NO_PARAM_WATCHER" ]
70    external_deps = [ "c_utils:utils" ]
71  }
72  subsystem_name = "startup"
73  part_name = "startup_l2"
74}
75