mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-26 16:52:10 +00:00
Add arkui build.gn files
Signed-off-by: houchengyu2022 <houchengyu@huawei.com>
This commit is contained in:
parent
327a54a14c
commit
de870e9e44
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2022 Huawei Device Co., Ltd.
|
||||
# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
@ -27,4 +27,18 @@ if (exec_script(check_file_script, check_file_args, "string") == "True") {
|
||||
}
|
||||
}
|
||||
|
||||
check_advance_ace_file_args = [
|
||||
"--filename",
|
||||
rebase_path(
|
||||
"//vendor/${product_company}/foundation/ace/ace_engine_ext/ace_engine_ext.gni"),
|
||||
]
|
||||
|
||||
if (exec_script(check_file_script, check_advance_ace_file_args, "string") ==
|
||||
"True") {
|
||||
vendor_configs = {
|
||||
import(
|
||||
"//vendor/${product_company}/foundation/ace/ace_engine_ext/ace_engine_ext.gni")
|
||||
}
|
||||
}
|
||||
|
||||
print(vendor_configs)
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
|
||||
# Copyright (c) 2021-2023 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
@ -13,6 +13,7 @@
|
||||
|
||||
import("//build/ohos.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_config.gni")
|
||||
import("//foundation/arkui/ace_engine/build/ace_ext.gni")
|
||||
import("//foundation/arkui/ace_engine/build/ace_gen_obj.gni")
|
||||
import("../../../build/uicast.gni")
|
||||
|
||||
@ -355,6 +356,10 @@ template("declarative_js_engine") {
|
||||
}
|
||||
}
|
||||
|
||||
if (defined(vendor_configs.ace_engine_advanced)) {
|
||||
sources += vendor_configs.ace_engine_advanced_jsview
|
||||
}
|
||||
|
||||
if (defined(config.xcomponent_components_support) &&
|
||||
config.xcomponent_components_support) {
|
||||
sources += [
|
||||
|
@ -120,6 +120,7 @@ template("declarative_js_engine_ark") {
|
||||
sources += uicast_configs.uicast_jsi_sources
|
||||
|
||||
if (defined(vendor_configs.extra_view_register_sources)) {
|
||||
include_dirs = vendor_configs.ace_advance_dirs
|
||||
sources += vendor_configs.extra_view_register_sources
|
||||
} else {
|
||||
sources += [ "jsi_extra_view_register.cpp" ]
|
||||
|
@ -11,6 +11,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//foundation/arkui/ace_engine/build/ace_ext.gni")
|
||||
import(
|
||||
"//foundation/arkui/ace_engine/frameworks/core/components_ng/components.gni")
|
||||
|
||||
@ -374,6 +375,10 @@ build_component_ng("pattern_ng") {
|
||||
"custom_paint/offscreen_canvas_pattern.cpp",
|
||||
]
|
||||
}
|
||||
|
||||
if (defined(vendor_configs.ace_engine_advanced)) {
|
||||
sources += vendor_configs.ace_engine_advanced_pattern
|
||||
}
|
||||
}
|
||||
|
||||
build_component_ng("pattern_ability_component_ng") {
|
||||
|
Loading…
Reference in New Issue
Block a user