diff --git a/arkguard/BUILD.gn b/arkguard/BUILD.gn index 66e5c5af551dc921e74843c7ebb7a4e2adf95826..12f77e69f722ba34e2d96cffbad72f7a2f23858c 100644 --- a/arkguard/BUILD.gn +++ b/arkguard/BUILD.gn @@ -21,8 +21,15 @@ if ((defined(ark_standalone_build) && ark_standalone_build) || "//build/config/components/runtime_core/static_core/ark_common_config.gni") } -typescript_dir = get_label_info("//third_party/typescript:build_typescript", - "target_out_dir") +if (defined(ohos_indep_compiler_enable) && ohos_indep_compiler_enable) { + typescript_dir = + get_label_info("typescript:build_typescript_etc", "target_out_dir") + typescript_tgz = "${typescript_dir}/libs/ohos-typescript-4.9.5-r4.tgz" +} else { + typescript_dir = get_label_info("//third_party/typescript:build_typescript", + "target_out_dir") + typescript_tgz = "${typescript_dir}/ohos-typescript-4.9.5-r4.tgz" +} action("build_arkguard") { sources = [ @@ -62,7 +69,7 @@ action("build_arkguard") { script = "compile_arkguard.py" args = [ rebase_path(get_path_info("./", "abspath")), - rebase_path("${typescript_dir}/ohos-typescript-4.9.5-r4.tgz"), + rebase_path("$typescript_tgz"), rebase_path("${target_out_dir}"), ]