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("//build/ohos.gni") 15 16config("sysparam_simulator_public_config") { 17 include_dirs = [ 18 "../interfaces/innerkits/include/syspara", 19 "../interfaces/hals", 20 ] 21} 22 23config("sysparam_simulator_config") { 24 cflags = [ 25 "-Wno-error", 26 "-D_INC_STDIO_S", 27 "-D_INC_STDLIB_S", 28 "-D_INC_MEMORY_S", 29 "-D_INC_STRING_S", 30 "-D_INC_WCHAR_S", 31 "-D_SECTMP=//", 32 "-D_STDIO_S_DEFINED", 33 ] 34 include_dirs = [ 35 "../../../../commonlibrary/utils_lite/include", 36 "./parameter/src", 37 "../interfaces/innerkits/include/syspara", 38 ] 39} 40 41ohos_static_library("sysparam_simulator") { 42 public_configs = [ ":sysparam_simulator_public_config" ] 43 configs = [ ":sysparam_simulator_config" ] 44 sources = [ 45 "./parameter/src/param_impl_posix/param_impl_posix.c", 46 "./parameter/src/parameter_common.c", 47 ] 48 external_deps = [ "bounds_checking_function:libsec_static" ] 49 defines = [ 50 "INCREMENTAL_VERSION=\"\"", 51 "BUILD_TYPE=\"\"", 52 "BUILD_USER=\"\"", 53 "BUILD_TIME=\"\"", 54 "BUILD_HOST=\"\"", 55 "BUILD_ROOTHASH=\"\"", 56 ] 57 part_name = "init" 58 subsystem_name = "startup" 59} 60