diff --git a/BUILD.gn b/BUILD.gn index e3e1638565e5ba8091bead3c856f2973b5916eb7..6b07e5c1c0e9d9cebb335564e05d1847a8cbfbab 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -107,13 +107,10 @@ template("ohos_copy_internal") { # 主要api处理template template("ohos_declaration_template") { forward_variables_from(invoker, "*") + input_project_dir = invoker.input_project_dir _module_info_target = "/ohos_declaration/${sdk_type}/${target_name}_info" - # fullSDK中api路径 - input_project_dir = interface_sdk_path_ets1 - if (sdk_type == "ets2") { - input_project_dir = interface_sdk_path_ets2 - } + input_api_dir = input_project_dir + "/api" action_with_pydeps(target_name) { @@ -150,11 +147,18 @@ template("ohos_declaration_template") { # ets/api执行脚本 ohos_declaration_template("ohos_declaration_ets") { sdk_type = "ets" + input_project_dir = interface_sdk_path_ets1 +} + +ohos_declaration_template("ohos_declaration_ets_interop") { + sdk_type = "ets" + input_project_dir = interface_sdk_path_ets1_interop } # ets2/api执行脚本 ohos_declaration_template("ohos_declaration_ets2") { sdk_type = "ets2" + input_project_dir = interface_sdk_path_ets2 } # ets/api/@internal/full执行脚本