From 7933b59411cc89a9312f6322e00fee88adecae1c Mon Sep 17 00:00:00 2001 From: frank_bing Date: Fri, 10 Sep 2021 02:12:24 +0000 Subject: [PATCH] =?UTF-8?q?build.gn=E6=B7=BB=E5=8A=A0copy=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E5=99=A8=E5=BC=95=E6=93=8E=E4=BA=8C=E8=BF=9B=E5=88=B6?= =?UTF-8?q?=20Signed-off-by:=20libing=5Ffrank=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BUILD.gn | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/BUILD.gn b/BUILD.gn index 0c82c7b..55d4244 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -86,3 +86,83 @@ ohos_copy("ace_loader_library") { module_install_name = "" license_file = "//third_party/weex-loader/NOTICE" } + +# copy common_bin +ohos_copy("common_bin") { + if (host_os == "mac") { + sources = + [ "//prebuilts/previewer/2.2.0.3/darwin/previewer/common/bin/bin" ] + } else { + sources = + [ "//prebuilts/previewer/2.2.0.3/windows/previewer/common/bin/bin" ] + } + outputs = [ target_out_dir + "/common/bin/{{source_file_part}}" ] + module_source_dir = target_out_dir + "/common/bin" + module_install_name = "" +} + +# copy liteWearable_bin +ohos_copy("liteWearable_bin") { + if (host_os == "mac") { + sources = [ + "//prebuilts/previewer/2.2.0.3/darwin/previewer/liteWearable/bin/bin", + ] + } else { + sources = [ + "//prebuilts/previewer/2.2.0.3/windows/previewer/liteWearable/bin/bin", + ] + } + outputs = [ target_out_dir + "/liteWearable/bin/{{source_file_part}}" ] + module_source_dir = target_out_dir + "/liteWearable/bin" + module_install_name = "" +} + +# copy liteWearable_default +ohos_copy("liteWearable_default") { + if (host_os == "mac") { + sources = [ "//prebuilts/previewer/2.2.0.3/darwin/previewer/liteWearable/config/default/default" ] + } else { + sources = [ "//prebuilts/previewer/2.2.0.3/windows/previewer/liteWearable/config/default/default" ] + } + outputs = + [ target_out_dir + "/liteWearable/config/default/{{source_file_part}}" ] + module_source_dir = target_out_dir + "/liteWearable/config/default" + module_install_name = "" +} + +# copy liteWearable_images +ohos_copy("liteWearable_images") { + if (host_os == "mac") { + sources = [ "//prebuilts/previewer/2.2.0.3/darwin/previewer/liteWearable/config/images/images" ] + } else { + sources = [ "//prebuilts/previewer/2.2.0.3/windows/previewer/liteWearable/config/images/images" ] + } + outputs = + [ target_out_dir + "/liteWearable/config/images/{{source_file_part}}" ] + module_source_dir = target_out_dir + "/liteWearable/config/images" + module_install_name = "" +} + +# copy liteWearable_font +ohos_copy("liteWearable_font") { + if (host_os == "mac") { + sources = [ + "//prebuilts/previewer/2.2.0.3/darwin/previewer/liteWearable/config/RobotoCondensed-Regular.ttf", + "//prebuilts/previewer/2.2.0.3/darwin/previewer/liteWearable/config/SourceHanSansSC-Regular.otf", + "//prebuilts/previewer/2.2.0.3/darwin/previewer/liteWearable/config/font.bin", + "//prebuilts/previewer/2.2.0.3/darwin/previewer/liteWearable/config/glyphs.bin", + "//prebuilts/previewer/2.2.0.3/darwin/previewer/liteWearable/config/line_cj.brk", + ] + } else { + sources = [ + "//prebuilts/previewer/2.2.0.3/windows/previewer/liteWearable/config/RobotoCondensed-Regular.ttf", + "//prebuilts/previewer/2.2.0.3/windows/previewer/liteWearable/config/SourceHanSansSC-Regular.otf", + "//prebuilts/previewer/2.2.0.3/windows/previewer/liteWearable/config/font.bin", + "//prebuilts/previewer/2.2.0.3/windows/previewer/liteWearable/config/glyphs.bin", + "//prebuilts/previewer/2.2.0.3/windows/previewer/liteWearable/config/line_cj.brk", + ] + } + outputs = [ target_out_dir + "/liteWearable/config/{{source_file_part}}" ] + module_source_dir = target_out_dir + "/liteWearable/config" + module_install_name = "" +} \ No newline at end of file -- Gitee