123b3eb3cSopenharmony_ci# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
223b3eb3cSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
323b3eb3cSopenharmony_ci# you may not use this file except in compliance with the License.
423b3eb3cSopenharmony_ci# You may obtain a copy of the License at
523b3eb3cSopenharmony_ci#
623b3eb3cSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
723b3eb3cSopenharmony_ci#
823b3eb3cSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
923b3eb3cSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
1023b3eb3cSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1123b3eb3cSopenharmony_ci# See the License for the specific language governing permissions and
1223b3eb3cSopenharmony_ci# limitations under the License.
1323b3eb3cSopenharmony_ci
1423b3eb3cSopenharmony_cixcomponent_components_support = false
1523b3eb3cSopenharmony_ciform_components_support = false
1623b3eb3cSopenharmony_ciremote_window_support = false
1723b3eb3cSopenharmony_cieffect_component_support = false
1823b3eb3cSopenharmony_ciuse_external_icu = "shared"
1923b3eb3cSopenharmony_ciaccessibility_support = true
2023b3eb3cSopenharmony_cirich_components_support = true
2123b3eb3cSopenharmony_ciohos_standard_fontmgr = true
2223b3eb3cSopenharmony_ciimage_components_support = false
2323b3eb3cSopenharmony_ciplugin_components_support = false
2423b3eb3cSopenharmony_cienable_ability_component = false
2523b3eb3cSopenharmony_cienable_system_clipboard = false
2623b3eb3cSopenharmony_ciadvance_components_support = false
2723b3eb3cSopenharmony_ciconnect_server_support = false
2823b3eb3cSopenharmony_cienable_rosen_backend = true
2923b3eb3cSopenharmony_cienable_standard_input = false
3023b3eb3cSopenharmony_civideo_components_support = false
3123b3eb3cSopenharmony_ciweb_components_support = false
3223b3eb3cSopenharmony_cipreview_support = true
3323b3eb3cSopenharmony_cimodel_component_support = false
3423b3eb3cSopenharmony_ciwindow_scene_support = false
3523b3eb3cSopenharmony_cibuild_for_preview = true
3623b3eb3cSopenharmony_ciuse_fast_taskpool = false
3723b3eb3cSopenharmony_ci
3823b3eb3cSopenharmony_ci# js engine common configs
3923b3eb3cSopenharmony_cijs_pa_support = false
4023b3eb3cSopenharmony_ciuse_build_in_js_engine = true
4123b3eb3cSopenharmony_ci
4223b3eb3cSopenharmony_ciark_engine = {
4323b3eb3cSopenharmony_ci  engine_name = "ark"
4423b3eb3cSopenharmony_ci  engine_path = "jsi"
4523b3eb3cSopenharmony_ci  engine_defines = [ "USE_ARK_ENGINE" ]
4623b3eb3cSopenharmony_ci}
4723b3eb3cSopenharmony_cijs_engines = [ ark_engine ]
4823b3eb3cSopenharmony_ci
4923b3eb3cSopenharmony_ciplatform_deps = [
5023b3eb3cSopenharmony_ci  "//foundation/arkui/ace_engine/adapter/preview/entrance:preview_entrance_source",
5123b3eb3cSopenharmony_ci  "//foundation/arkui/ace_engine/adapter/preview/external:preview_external_source",
5223b3eb3cSopenharmony_ci  "//foundation/arkui/ace_engine/adapter/preview/inspector:preview_inspector_source",
5323b3eb3cSopenharmony_ci  "//foundation/arkui/ace_engine/adapter/preview/osal:preview_osal_source",
5423b3eb3cSopenharmony_ci]
5523b3eb3cSopenharmony_ci
5623b3eb3cSopenharmony_cicflags_cc = [
5723b3eb3cSopenharmony_ci  "-std=c++17",
5823b3eb3cSopenharmony_ci  "-Wno-thread-safety-attributes",
5923b3eb3cSopenharmony_ci  "-Wno-thread-safety-analysis",
6023b3eb3cSopenharmony_ci  "-Wno-ignored-attributes",
6123b3eb3cSopenharmony_ci  "-Wno-unknown-pragmas",
6223b3eb3cSopenharmony_ci  "-g1",
6323b3eb3cSopenharmony_ci]
6423b3eb3cSopenharmony_ci
6523b3eb3cSopenharmony_cidefines = [ "UNICODE" ]
6623b3eb3cSopenharmony_ci
6723b3eb3cSopenharmony_ciif (defined(web_components_support) && web_components_support) {
6823b3eb3cSopenharmony_ci  defines += [ "WEB_SUPPORTED" ]
6923b3eb3cSopenharmony_ci}
7023b3eb3cSopenharmony_ci
7123b3eb3cSopenharmony_ciif (defined(video_components_support) && video_components_support) {
7223b3eb3cSopenharmony_ci  defines += [ "VIDEO_SUPPORTED" ]
7323b3eb3cSopenharmony_ci}
7423b3eb3cSopenharmony_ci
7523b3eb3cSopenharmony_ciif (defined(xcomponent_components_support) && xcomponent_components_support) {
7623b3eb3cSopenharmony_ci  defines += [ "XCOMPONENT_SUPPORTED" ]
7723b3eb3cSopenharmony_ci}
7823b3eb3cSopenharmony_ci
7923b3eb3cSopenharmony_ciif (defined(form_components_support) && form_components_support) {
8023b3eb3cSopenharmony_ci  defines += [ "FORM_SUPPORTED" ]
8123b3eb3cSopenharmony_ci}
8223b3eb3cSopenharmony_ci
8323b3eb3cSopenharmony_ciif (defined(remote_window_support) && remote_window_support) {
8423b3eb3cSopenharmony_ci  defines += [ "REMOTE_WINDOW_SUPPORTED" ]
8523b3eb3cSopenharmony_ci}
8623b3eb3cSopenharmony_ci
8723b3eb3cSopenharmony_ciif (defined(effect_component_support) && effect_component_support) {
8823b3eb3cSopenharmony_ci  defines += [ "EFFECT_COMPONENT_SUPPORTED" ]
8923b3eb3cSopenharmony_ci}
9023b3eb3cSopenharmony_ci
9123b3eb3cSopenharmony_ciif (defined(image_components_support) && image_components_support) {
9223b3eb3cSopenharmony_ci  defines += [ "IMAGE_SUPPORTED" ]
9323b3eb3cSopenharmony_ci}
9423b3eb3cSopenharmony_ci
9523b3eb3cSopenharmony_ciif (defined(plugin_components_support) && plugin_components_support) {
9623b3eb3cSopenharmony_ci  defines += [ "PLUGIN_COMPONENT_SUPPORTED" ]
9723b3eb3cSopenharmony_ci}
9823b3eb3cSopenharmony_ci
9923b3eb3cSopenharmony_ciif (defined(enable_ability_component) && enable_ability_component) {
10023b3eb3cSopenharmony_ci  defines += [ "ABILITY_COMPONENT_SUPPORTED" ]
10123b3eb3cSopenharmony_ci}
10223b3eb3cSopenharmony_ci
10323b3eb3cSopenharmony_ciif (defined(preview_support) && preview_support) {
10423b3eb3cSopenharmony_ci  defines += [ "PREVIEW" ]
10523b3eb3cSopenharmony_ci}
10623b3eb3cSopenharmony_ci
10723b3eb3cSopenharmony_ciif (defined(model_component_support) && model_component_support) {
10823b3eb3cSopenharmony_ci  defines += [ "MODEL_COMPONENT_SUPPORTED" ]
10923b3eb3cSopenharmony_ci}
11023b3eb3cSopenharmony_ci
11123b3eb3cSopenharmony_ciif (defined(enable_rosen_backend) && enable_rosen_backend) {
11223b3eb3cSopenharmony_ci  defines += [ "ENABLE_ROSEN_BACKEND" ]
11323b3eb3cSopenharmony_ci}
11423b3eb3cSopenharmony_ci
11523b3eb3cSopenharmony_ciif (defined(window_scene_support) && window_scene_support) {
11623b3eb3cSopenharmony_ci  defines += [ "WINDOW_SCENE_SUPPORTED" ]
11723b3eb3cSopenharmony_ci}
11823b3eb3cSopenharmony_ci
11923b3eb3cSopenharmony_ciif (use_fast_taskpool) {
12023b3eb3cSopenharmony_ci  defines += [ "USE_FAST_TASKPOOL" ]
12123b3eb3cSopenharmony_ci}
12223b3eb3cSopenharmony_ci
12323b3eb3cSopenharmony_cilibace_target = "//foundation/arkui/ace_engine/build:libace_compatible"
124