From f7a1f06ca0357e8188e672f9bdcc14061a244e20 Mon Sep 17 00:00:00 2001 From: zgy-ian Date: Sat, 18 Dec 2021 18:11:33 +0800 Subject: [PATCH] Use gn to package ts/js applications Signed-off-by: zgy-ian --- ts2panda/BUILD.gn | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ts2panda/BUILD.gn b/ts2panda/BUILD.gn index fcde4bc32f..c8f80b0705 100755 --- a/ts2panda/BUILD.gn +++ b/ts2panda/BUILD.gn @@ -312,9 +312,19 @@ group("ark_ts2abc_build") { "${ts2abc_root}:ts2abc_build(${buildtool_linux})", "${ts2abc_root}:ts2abc_build_ets(${buildtool_linux})", ] + } else { + deps += [ + "${ts2abc_root}:ts2abc_build(${buildtool_mac})", + "${ts2abc_root}:ts2abc_build_ets(${buildtool_mac})", + ] } } +ohos_copy("ts2abc_js_file") { + sources = [ "${ts2abc_root}/scripts/ts2abc.js" ] + outputs = [ target_out_dir + "/{{source_file_part}}" ] +} + ohos_copy("copy_ts2abc_tests") { sources = [ "${ts2abc_root}/tests" ] deps = [ ":npm_run_build" ] -- Gitee