From f05afd8d9256081a4cae1177a94e295463100e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=9B=B9=E5=AE=87?= Date: Thu, 11 Sep 2025 19:15:54 +0800 Subject: [PATCH] =?UTF-8?q?bundle=5Fapi=E4=BD=BF=E7=94=A8=E6=BA=90?= =?UTF-8?q?=E7=A0=81=E6=96=87=E4=BB=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王曹宇 --- BUILD.gn | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index bef722cfd1..e0b8db79ce 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -44,7 +44,7 @@ action("ohos_base_split") { "--output-interface-sdk", rebase_path(interface_sdk_path, root_build_dir), ] - outputs = [ "${root_out_dir}/sdk-interface" ] + outputs = [ "${interface_sdk_path}" ] } template("ohos_copy_internal") { @@ -143,6 +143,9 @@ template("ohos_handle_declaration_template") { deps += [ ":$_module_info_target" ] inputs = [] outputs = [ target_out_dir + "/ohos_sdk_arkui/${target_name}" ] + if (target_name == "ohos_build_ets_sdk_api"){ + outputs += [target_out_dir + "/ohos_sdk_arkui/${target_name}/bundle/bundleStatusCallback.d.ts"] + } script = "//interface/sdk-js/delete_arkui_label.py" args = [ @@ -278,8 +281,9 @@ ohos_copy_internal("ets_internal_api2") { if (!sdk_build_public) { # ets/build-tools/ets-loader/declarations脚本 ohos_copy("bundle_api") { + deps = [ ":ohos_build_ets_sdk_api" ] sdk_type = "ets" - sources = [ "api/bundle/bundleStatusCallback.d.ts" ] + sources = [ target_out_dir + "/ohos_sdk_arkui/ohos_build_ets_sdk_api/bundle/bundleStatusCallback.d.ts" ] outputs = [ target_out_dir + "/${sdk_type}/${target_name}/{{source_file_part}}" ] module_source_dir = target_out_dir + "/${sdk_type}/${target_name}" -- Gitee