• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    "//base/startup/syspara_lite/interfaces/kits",
19    "//base/startup/syspara_lite/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    "//base/startup/syspara_lite/interfaces/kits",
36    "//commonlibrary/utils_lite/include",
37    "//third_party/bounds_checking_function/include",
38    "//base/startup/syspara_lite/frameworks/parameter/src",
39    "//base/startup/syspara_lite/hals",
40  ]
41}
42
43ohos_static_library("sysparam_simulator") {
44  public_configs = [ ":sysparam_simulator_public_config" ]
45  configs = [ ":sysparam_simulator_config" ]
46  sources = [
47    "//base/startup/syspara_lite/frameworks/parameter/src/param_impl_posix/param_impl_posix.c",
48    "//base/startup/syspara_lite/frameworks/parameter/src/parameter_common.c",
49  ]
50  deps = [ "//third_party/bounds_checking_function:libsec_static" ]
51  defines = [
52    "INCREMENTAL_VERSION=\"\"",
53    "BUILD_TYPE=\"\"",
54    "BUILD_USER=\"\"",
55    "BUILD_TIME=\"\"",
56    "BUILD_HOST=\"\"",
57    "BUILD_ROOTHASH=\"\"",
58  ]
59}
60