1# Copyright (c) 2022-2023 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
14xcomponent_components_support = false
15form_components_support = false
16remote_window_support = false
17effect_component_support = false
18use_external_icu = "shared"
19accessibility_support = true
20rich_components_support = true
21ohos_standard_fontmgr = true
22image_components_support = false
23plugin_components_support = false
24enable_ability_component = false
25enable_system_clipboard = false
26advance_components_support = false
27connect_server_support = false
28enable_rosen_backend = true
29enable_standard_input = false
30video_components_support = false
31web_components_support = false
32preview_support = true
33model_component_support = false
34window_scene_support = false
35build_for_preview = true
36use_fast_taskpool = false
37
38# js engine common configs
39js_pa_support = false
40use_build_in_js_engine = true
41
42ark_engine = {
43  engine_name = "ark"
44  engine_path = "jsi"
45  engine_defines = [ "USE_ARK_ENGINE" ]
46}
47js_engines = [ ark_engine ]
48
49platform_deps = [
50  "//foundation/arkui/ace_engine/adapter/preview/entrance:preview_entrance_source",
51  "//foundation/arkui/ace_engine/adapter/preview/external:preview_external_source",
52  "//foundation/arkui/ace_engine/adapter/preview/inspector:preview_inspector_source",
53  "//foundation/arkui/ace_engine/adapter/preview/osal:preview_osal_source",
54]
55
56cflags_cc = [
57  "-std=c++17",
58  "-Wno-thread-safety-attributes",
59  "-Wno-thread-safety-analysis",
60  "-Wno-ignored-attributes",
61  "-Wno-unknown-pragmas",
62  "-g1",
63]
64
65defines = [ "UNICODE" ]
66
67if (defined(web_components_support) && web_components_support) {
68  defines += [ "WEB_SUPPORTED" ]
69}
70
71if (defined(video_components_support) && video_components_support) {
72  defines += [ "VIDEO_SUPPORTED" ]
73}
74
75if (defined(xcomponent_components_support) && xcomponent_components_support) {
76  defines += [ "XCOMPONENT_SUPPORTED" ]
77}
78
79if (defined(form_components_support) && form_components_support) {
80  defines += [ "FORM_SUPPORTED" ]
81}
82
83if (defined(remote_window_support) && remote_window_support) {
84  defines += [ "REMOTE_WINDOW_SUPPORTED" ]
85}
86
87if (defined(effect_component_support) && effect_component_support) {
88  defines += [ "EFFECT_COMPONENT_SUPPORTED" ]
89}
90
91if (defined(image_components_support) && image_components_support) {
92  defines += [ "IMAGE_SUPPORTED" ]
93}
94
95if (defined(plugin_components_support) && plugin_components_support) {
96  defines += [ "PLUGIN_COMPONENT_SUPPORTED" ]
97}
98
99if (defined(enable_ability_component) && enable_ability_component) {
100  defines += [ "ABILITY_COMPONENT_SUPPORTED" ]
101}
102
103if (defined(preview_support) && preview_support) {
104  defines += [ "PREVIEW" ]
105}
106
107if (defined(model_component_support) && model_component_support) {
108  defines += [ "MODEL_COMPONENT_SUPPORTED" ]
109}
110
111if (defined(enable_rosen_backend) && enable_rosen_backend) {
112  defines += [ "ENABLE_ROSEN_BACKEND" ]
113}
114
115if (defined(window_scene_support) && window_scene_support) {
116  defines += [ "WINDOW_SCENE_SUPPORTED" ]
117}
118
119if (use_fast_taskpool) {
120  defines += [ "USE_FAST_TASKPOOL" ]
121}
122
123libace_target = "//foundation/arkui/ace_engine/build:libace_compatible"
124