1# Copyright (c) 2020 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("//base/startup/init/begetd.gni") 15import("//build/lite/config/component/lite_component.gni") 16import("//build/lite/ndk/ndk.gni") 17 18lite_component("parameter") { 19 features = [ "//base/startup/syspara_lite/frameworks/parameter/src:sysparam" ] 20} 21 22ndk_lib("parameter_notes") { 23 if (ohos_kernel_type != "liteos_m" && ohos_kernel_type != "uniproton") { 24 lib_extension = ".so" 25 } 26 if (enable_ohos_startup_init_feature_begetctl_liteos == false) { 27 deps = [ "//base/startup/syspara_lite/frameworks/parameter/src:sysparam" ] 28 head_files = [ "//base/startup/syspara_lite/interfaces/kits" ] 29 } else { 30 deps = [ "//base/startup/init/interfaces/innerkits:libbegetutil" ] 31 head_files = [ "//base/startup/init/interfaces/innerkits/include/syspara" ] 32 } 33} 34 35if (ohos_build_type == "debug" && ohos_kernel_type == "liteos_a") { 36 group("unittest") { 37 deps = 38 [ "//base/startup/syspara_lite/frameworks/unittest/parameter:unittest" ] 39 } 40} 41