1# Copyright (c) 2021-2024 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
16ohos_shared_library("deviceinfo") {
17  include_dirs = [ "//base/startup/init/interfaces/innerkits/include" ]
18
19  sources = [ "src/native_deviceinfo_js.cpp" ]
20
21  deps = [
22    "//base/startup/init/interfaces/innerkits:libbeget_proxy",
23    "//base/startup/init/interfaces/innerkits:libbegetutil",
24  ]
25  external_deps = [
26    "bounds_checking_function:libsec_shared",
27    "bundle_framework:appexecfwk_core",
28    "c_utils:utils",
29    "hilog:libhilog_base",
30    "ipc:ipc_single",
31    "napi:ace_napi",
32    "samgr:samgr_proxy",
33  ]
34
35  relative_install_dir = "module"
36  subsystem_name = "startup"
37  part_name = "init"
38}
39
40ohos_shared_library("systemparameter") {
41  include_dirs = [ "src" ]
42
43  sources = [
44    "src/native_parameters_js.cpp",
45    "src/native_parameters_watch.cpp",
46  ]
47
48  deps = [
49    "//base/startup/init/interfaces/innerkits:libbeget_proxy",
50    "//base/startup/init/interfaces/innerkits:libbegetutil",
51  ]
52
53  external_deps = [
54    "bounds_checking_function:libsec_shared",
55    "napi:ace_napi",
56  ]
57  relative_install_dir = "module"
58  subsystem_name = "startup"
59  part_name = "init"
60}
61
62ohos_shared_library("systemparameterenhance") {
63  include_dirs = [ "src" ]
64
65  sources = [ "src_enhance/native_parameters_js.cpp" ]
66
67  deps = [
68    "//base/startup/init/interfaces/innerkits:libbeget_proxy",
69    "//base/startup/init/interfaces/innerkits:libbegetutil",
70  ]
71
72  symlink_target_name = [ "libsystemparameterv9.z.so" ]
73  external_deps = [
74    "bounds_checking_function:libsec_shared",
75    "napi:ace_napi",
76  ]
77  relative_install_dir = "module"
78  subsystem_name = "startup"
79  part_name = "init"
80}
81