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 defines = [] 36 if (defined(global_parts_info) && 37 defined(global_parts_info.bundlemanager_bundle_framework)) { 38 external_deps += [ "bundle_framework:appexecfwk_base" ] 39 defines += [ "DEPENDENT_APPEXECFWK_BASE" ] 40 } 41 42 relative_install_dir = "module" 43 subsystem_name = "startup" 44 part_name = "init" 45} 46 47ohos_shared_library("systemparameter") { 48 include_dirs = [ "src" ] 49 50 sources = [ 51 "src/native_parameters_js.cpp", 52 "src/native_parameters_watch.cpp", 53 ] 54 55 deps = [ 56 "//base/startup/init/interfaces/innerkits:libbeget_proxy", 57 "//base/startup/init/interfaces/innerkits:libbegetutil", 58 ] 59 60 external_deps = [ 61 "bounds_checking_function:libsec_shared", 62 "napi:ace_napi", 63 ] 64 relative_install_dir = "module" 65 subsystem_name = "startup" 66 part_name = "init" 67} 68 69ohos_shared_library("systemparameterenhance") { 70 include_dirs = [ "src" ] 71 72 sources = [ "src_enhance/native_parameters_js.cpp" ] 73 74 deps = [ 75 "//base/startup/init/interfaces/innerkits:libbeget_proxy", 76 "//base/startup/init/interfaces/innerkits:libbegetutil", 77 ] 78 79 symlink_target_name = [ "libsystemparameterv9.z.so" ] 80 external_deps = [ 81 "bounds_checking_function:libsec_shared", 82 "napi:ace_napi", 83 ] 84 relative_install_dir = "module" 85 subsystem_name = "startup" 86 part_name = "init" 87} 88