• 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
17use_curl_download = true
18accessibility_support = true
19rich_components_support = true
20ohos_standard_fontmgr = true
21image_components_support = false
22plugin_components_support = false
23enable_ability_component = false
24enable_system_clipboard = false
25advance_components_support = false
26connect_server_support = false
27enable_rosen_backend = true
28enable_standard_input = false
29video_components_support = false
30web_components_support = false
31preview_support = true
32build_for_preview = true
33
34# js engine common configs
35js_pa_support = false
36use_build_in_js_engine = true
37
38ark_engine = {
39  engine_name = "ark"
40  engine_path = "jsi"
41  engine_defines = [ "USE_ARK_ENGINE" ]
42}
43js_engines = [ ark_engine ]
44
45platform_deps = [
46  "//foundation/arkui/ace_engine/adapter/preview/entrance:preview_entrance_source",
47  "//foundation/arkui/ace_engine/adapter/preview/external:preview_external_source",
48  "//foundation/arkui/ace_engine/adapter/preview/inspector:preview_inspector_source",
49  "//foundation/arkui/ace_engine/adapter/preview/osal:preview_osal_source",
50]
51
52cflags_cc = [
53  "-std=c++17",
54  "-Wno-thread-safety-attributes",
55  "-Wno-thread-safety-analysis",
56  "-Wno-ignored-attributes",
57  "-Wno-unknown-pragmas",
58]
59
60defines = [ "UNICODE" ]
61
62if (defined(web_components_support) && web_components_support) {
63  defines += [ "WEB_SUPPORTED" ]
64}
65
66if (defined(video_components_support) && video_components_support) {
67  defines += [ "VIDEO_SUPPORTED" ]
68}
69
70if (defined(xcomponent_components_support) && xcomponent_components_support) {
71  defines += [ "XCOMPONENT_SUPPORTED" ]
72}
73
74if (defined(form_components_support) && form_components_support) {
75  defines += [ "FORM_SUPPORTED" ]
76}
77
78if (defined(remote_window_support) && remote_window_support) {
79  defines += [ "REMOTE_WINDOW_SUPPORTED" ]
80}
81
82if (defined(image_components_support) && image_components_support) {
83  defines += [ "IMAGE_SUPPORTED" ]
84}
85
86if (defined(plugin_components_support) && plugin_components_support) {
87  defines += [ "PLUGIN_COMPONENT_SUPPORTED" ]
88}
89
90if (defined(enable_ability_component) && enable_ability_component) {
91  defines += [ "ABILITY_COMPONENT_SUPPORTED" ]
92}
93
94if (defined(preview_support) && preview_support) {
95  defines += [ "PREVIEW" ]
96}
97
98if (defined(enable_rosen_backend) && enable_rosen_backend) {
99  defines += [ "ENABLE_ROSEN_BACKEND" ]
100}
101