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 ] 26} 27 28ohos_static_library("nativeapi_locale_simulator") { 29 sources = [ "src/locale_module.cpp" ] 30 31 include_dirs = [ 32 "include", 33 "//base/global/resmgr_lite/interfaces/innerkits/include", 34 "//foundation/ace/ace_engine_lite/interfaces/innerkits/builtin/base", 35 "//foundation/ace/ace_engine_lite/interfaces/innerkits/builtin/jsi", 36 "//third_party/bounds_checking_function/include", 37 "//utils/native/lite/include", 38 ] 39 deps = [ "//third_party/bounds_checking_function:libsec_static" ] 40 41 configs = [ ":nativeapi_locale_simulator_config" ] 42} 43