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 "//third_party/bounds_checking_function/include", 37 "./parameter/src", 38 "../interfaces/innerkits/include/syspara", 39 ] 40} 41 42ohos_static_library("sysparam_simulator") { 43 public_configs = [ ":sysparam_simulator_public_config" ] 44 configs = [ ":sysparam_simulator_config" ] 45 sources = [ 46 "./parameter/src/param_impl_posix/param_impl_posix.c", 47 "./parameter/src/parameter_common.c", 48 ] 49 deps = [ "//third_party/bounds_checking_function:libsec_static" ] 50 defines = [ 51 "INCREMENTAL_VERSION=\"\"", 52 "BUILD_TYPE=\"\"", 53 "BUILD_USER=\"\"", 54 "BUILD_TIME=\"\"", 55 "BUILD_HOST=\"\"", 56 "BUILD_ROOTHASH=\"\"", 57 ] 58 part_name = "init" 59 subsystem_name = "startup" 60} 61