• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
36
37# js engine common configs
38js_pa_support = false
39use_build_in_js_engine = true
40
41ark_engine = {
42  engine_name = "ark"
43  engine_path = "jsi"
44  engine_defines = [ "USE_ARK_ENGINE" ]
45}
46js_engines = [ ark_engine ]
47
48platform_deps = [
49  "//foundation/arkui/ace_engine/adapter/preview/entrance:preview_entrance_source",
50  "//foundation/arkui/ace_engine/adapter/preview/external:preview_external_source",
51  "//foundation/arkui/ace_engine/adapter/preview/inspector:preview_inspector_source",
52  "//foundation/arkui/ace_engine/adapter/preview/osal:preview_osal_source",
53]
54
55cflags_cc = [
56  "-std=c++17",
57  "-Wno-thread-safety-attributes",
58  "-Wno-thread-safety-analysis",
59  "-Wno-ignored-attributes",
60  "-Wno-unknown-pragmas",
61  "-g1",
62]
63
64defines = [ "UNICODE" ]
65
66if (defined(web_components_support) && web_components_support) {
67  defines += [ "WEB_SUPPORTED" ]
68}
69
70if (defined(video_components_support) && video_components_support) {
71  defines += [ "VIDEO_SUPPORTED" ]
72}
73
74if (defined(xcomponent_components_support) && xcomponent_components_support) {
75  defines += [ "XCOMPONENT_SUPPORTED" ]
76}
77
78if (defined(form_components_support) && form_components_support) {
79  defines += [ "FORM_SUPPORTED" ]
80}
81
82if (defined(remote_window_support) && remote_window_support) {
83  defines += [ "REMOTE_WINDOW_SUPPORTED" ]
84}
85
86if (defined(effect_component_support) && effect_component_support) {
87  defines += [ "EFFECT_COMPONENT_SUPPORTED" ]
88}
89
90if (defined(image_components_support) && image_components_support) {
91  defines += [ "IMAGE_SUPPORTED" ]
92}
93
94if (defined(plugin_components_support) && plugin_components_support) {
95  defines += [ "PLUGIN_COMPONENT_SUPPORTED" ]
96}
97
98if (defined(enable_ability_component) && enable_ability_component) {
99  defines += [ "ABILITY_COMPONENT_SUPPORTED" ]
100}
101
102if (defined(preview_support) && preview_support) {
103  defines += [ "PREVIEW" ]
104}
105
106if (defined(model_component_support) && model_component_support) {
107  defines += [ "MODEL_COMPONENT_SUPPORTED" ]
108}
109
110if (defined(enable_rosen_backend) && enable_rosen_backend) {
111  defines += [ "ENABLE_ROSEN_BACKEND" ]
112}
113
114if (defined(window_scene_support) && window_scene_support) {
115  defines += [ "WINDOW_SCENE_SUPPORTED" ]
116}
117
118libace_target = "//foundation/arkui/ace_engine/build:libace_compatible"
119