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