1# Copyright (c) 2021 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("nativeapi_locale_simulator_config") { 17 cflags = [ 18 "-D_INC_STRING_S", 19 "-D_INC_WCHAR_S", 20 "-D_SECIMP=//", 21 "-D_STDIO_S_DEFINED", 22 "-D_INC_STDIO_S", 23 "-D_INC_STDLIB_S", 24 "-D_INC_MEMORY_S", 25 "-pipe", 26 "-Wdate-time", 27 "-Wfloat-equal", 28 "-Wformat=2", 29 "-Wshadow", 30 ] 31} 32 33ohos_static_library("nativeapi_locale_simulator") { 34 sources = [ "src/locale_module.cpp" ] 35 36 include_dirs = [ 37 "include", 38 "//base/global/resource_management_lite/interfaces/inner_api/include", 39 "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/base", 40 "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/jsi", 41 "//commonlibrary/utils_lite/include", 42 ] 43 deps = [ "//third_party/bounds_checking_function:libsec_static" ] 44 45 configs = [ ":nativeapi_locale_simulator_config" ] 46} 47