mirror of
https://github.com/openharmony/ace_ace_engine.git
synced 2026-07-21 01:45:30 -04:00
7cbd3948db
Signed-off-by: kangchongtao <kangchongtao@huawei.com> Change-Id: I9762ef04fc4b5c3a4f924ad0a999401fe976f24d Signed-off-by: kangchongtao <kangchongtao@huawei.com>
54 lines
1.6 KiB
Plaintext
54 lines
1.6 KiB
Plaintext
# Copyright (c) 2021-2022 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
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
import("//build/ohos.gni")
|
|
import("//foundation/ace/ace_engine/ace_config.gni")
|
|
|
|
# build framework bridge
|
|
template("framework_bridge") {
|
|
forward_variables_from(invoker, "*")
|
|
|
|
ohos_source_set(target_name) {
|
|
part_name = ace_engine_part
|
|
configs = [ "$ace_root:ace_config" ]
|
|
|
|
deps = [
|
|
"declarative_frontend:declarative_frontend_$platform",
|
|
|
|
# bridge source
|
|
"card_frontend:card_frontend_$platform",
|
|
"codec:data_codec",
|
|
"common:bridge_common_$platform",
|
|
"common/accessibility:bridge_accessibility_$platform",
|
|
"js_frontend:js_frontend_$platform",
|
|
"plugin_frontend:plugin_frontend_$platform",
|
|
]
|
|
|
|
if (defined(config.js_pa_support) && config.js_pa_support) {
|
|
deps += [ "$ace_root/${config.pa_engine_path}:pa_backend_$platform" ]
|
|
}
|
|
}
|
|
}
|
|
|
|
foreach(item, ace_platforms) {
|
|
framework_bridge("framework_bridge_" + item.name) {
|
|
platform = item.name
|
|
config = {
|
|
}
|
|
|
|
if (defined(item.config)) {
|
|
config = item.config
|
|
}
|
|
}
|
|
}
|