• 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")
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 = [ "napi:ace_napi" ]
26  relative_install_dir = "module"
27  subsystem_name = "startup"
28  part_name = "init"
29}
30
31ohos_shared_library("systemparameter") {
32  include_dirs = [
33    "src",
34    "//third_party/libuv/include",
35  ]
36
37  sources = [
38    "src/native_parameters_js.cpp",
39    "src/native_parameters_watch.cpp",
40  ]
41
42  deps = [
43    "//base/startup/init/interfaces/innerkits:libbeget_proxy",
44    "//base/startup/init/interfaces/innerkits:libbegetutil",
45  ]
46
47  external_deps = [ "napi:ace_napi" ]
48  relative_install_dir = "module"
49  subsystem_name = "startup"
50  part_name = "init"
51}
52
53ohos_shared_library("systemparameterenhance") {
54  include_dirs = [
55    "src",
56    "//third_party/libuv/include",
57  ]
58
59  sources = [ "src_enhance/native_parameters_js.cpp" ]
60
61  deps = [
62    "//base/startup/init/interfaces/innerkits:libbeget_proxy",
63    "//base/startup/init/interfaces/innerkits:libbegetutil",
64  ]
65
66  symlink_target_name = [ "libsystemparameterv9.z.so" ]
67  external_deps = [ "napi:ace_napi" ]
68  relative_install_dir = "module"
69  subsystem_name = "startup"
70  part_name = "init"
71}
72