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# linux platform defines and configs 30defines += [ 31 "LINUX_PLATFORM", 32 "UNICODE", 33 "GPU_DISABLED", 34 "SK_BUILD_FONT_MGR_FOR_PREVIEW_LINUX", 35] 36 37cflags_cc = [ 38 "-std=c++17", 39 "-Wno-thread-safety-attributes", 40 "-Wno-thread-safety-analysis", 41 "-Wno-ignored-attributes", 42 "-Wno-unknown-pragmas", 43] 44 45platform_deps = [ 46 "//foundation/arkui/ace_engine/adapter/preview/entrance:ace_preview_entrance_linux", 47 "//foundation/arkui/ace_engine/adapter/preview/external:preview_external_source_linux", 48 "//foundation/arkui/ace_engine/adapter/preview/inspector:ace_inspector_linux", 49 "//foundation/arkui/ace_engine/adapter/preview/osal:ace_osal_linux", 50] 51 52libace_target = 53 "//foundation/arkui/ace_engine/adapter/preview/build:libace_engine_linux" 54