From 4a2a060a974e597cd65c5e23c27a0c1e932c31a6 Mon Sep 17 00:00:00 2001 From: hufeng Date: Tue, 21 Feb 2023 15:24:26 +0800 Subject: [PATCH] fixed f53bf61 from https://gitee.com/hufeng20/arkcompiler_ets_frontend/pulls/876 Copy ohos-typescript binary to output Signed-off-by: hufeng Change-Id: Ie5ad4f7ef4a74ffce5eda91f626e3df9ff72809e --- ts2panda/BUILD.gn | 72 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/ts2panda/BUILD.gn b/ts2panda/BUILD.gn index 89de1457b4..0e47d53baa 100755 --- a/ts2panda/BUILD.gn +++ b/ts2panda/BUILD.gn @@ -53,6 +53,78 @@ ohos_copy("config_files") { module_install_name = "" } +ohos_copy("ts2abc_deps") { + sources = + [ "//third_party/typescript/build_package/ohos-typescript-4.2.3-r2.tgz" ] + + outputs = [ target_out_dir + "/$target_name/{{source_file_part}}" ] + module_source_dir = target_out_dir + "/$target_name" + module_install_name = "" + license_file = "//third_party/typescript/LICENSE" + part_name = "ets_frontend" + subsystem_name = "arkcompiler" +} + +ohos_copy("ts2abc_deps_ets") { + sources = + [ "//third_party/typescript/build_package/ohos-typescript-4.2.3-r2.tgz" ] + + outputs = [ target_out_dir + "/$target_name/{{source_file_part}}" ] + module_source_dir = target_out_dir + "/$target_name" + module_install_name = "" + license_file = "//third_party/typescript/LICENSE" + part_name = "ets_frontend" + subsystem_name = "arkcompiler" +} + +ohos_copy("ts2abc_deps_win") { + sources = + [ "//third_party/typescript/build_package/ohos-typescript-4.2.3-r2.tgz" ] + + outputs = [ target_out_dir + "/$target_name/{{source_file_part}}" ] + module_source_dir = target_out_dir + "/$target_name" + module_install_name = "" + license_file = "//third_party/typescript/LICENSE" + part_name = "ets_frontend" + subsystem_name = "arkcompiler" +} + +ohos_copy("ts2abc_deps_win_ets") { + sources = + [ "//third_party/typescript/build_package/ohos-typescript-4.2.3-r2.tgz" ] + + outputs = [ target_out_dir + "/$target_name/{{source_file_part}}" ] + module_source_dir = target_out_dir + "/$target_name" + module_install_name = "" + license_file = "//third_party/typescript/LICENSE" + part_name = "ets_frontend" + subsystem_name = "arkcompiler" +} + +ohos_copy("ts2abc_deps_mac") { + sources = + [ "//third_party/typescript/build_package/ohos-typescript-4.2.3-r2.tgz" ] + + outputs = [ target_out_dir + "/$target_name/{{source_file_part}}" ] + module_source_dir = target_out_dir + "/$target_name" + module_install_name = "" + license_file = "//third_party/typescript/LICENSE" + part_name = "ets_frontend" + subsystem_name = "arkcompiler" +} + +ohos_copy("ts2abc_deps_mac_ets") { + sources = + [ "//third_party/typescript/build_package/ohos-typescript-4.2.3-r2.tgz" ] + + outputs = [ target_out_dir + "/$target_name/{{source_file_part}}" ] + module_source_dir = target_out_dir + "/$target_name" + module_install_name = "" + license_file = "//third_party/typescript/LICENSE" + part_name = "ets_frontend" + subsystem_name = "arkcompiler" +} + action("ts2abc_diagnostic_ts") { visibility = [ ":*" ] script = "scripts/gen_diagnostic.rb" -- Gitee