10e98b08fSopenharmony_ci# 20e98b08fSopenharmony_ci# Copyright (c) 2020 Huawei Device Co., Ltd. 30e98b08fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 40e98b08fSopenharmony_ci# you may not use this file except in compliance with the License. 50e98b08fSopenharmony_ci# You may obtain a copy of the License at 60e98b08fSopenharmony_ci# 70e98b08fSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 80e98b08fSopenharmony_ci# 90e98b08fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 100e98b08fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 110e98b08fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 120e98b08fSopenharmony_ci# See the License for the specific language governing permissions and 130e98b08fSopenharmony_ci# limitations under the License. 140e98b08fSopenharmony_ci# 150e98b08fSopenharmony_ci 160e98b08fSopenharmony_ciimport("//build/lite/config/subsystem/aafwk/path.gni") 170e98b08fSopenharmony_ciimport("//build/ohos.gni") 180e98b08fSopenharmony_ci 190e98b08fSopenharmony_ciohos_static_library("ace_kit_common_simulator") { 200e98b08fSopenharmony_ci include_dirs = [ 210e98b08fSopenharmony_ci "//commonlibrary/utils_lite/js/builtin/common/include", 220e98b08fSopenharmony_ci "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin", 230e98b08fSopenharmony_ci "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/base", 240e98b08fSopenharmony_ci ] 250e98b08fSopenharmony_ci sources = [ 260e98b08fSopenharmony_ci "//commonlibrary/utils_lite/js/builtin/common/src/nativeapi_common.cpp", 270e98b08fSopenharmony_ci ] 280e98b08fSopenharmony_ci} 290e98b08fSopenharmony_ci 300e98b08fSopenharmony_ciohos_static_library("ace_kit_deviceinfo_simulator") { 310e98b08fSopenharmony_ci include_dirs = [ 320e98b08fSopenharmony_ci "//commonlibrary/utils_lite/js/builtin/deviceinfokit/include", 330e98b08fSopenharmony_ci "//commonlibrary/utils_lite/js/builtin/common/include", 340e98b08fSopenharmony_ci "//base/startup/init/interfaces/innerkits/include/syspara", 350e98b08fSopenharmony_ci "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin", 360e98b08fSopenharmony_ci "//base/global/resource_management_lite/interfaces/inner_api/include", 370e98b08fSopenharmony_ci ] 380e98b08fSopenharmony_ci sources = [ 390e98b08fSopenharmony_ci "//commonlibrary/utils_lite/js/builtin/deviceinfokit/src/nativeapi_deviceinfo.cpp", 400e98b08fSopenharmony_ci "//commonlibrary/utils_lite/js/builtin/deviceinfokit/src/nativeapi_ohos_deviceinfo.cpp", 410e98b08fSopenharmony_ci ] 420e98b08fSopenharmony_ci deps = [ 430e98b08fSopenharmony_ci "//foundation/arkui/ace_engine_lite/frameworks/targets/simulator:ace_lite", 440e98b08fSopenharmony_ci "//foundation/arkui/ui_lite/ext/ide:ui_ide", 450e98b08fSopenharmony_ci ] 460e98b08fSopenharmony_ci} 470e98b08fSopenharmony_ci 480e98b08fSopenharmony_ciconfig("storage_config") { 490e98b08fSopenharmony_ci cflags = [ 500e98b08fSopenharmony_ci "-D_INC_STDIO_S", 510e98b08fSopenharmony_ci "-D_INC_STDLIB_S", 520e98b08fSopenharmony_ci "-D_INC_MEMORY_S", 530e98b08fSopenharmony_ci "-D_INC_STRING_S", 540e98b08fSopenharmony_ci "-D_INC_WCHAR_S", 550e98b08fSopenharmony_ci "-D_SECTMP=//", 560e98b08fSopenharmony_ci "-D_STDIO_S_DEFINED", 570e98b08fSopenharmony_ci "-Wno-error", 580e98b08fSopenharmony_ci ] 590e98b08fSopenharmony_ci cflags_cc = cflags 600e98b08fSopenharmony_ci} 610e98b08fSopenharmony_ci 620e98b08fSopenharmony_ciconfig("aafwk_config") { 630e98b08fSopenharmony_ci include_dirs = [ "${aafwk_lite_path}/interfaces/kits/ability_lite" ] 640e98b08fSopenharmony_ci} 650e98b08fSopenharmony_ci 660e98b08fSopenharmony_ciohos_static_library("ace_kit_file_simulator") { 670e98b08fSopenharmony_ci include_dirs = [ 680e98b08fSopenharmony_ci "//commonlibrary/utils_lite/js/builtin/filekit/include", 690e98b08fSopenharmony_ci "//commonlibrary/utils_lite/js/builtin/common/include", 700e98b08fSopenharmony_ci "//third_party/bounds_checking_function/include", 710e98b08fSopenharmony_ci "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin", 720e98b08fSopenharmony_ci "${aafwk_lite_path}/interfaces/kits/ability_lite", 730e98b08fSopenharmony_ci ] 740e98b08fSopenharmony_ci sources = [ 750e98b08fSopenharmony_ci "//commonlibrary/utils_lite/js/builtin/filekit/src/nativeapi_fs.cpp", 760e98b08fSopenharmony_ci "//commonlibrary/utils_lite/js/builtin/filekit/src/nativeapi_fs_impl.c", 770e98b08fSopenharmony_ci ] 780e98b08fSopenharmony_ci public_configs = [ ":aafwk_config" ] 790e98b08fSopenharmony_ci configs = [ ":storage_config" ] 800e98b08fSopenharmony_ci deps = [ 810e98b08fSopenharmony_ci "//foundation/arkui/ace_engine_lite/frameworks/targets/simulator:ace_lite", 820e98b08fSopenharmony_ci ] 830e98b08fSopenharmony_ci} 840e98b08fSopenharmony_ci 850e98b08fSopenharmony_ciohos_static_library("ace_kit_kvstore_simulator") { 860e98b08fSopenharmony_ci include_dirs = [ 870e98b08fSopenharmony_ci "//commonlibrary/utils_lite/js/builtin/kvstorekit/include", 880e98b08fSopenharmony_ci "//commonlibrary/utils_lite/js/builtin/common/include", 890e98b08fSopenharmony_ci "//third_party/bounds_checking_function/include", 900e98b08fSopenharmony_ci "//foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin", 910e98b08fSopenharmony_ci "${aafwk_lite_path}/interfaces/kits/ability_lite", 920e98b08fSopenharmony_ci ] 930e98b08fSopenharmony_ci sources = [ 940e98b08fSopenharmony_ci "//commonlibrary/utils_lite/js/builtin/kvstorekit/src/nativeapi_kv.cpp", 950e98b08fSopenharmony_ci "//commonlibrary/utils_lite/js/builtin/kvstorekit/src/nativeapi_kv_impl.c", 960e98b08fSopenharmony_ci ] 970e98b08fSopenharmony_ci public_configs = [ ":aafwk_config" ] 980e98b08fSopenharmony_ci configs = [ ":storage_config" ] 990e98b08fSopenharmony_ci deps = [ 1000e98b08fSopenharmony_ci "//foundation/arkui/ace_engine_lite/frameworks/targets/simulator:ace_lite", 1010e98b08fSopenharmony_ci ] 1020e98b08fSopenharmony_ci} 103