160916893Sopenharmony_ci# Copyright (c) 2021 Huawei Device Co., Ltd.
260916893Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
360916893Sopenharmony_ci# you may not use this file except in compliance with the License.
460916893Sopenharmony_ci# You may obtain a copy of the License at
560916893Sopenharmony_ci#
660916893Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
760916893Sopenharmony_ci#
860916893Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
960916893Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1060916893Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1160916893Sopenharmony_ci# See the License for the specific language governing permissions and
1260916893Sopenharmony_ci# limitations under the License.
1360916893Sopenharmony_ci
1460916893Sopenharmony_ciimport("//build/ohos.gni")
1560916893Sopenharmony_ci
1660916893Sopenharmony_ciconfig("nativeapi_locale_simulator_config") {
1760916893Sopenharmony_ci  cflags = [
1860916893Sopenharmony_ci    "-D_INC_STRING_S",
1960916893Sopenharmony_ci    "-D_INC_WCHAR_S",
2060916893Sopenharmony_ci    "-D_SECIMP=//",
2160916893Sopenharmony_ci    "-D_STDIO_S_DEFINED",
2260916893Sopenharmony_ci    "-D_INC_STDIO_S",
2360916893Sopenharmony_ci    "-D_INC_STDLIB_S",
2460916893Sopenharmony_ci    "-D_INC_MEMORY_S",
2560916893Sopenharmony_ci    "-pipe",
2660916893Sopenharmony_ci    "-Wdate-time",
2760916893Sopenharmony_ci    "-Wfloat-equal",
2860916893Sopenharmony_ci    "-Wformat=2",
2960916893Sopenharmony_ci    "-Wshadow",
3060916893Sopenharmony_ci  ]
3160916893Sopenharmony_ci}
3260916893Sopenharmony_ci
3360916893Sopenharmony_ciohos_static_library("nativeapi_locale_simulator") {
3460916893Sopenharmony_ci  sources = [ "src/locale_module.cpp" ]
3560916893Sopenharmony_ci
3660916893Sopenharmony_ci  include_dirs = [
3760916893Sopenharmony_ci    "include",
3860916893Sopenharmony_ci    "//base/global/resource_management_lite/interfaces/inner_api/include",
3960916893Sopenharmony_ci    "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/base",
4060916893Sopenharmony_ci    "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/jsi",
4160916893Sopenharmony_ci    "//commonlibrary/utils_lite/include",
4260916893Sopenharmony_ci  ]
4360916893Sopenharmony_ci  deps = [ "//third_party/bounds_checking_function:libsec_static" ]
4460916893Sopenharmony_ci
4560916893Sopenharmony_ci  configs = [ ":nativeapi_locale_simulator_config" ]
4660916893Sopenharmony_ci}
47