Signed-off-by: lifansheng <lifansheng1@huawei.com>

On branch master
 Your branch is up to date with 'origin/master'.
This commit is contained in:
lifansheng
2021-10-16 17:22:05 +08:00
parent 7dd0394f29
commit d2e9ce998b
3 changed files with 27 additions and 36 deletions
+9 -12
View File
@@ -16,20 +16,17 @@ import os
import platform
import argparse
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('--dst-file',
help='the converted target file')
arguments = parser.parse_args()
return arguments
if __name__ == '__main__':
build_path = os.path.abspath(os.path.join(os.getcwd(), "../.."))
os.chdir("%s/base/compileruntime/js_api_module/convertxml" % build_path)
input_arguments = parse_args()
os.system('../../../../prebuilts/build-tools/common/nodejs/node-v12.18.4-linux-x64/bin/node ../../../../ark/ts2abc/ts2panda/node_modules/typescript/bin/tsc')
os.system('cp -r ./out/js_convertxml.js ' + input_arguments.dst_file);
parser = argparse.ArgumentParser()
parser.add_argument('--dst-file',
help='the converted target file')
input_arguments = parser.parse_args()
os.system('../../../../prebuilts/build-tools/common/nodejs/node-v12.18.4-linux-x64/bin/node '
'../../../../ark/ts2abc/ts2panda/node_modules/typescript/bin/tsc')
os.system('cp -r ./out/js_convertxml.js ' + input_arguments.dst_file)
os.system('rm -rf ./out')
+9 -12
View File
@@ -16,20 +16,17 @@ import os
import platform
import argparse
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('--dst-file',
help='the converted target file')
arguments = parser.parse_args()
return arguments
if __name__ == '__main__':
build_path = os.path.abspath(os.path.join(os.getcwd(), "../.."))
os.chdir("%s/base/compileruntime/js_api_module/uri" % build_path)
input_arguments = parse_args()
os.system('../../../../prebuilts/build-tools/common/nodejs/node-v12.18.4-linux-x64/bin/node ../../../../ark/ts2abc/ts2panda/node_modules/typescript/bin/tsc')
os.system('cp -r ./out/js_uri.js ' + input_arguments.dst_file);
parser = argparse.ArgumentParser()
parser.add_argument('--dst-file',
help='the converted target file')
input_arguments = parser.parse_args()
os.system('../../../../prebuilts/build-tools/common/nodejs/node-v12.18.4-linux-x64/bin/node '
'../../../../ark/ts2abc/ts2panda/node_modules/typescript/bin/tsc')
os.system('cp -r ./out/js_uri.js ' + input_arguments.dst_file)
os.system('rm -rf ./out')
+9 -12
View File
@@ -16,20 +16,17 @@ import os
import platform
import argparse
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('--dst-file',
help='the converted target file')
arguments = parser.parse_args()
return arguments
if __name__ == '__main__':
build_path = os.path.abspath(os.path.join(os.getcwd(), "../.."))
os.chdir("%s/base/compileruntime/js_api_module/url" % build_path)
input_arguments = parse_args()
os.system('../../../../prebuilts/build-tools/common/nodejs/node-v12.18.4-linux-x64/bin/node ../../../../ark/ts2abc/ts2panda/node_modules/typescript/bin/tsc')
os.system('cp -r ./out/js_url.js ' + input_arguments.dst_file);
parser = argparse.ArgumentParser()
parser.add_argument('--dst-file',
help='the converted target file')
input_arguments = parser.parse_args()
os.system('../../../../prebuilts/build-tools/common/nodejs/node-v12.18.4-linux-x64/bin/node '
'../../../../ark/ts2abc/ts2panda/node_modules/typescript/bin/tsc')
os.system('cp -r ./out/js_url.js ' + input_arguments.dst_file)
os.system('rm -rf ./out')