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 14defines = [ 15 "MAC_PLATFORM", 16 "UNICODE", 17 "SK_BUILD_FONT_MGR_FOR_PREVIEW_MAC", 18] 19 20js_engines = [] 21qjs_engine = { 22 engine_name = "qjs" 23 engine_path = "quickjs" 24 engine_defines = [ "USE_QUICKJS_ENGINE" ] 25} 26js_engines += [ qjs_engine ] 27use_build_in_js_engine = true 28use_curl_download = true 29accessibility_support = true 30rich_components_support = true 31advance_components_support = false 32form_components_support = false 33xcomponent_components_support = false 34plugin_components_support = false 35js_pa_support = false 36connect_server_support = false 37enable_rosen_backend = false 38enable_standard_input = false 39enable_system_clipboard = false 40ohos_standard_fontmgr = true 41no_support_component_mock = true 42 43if (form_components_support) { 44 defines += [ "FORM_SUPPORTED" ] 45} 46 47if (defined(no_support_component_mock) && no_support_component_mock) { 48 defines += [ "PREVIEW_COMPONENT_MOCK" ] 49} 50 51cflags_cc = [ 52 "-std=c++17", 53 "-Wno-thread-safety-attributes", 54 "-Wno-thread-safety-analysis", 55 "-Wno-ignored-attributes", 56 "-Wno-unknown-pragmas", 57] 58 59platform_deps = [ 60 "//foundation/ace/ace_engine/adapter/preview/entrance:ace_preview_entrance_mac", 61 "//foundation/ace/ace_engine/adapter/preview/inspector:ace_inspector_mac", 62 "//foundation/ace/ace_engine/adapter/preview/osal:ace_osal_mac", 63] 64