# Copyright (c) 2020 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//base/startup/init/begetd.gni") import("//build/lite/config/component/lite_component.gni") import("//build/lite/ndk/ndk.gni") lite_component("parameter") { features = [ "//base/startup/syspara_lite/frameworks/parameter/src:sysparam" ] } ndk_lib("parameter_notes") { if (ohos_kernel_type != "liteos_m" && ohos_kernel_type != "uniproton") { lib_extension = ".so" } if (enable_ohos_startup_init_feature_begetctl_liteos == false) { deps = [ "//base/startup/syspara_lite/frameworks/parameter/src:sysparam" ] head_files = [ "//base/startup/syspara_lite/interfaces/kits" ] } else { deps = [ "//base/startup/init/interfaces/innerkits:libbegetutil" ] head_files = [ "//base/startup/init/interfaces/innerkits/include/syspara" ] } } if (ohos_build_type == "debug" && ohos_kernel_type == "liteos_a") { group("unittest") { deps = [ "//base/startup/syspara_lite/frameworks/unittest/parameter:unittest" ] } }