From 4499c70df80d4759411dba260dfe6d0a661775a2 Mon Sep 17 00:00:00 2001 From: zhouzebin Date: Sun, 29 Jan 2023 21:38:30 +0800 Subject: [PATCH] addBuiltinsForMac Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6BKDG Signed-off-by: zhouzebin Change-Id: I77a2ad14fd9d06cd17bb64a2e8df62454a24505c --- ecmascript/sdk/BUILD.gn | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ecmascript/sdk/BUILD.gn b/ecmascript/sdk/BUILD.gn index f69f54cd90..8f6755fc9e 100644 --- a/ecmascript/sdk/BUILD.gn +++ b/ecmascript/sdk/BUILD.gn @@ -17,6 +17,7 @@ import("//build/ohos.gni") # Triggered only when the SDK is compiled if (is_standard_system) { # Avoid conditional judgment branches caused by dynamic library suffixes. + dylib_suffix = "" if (is_mac) { dylib_suffix = ".dylib" } else if (is_mingw) { @@ -180,5 +181,22 @@ if (is_standard_system) { target_out_dir + "/ets/build-tools/ets-loader/bin/ark/build/aot/src/" module_install_name = "" } + } else if (is_mac) { + ohos_copy("copy_ark_aot_builtins_mac") { + deps = [] + sources = [] + + # Add lib_ark_builtins + sources += [ "../ts_types/lib_ark_builtins.d.ts" ] + + # Set the output directory + outputs = [ target_out_dir + "/ets/build-tools/ets-loader/bin/ark/build-mac/aot/src/{{source_file_part}}" ] + module_source_dir = + target_out_dir + + "/ets/build-tools/ets-loader/bin/ark/build-mac/aot/src/" + module_install_name = "" + subsystem_name = "developtools" + part_name = "ets_runtime" + } } }