加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
BUILD.gn 2.03 KB
一键复制 编辑 原始数据 按行查看 历史
# Copyright (c) 2024 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("//build/templates/abc/ohos_abc.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")
base_js_output_path = get_label_info(":gen_js_proxyclass", "target_out_dir")
ark_styles_obj_path = base_js_output_path + "/arkStyles.o"
base_abc_output_path = get_label_info(":gen_abc_proxyclass", "target_out_dir")
abc_ark_styles_obj_path = base_abc_output_path + "/abc_ark_styles.o"
gen_obj("ark_styles") {
input = "engine/arkStyles.js"
if (use_mac || use_mingw_win || use_linux || target_os == "ios") {
ark_styles_obj_path = base_js_output_path + "/ark_styles.c"
}
output = ark_styles_obj_path
snapshot_dep = []
}
gen_obj("abc_ark_styles") {
input = base_abc_output_path + "/arkStyles.abc"
if (use_mac || use_mingw_win || use_ios || use_linux) {
abc_ark_styles_obj_path = base_abc_output_path + "/arkStyles.c"
}
output = abc_ark_styles_obj_path
snapshot_dep = [ ":gen_arkStyles_abc" ]
}
es2abc_gen_abc("gen_arkStyles_abc") {
src_js = rebase_path(
"//foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_styles/engine/arkStyles.js")
dst_file = rebase_path(base_abc_output_path + "/arkStyles.abc")
in_puts = [ "//foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_styles/engine/arkStyles.js" ]
out_puts = [ base_abc_output_path + "/arkStyles.abc" ]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化