!131 Switch component ark_ts2abc to arkcompiler_ets_frontend

Merge pull request !131 from chenqy930/switch_arkcompiler_ets_frontend
This commit is contained in:
openharmony_ci
2022-07-14 14:02:53 +00:00
committed by Gitee
4 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -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)
+4 -3
View File
@@ -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" ]
+1 -1
View File
@@ -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)
+3 -3
View File
@@ -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" ]