From f9308e31ceeec66c9aa0c758fc823d4ee5ee830e Mon Sep 17 00:00:00 2001 From: chuxuezhe111 Date: Wed, 29 Jun 2022 02:43:03 -0700 Subject: [PATCH] adapter the prebuilts path to root_build_dir Signed-off-by: chuxuezhe111 --- BUILD.gn | 3 ++- js_framework_build.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 9d182389..7dc25231 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -78,6 +78,7 @@ action("gen_snapshot") { rebase_path(target_out_dir, root_build_dir), rebase_path(babel, root_build_dir), is_mac, + rebase_path("//prebuilts", root_build_dir), ] inputs = [ @@ -275,7 +276,7 @@ action("gen_jsf_c") { "-N", "js_framework", "-c", - rebase_path(prebuilt_js_path, "."), + rebase_path(prebuilt_js_path, root_build_dir), ] inputs = [ prebuilt_js_path ] diff --git a/js_framework_build.sh b/js_framework_build.sh index 2b5a6b80..0dedb070 100755 --- a/js_framework_build.sh +++ b/js_framework_build.sh @@ -14,7 +14,7 @@ set -e echo "copy source code..." -prebuilts_path="../../prebuilts" +prebuilts_path=${12} # copy dependency file to generate dir of gn # the params come from .gn