1# Copyright (c) 2021-2022 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("preview_common.gni") 15 16# js engine common configs 17js_engines = [] 18js_pa_support = false 19use_build_in_js_engine = true 20 21ark_engine = { 22 engine_name = "ark" 23 engine_path = "jsi" 24 engine_defines = [ "USE_ARK_ENGINE" ] 25} 26js_engines += [ ark_engine ] 27build_for_preview = true 28 29# windows platform defines and configs 30defines += [ 31 "MAC_PLATFORM", 32 "UNICODE", 33 "SK_BUILD_FONT_MGR_FOR_PREVIEW_MAC", 34] 35 36cflags_cc = [ 37 "-std=c++17", 38 "-Wno-thread-safety-attributes", 39 "-Wno-thread-safety-analysis", 40 "-Wno-ignored-attributes", 41 "-Wno-unknown-pragmas", 42] 43 44platform_deps = [ 45 "//foundation/arkui/ace_engine/adapter/preview/entrance:ace_preview_entrance_mac", 46 "//foundation/arkui/ace_engine/adapter/preview/external:preview_external_source_mac", 47 "//foundation/arkui/ace_engine/adapter/preview/inspector:ace_inspector_mac", 48 "//foundation/arkui/ace_engine/adapter/preview/osal:ace_osal_mac", 49] 50 51libace_target = 52 "//foundation/arkui/ace_engine/adapter/preview/build:libace_engine_mac" 53