# Copyright (c) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") config("nativeapi_locale_simulator_config") { cflags = [ "-D_INC_STRING_S", "-D_INC_WCHAR_S", "-D_SECIMP=//", "-D_STDIO_S_DEFINED", "-D_INC_STDIO_S", "-D_INC_STDLIB_S", "-D_INC_MEMORY_S", "-pipe", "-Wdate-time", "-Wfloat-equal", "-Wformat=2", "-Wshadow", ] } ohos_static_library("nativeapi_locale_simulator") { sources = [ "src/locale_module.cpp" ] include_dirs = [ "include", "//base/global/resource_management_lite/interfaces/inner_api/include", "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/base", "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/jsi", "//commonlibrary/utils_lite/include", ] deps = [ "//third_party/bounds_checking_function:libsec_static" ] configs = [ ":nativeapi_locale_simulator_config" ] }