From 062241dba95e5060aeb559d00aacb56596c88a26 Mon Sep 17 00:00:00 2001 From: chenqy930 Date: Thu, 7 Jul 2022 20:53:31 +0800 Subject: [PATCH] Switch component ark_ts2abc to arkcompiler_ets_frontend Signed-off-by: chenqy930 Change-Id: I6e8c689d51a8a67edddea3be3c83a46bf7be5b57 --- build_ts_js.py | 2 +- container/BUILD.gn | 7 ++++--- container/build_ts_js.py | 2 +- util/BUILD.gn | 6 +++--- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/build_ts_js.py b/build_ts_js.py index 20ec59e..cc7e81a 100755 --- a/build_ts_js.py +++ b/build_ts_js.py @@ -47,7 +47,7 @@ if __name__ == '__main__': node-v12.18.4-linux-x64/bin/node' if not os.path.exists(NODE_PATH): raise Exception('NO souch file or directory') - TSC_PATH = '../../../../ark/ts2abc/ts2panda/node_modules/\ + TSC_PATH = '../../../../arkcompiler/ets_frontend/ts2panda/node_modules/\ typescript/bin/tsc' CMD_INST = [NODE_PATH, TSC_PATH] run_command(CMD_INST) diff --git a/container/BUILD.gn b/container/BUILD.gn index 5c65243..1807d3d 100644 --- a/container/BUILD.gn +++ b/container/BUILD.gn @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import("//ark/ts2abc/ts2panda/ts2abc_config.gni") +import("//arkcompiler/ets_frontend/ts2panda/ts2abc_config.gni") import("//build/ohos.gni") import("//build/ohos/ace/ace.gni") import("//foundation/arkui/ace_engine/ace_config.gni") @@ -67,7 +67,8 @@ template("container_lib") { # compile .js to .abc. action("gen_" + name + "_abc") { visibility = [ ":*" ] - script = "//ark/ts2abc/ts2panda/scripts/generate_js_bytecode.py" + script = + "//arkcompiler/ets_frontend/ts2panda/scripts/generate_js_bytecode.py" args = [ "--src-js", @@ -84,7 +85,7 @@ template("container_lib") { ] deps = [ ":build_js_ts", - "//ark/ts2abc/ts2panda:ark_ts2abc_build", + "//arkcompiler/ets_frontend/ts2panda:ark_ts2abc_build", ] inputs = [ target_out_dir + "/js_" + name + ".js" ] diff --git a/container/build_ts_js.py b/container/build_ts_js.py index 20abe9e..8200dc5 100755 --- a/container/build_ts_js.py +++ b/container/build_ts_js.py @@ -40,7 +40,7 @@ if __name__ == '__main__': NODE_PATH = '../../../../prebuilts/build-tools/common/nodejs/\ node-v12.18.4-linux-x64/bin/node' - TSC_PATH = '../../../../ark/ts2abc/ts2panda/node_modules/typescript/bin/tsc' + TSC_PATH = '../../../../arkcompiler/ets_frontend/ts2panda/node_modules/typescript/bin/tsc' cmd = [NODE_PATH, TSC_PATH] run_command(cmd) diff --git a/util/BUILD.gn b/util/BUILD.gn index db50055..dffba0e 100755 --- a/util/BUILD.gn +++ b/util/BUILD.gn @@ -11,7 +11,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import("//ark/ts2abc/ts2panda/ts2abc_config.gni") +import("//arkcompiler/ets_frontend/ts2panda/ts2abc_config.gni") import("//build/ohos.gni") import("//build/ohos/ace/ace.gni") import("//foundation/arkui/ace_engine/ace_config.gni") @@ -43,7 +43,7 @@ gen_js_obj("util_js") { # compile .js to .abc. action("gen_util_abc") { visibility = [ ":*" ] - script = "//ark/ts2abc/ts2panda/scripts/generate_js_bytecode.py" + script = "//arkcompiler/ets_frontend/ts2panda/scripts/generate_js_bytecode.py" args = [ "--src-js", @@ -60,7 +60,7 @@ action("gen_util_abc") { ] deps = [ ":build_ts_js", - "//ark/ts2abc/ts2panda:ark_ts2abc_build", + "//arkcompiler/ets_frontend/ts2panda:ark_ts2abc_build", ] inputs = [ target_out_dir + "/util_js.js" ] -- Gitee