diff --git a/tur-chromium/chromium-stable/0002-compiler-use-android-target.patch b/tur-chromium/chromium-stable/0001-compiler-use-android-target.patch similarity index 100% rename from tur-chromium/chromium-stable/0002-compiler-use-android-target.patch rename to tur-chromium/chromium-stable/0001-compiler-use-android-target.patch diff --git a/tur-chromium/chromium-stable/0003-compiler-disable-warnings.patch b/tur-chromium/chromium-stable/0002-compiler-disable-warnings.patch similarity index 100% rename from tur-chromium/chromium-stable/0003-compiler-disable-warnings.patch rename to tur-chromium/chromium-stable/0002-compiler-disable-warnings.patch diff --git a/tur-chromium/chromium-stable/0007-script-add-ld-preload.patch b/tur-chromium/chromium-stable/0003-script-add-ld-preload.patch similarity index 100% rename from tur-chromium/chromium-stable/0007-script-add-ld-preload.patch rename to tur-chromium/chromium-stable/0003-script-add-ld-preload.patch diff --git a/tur-chromium/chromium-stable/1001-chromium-disable-sandbox.patch b/tur-chromium/chromium-stable/1001-chromium-disable-sandbox.patch index c93d447..c526b31 100644 --- a/tur-chromium/chromium-stable/1001-chromium-disable-sandbox.patch +++ b/tur-chromium/chromium-stable/1001-chromium-disable-sandbox.patch @@ -1,6 +1,6 @@ --- a/content/shell/app/shell_main_delegate.cc +++ b/content/shell/app/shell_main_delegate.cc -@@ -90,6 +90,10 @@ +@@ -92,6 +92,10 @@ #include "content/shell/app/ios/shell_application_ios.h" #endif @@ -10,11 +10,11 @@ + namespace { - #if !BUILDFLAG(IS_FUCHSIA) -@@ -210,6 +214,15 @@ - base::CPU cpu_info; - #endif + enum class LoggingDest { +@@ -256,6 +260,15 @@ + } + void ShellMainDelegate::PreSandboxStartup() { +// Disable sandbox on Termux. +#ifdef __TERMUX__ + if (!base::CommandLine::ForCurrentProcess()->HasSwitch( @@ -26,7 +26,7 @@ + // Disable platform crash handling and initialize the crash reporter, if // requested. - // TODO(crbug.com/1226159): Implement crash reporter integration for Fuchsia. + // TODO(crbug.com/40188745): Implement crash reporter integration for Fuchsia. --- a/chrome/browser/ui/startup/bad_flags_prompt.cc +++ b/chrome/browser/ui/startup/bad_flags_prompt.cc @@ -60,10 +60,12 @@ diff --git a/tur-chromium/chromium-stable/1021-chromium-partition-allocator-memfd.patch b/tur-chromium/chromium-stable/1021-chromium-partition-allocator-memfd.patch new file mode 100644 index 0000000..03afa6f --- /dev/null +++ b/tur-chromium/chromium-stable/1021-chromium-partition-allocator-memfd.patch @@ -0,0 +1,28 @@ +--- a/base/allocator/partition_allocator/src/partition_alloc/partition_address_space.cc ++++ b/base/allocator/partition_allocator/src/partition_alloc/partition_address_space.cc +@@ -36,6 +36,11 @@ + #include + #endif + ++#if defined(__ANDROID__) && __ANDROID_API__ < 30 ++#include ++#define memfd_create(name,flags) syscall(SYS_memfd_create,name,flags) ++#endif ++ + namespace partition_alloc::internal { + + #if PA_BUILDFLAG(HAS_64_BIT_POINTERS) +--- a/base/allocator/partition_allocator/src/partition_alloc/partition_root.cc ++++ b/base/allocator/partition_allocator/src/partition_alloc/partition_root.cc +@@ -51,6 +51,11 @@ + #endif // PA_CONFIG(ENABLE_SHADOW_METADATA) + #endif // PA_BUILDFLAG(IS_LINUX) || PA_BUILDFLAG(IS_CHROMEOS) + ++#if defined(__ANDROID__) && __ANDROID_API__ < 30 ++#include ++#define memfd_create(name,flags) syscall(SYS_memfd_create,name,flags) ++#endif ++ + namespace partition_alloc::internal { + + #if PA_BUILDFLAG(RECORD_ALLOC_INFO) diff --git a/tur-chromium/chromium-stable/1022-chromium-disable-google-api-warnings.patch b/tur-chromium/chromium-stable/1022-chromium-disable-google-api-warnings.patch new file mode 100644 index 0000000..c5f33c8 --- /dev/null +++ b/tur-chromium/chromium-stable/1022-chromium-disable-google-api-warnings.patch @@ -0,0 +1,14 @@ +--- a/chrome/browser/ui/startup/infobar_utils.cc ++++ b/chrome/browser/ui/startup/infobar_utils.cc +@@ -154,7 +154,11 @@ + infobars::ContentInfoBarManager* infobar_manager = + infobars::ContentInfoBarManager::FromWebContents(web_contents); + ++#ifdef __TERMUX__ ++ if (0) { ++#else + if (!google_apis::HasAPIKeyConfigured()) { ++#endif + GoogleApiKeysInfoBarDelegate::Create(infobar_manager); + } + diff --git a/tur-chromium/chromium-stable/2010-dav1d-no-get-affinity.patch b/tur-chromium/chromium-stable/2010-dav1d-no-get-affinity.patch index b1eb0ae..fa87360 100644 --- a/tur-chromium/chromium-stable/2010-dav1d-no-get-affinity.patch +++ b/tur-chromium/chromium-stable/2010-dav1d-no-get-affinity.patch @@ -1,11 +1,11 @@ --- a/third_party/dav1d/libdav1d/src/cpu.c +++ b/third_party/dav1d/libdav1d/src/cpu.c -@@ -87,7 +87,7 @@ +@@ -91,7 +91,7 @@ GetNativeSystemInfo(&system_info); return system_info.dwNumberOfProcessors; #endif --#elif defined(HAVE_PTHREAD_GETAFFINITY_NP) && defined(CPU_COUNT) -+#elif defined(HAVE_PTHREAD_GETAFFINITY_NP) && defined(CPU_COUNT) && !defined(__ANDROID__) +-#elif HAVE_PTHREAD_GETAFFINITY_NP && defined(CPU_COUNT) ++#elif HAVE_PTHREAD_GETAFFINITY_NP && defined(CPU_COUNT) && !defined(__ANDROID__) cpu_set_t affinity; if (!pthread_getaffinity_np(pthread_self(), sizeof(affinity), &affinity)) return CPU_COUNT(&affinity); diff --git a/tur-chromium/chromium-stable/2017-vk-layers-no-android-log.patch b/tur-chromium/chromium-stable/2017-vk-layers-no-android-log.patch index a6c1497..4c98c2c 100644 --- a/tur-chromium/chromium-stable/2017-vk-layers-no-android-log.patch +++ b/tur-chromium/chromium-stable/2017-vk-layers-no-android-log.patch @@ -41,10 +41,10 @@ -#if defined(__ANDROID__) +#if defined(__ANDROID__) && !defined(__TERMUX__) - static std::string GetAndroidProperty(const char *name) { - std::string output; - const prop_info *pi = __system_property_find(name); -@@ -51,7 +51,7 @@ + /* + * Use the __system_property_read_callback API that appeared in + * Android API level 26. If not avaible use the old __system_property_get function. +@@ -68,7 +68,7 @@ #endif static std::string GetEnvironment(const char *variable) { @@ -53,7 +53,7 @@ std::string result = GetAndroidProperty(variable); // Workaround for screenshot layer backward compatibility if (result.empty() && std::string(variable) == "debug.vulkan.screenshot.frames") { -@@ -199,7 +199,7 @@ +@@ -214,7 +214,7 @@ } #endif diff --git a/tur-chromium/chromium-stable/2020-dav1d-config.patch b/tur-chromium/chromium-stable/2020-dav1d-config.patch index a889b28..bb4eb41 100644 --- a/tur-chromium/chromium-stable/2020-dav1d-config.patch +++ b/tur-chromium/chromium-stable/2020-dav1d-config.patch @@ -11,7 +11,7 @@ Aarch64 Android compiles as `armv8-a` and don't have so much extensions. #define CONFIG_16BPC 1 -@@ -41,15 +41,15 @@ +@@ -45,15 +45,15 @@ #define HAVE_ASM 1 @@ -32,23 +32,25 @@ Aarch64 Android compiles as `armv8-a` and don't have so much extensions. #define HAVE_AS_FUNC 0 -@@ -59,11 +59,11 @@ +@@ -63,13 +63,13 @@ #define HAVE_DLSYM 1 -#define HAVE_DOTPROD 1 +// #define HAVE_DOTPROD 1 + #define HAVE_ELF_AUX_INFO 0 + #define HAVE_GETAUXVAL 1 -#define HAVE_I8MM 1 +// #define HAVE_I8MM 1 - #define HAVE_POSIX_MEMALIGN 1 + #define HAVE_IO_H 0 -@@ -71,9 +71,9 @@ +@@ -87,9 +87,9 @@ - // #define HAVE_PTHREAD_SETAFFINITY_NP 1 -- Controlled by Chomium + #define HAVE_PTHREAD_SET_NAME_NP 0 -#define HAVE_SVE 1 +// #define HAVE_SVE 1 @@ -56,5 +58,5 @@ Aarch64 Android compiles as `armv8-a` and don't have so much extensions. -#define HAVE_SVE2 1 +// #define HAVE_SVE2 1 - #define HAVE_UNISTD_H 1 + #define HAVE_SYS_TYPES_H 1 diff --git a/tur-chromium/chromium-stable/8001-blink-include-bitset-2.patch b/tur-chromium/chromium-stable/8001-blink-include-bitset-2.patch deleted file mode 100644 index eed31bf..0000000 --- a/tur-chromium/chromium-stable/8001-blink-include-bitset-2.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/third_party/blink/renderer/platform/peerconnection/resolution_monitor.cc -+++ b/third_party/blink/renderer/platform/peerconnection/resolution_monitor.cc -@@ -2,6 +2,8 @@ - // Use of this source code is governed by a BSD-style license that can be - // found in the LICENSE file. - -+#include -+ - #include "third_party/blink/renderer/platform/peerconnection/resolution_monitor.h" - - #include "base/containers/span.h" diff --git a/tur-chromium/chromium-stable/8002-material_color_utilities-include-cmath.patch b/tur-chromium/chromium-stable/8001-material_color_utilities-include-cmath.patch similarity index 100% rename from tur-chromium/chromium-stable/8002-material_color_utilities-include-cmath.patch rename to tur-chromium/chromium-stable/8001-material_color_utilities-include-cmath.patch diff --git a/tur-chromium/chromium-stable/8003-gfx-include-bitset.patch b/tur-chromium/chromium-stable/8003-gfx-include-bitset.patch deleted file mode 100644 index e5f8082..0000000 --- a/tur-chromium/chromium-stable/8003-gfx-include-bitset.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/ui/gfx/x/visual_manager.cc -+++ b/ui/gfx/x/visual_manager.cc -@@ -2,6 +2,8 @@ - // Use of this source code is governed by a BSD-style license that can be - // found in the LICENSE file. - -+#include -+ - #include "ui/gfx/x/visual_manager.h" - - #include "base/strings/string_number_conversions.h" diff --git a/tur-chromium/chromium-stable/8004-blink-include-stack.patch b/tur-chromium/chromium-stable/8004-blink-include-stack.patch deleted file mode 100644 index 795ee41..0000000 --- a/tur-chromium/chromium-stable/8004-blink-include-stack.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/third_party/blink/renderer/platform/image-decoders/skia/skia_image_decoder_base.cc -+++ b/third_party/blink/renderer/platform/image-decoders/skia/skia_image_decoder_base.cc -@@ -5,6 +5,7 @@ - #include "third_party/blink/renderer/platform/image-decoders/skia/skia_image_decoder_base.h" - - #include -+#include - - #include "third_party/blink/renderer/platform/image-decoders/segment_stream.h" - #include "third_party/skia/include/codec/SkCodec.h" diff --git a/tur-chromium/chromium-stable/build.sh b/tur-chromium/chromium-stable/build.sh index fbe756d..4162bb6 100644 --- a/tur-chromium/chromium-stable/build.sh +++ b/tur-chromium/chromium-stable/build.sh @@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://www.chromium.org/Home TERMUX_PKG_DESCRIPTION="Chromium web browser" TERMUX_PKG_LICENSE="BSD 3-Clause" TERMUX_PKG_MAINTAINER="Chongyun Lee " -TERMUX_PKG_VERSION=130.0.6723.116 +TERMUX_PKG_VERSION=131.0.6778.264 TERMUX_PKG_SRCURL=https://commondatastorage.googleapis.com/chromium-browser-official/chromium-$TERMUX_PKG_VERSION.tar.xz -TERMUX_PKG_SHA256=968799e41158fdcc85af6f5547d3dd4730d6e51219e43aa2f1ab6ab5e00582ba +TERMUX_PKG_SHA256=7e02c65865a3095180d60838d2d7a912873d8d4f582c27c2afb9ef876152f2a5 TERMUX_PKG_DEPENDS="atk, cups, dbus, fontconfig, gtk3, krb5, libc++, libdrm, libevdev, libxkbcommon, libminizip, libnss, libwayland, libx11, mesa, openssl, pango, pulseaudio, zlib" # Chromium doesn't support i686 on Linux. TERMUX_PKG_BLACKLISTED_ARCHES="i686" @@ -33,14 +33,6 @@ termux_step_configure() { fi export PATH="$TERMUX_PKG_CACHEDIR/depot_tools:$PATH" - ################################################################ - # Please dont use these keys outside of Termux User Repository # - # You can create your own at: # - # http://www.chromium.org/developers/how-tos/api-keys # - ################################################################ - local _google_api_key _google_default_client_id _google_default_client_secret - eval "$(base64 -d < $TERMUX_PKG_BUILDER_DIR/google-api-keys.base64enc)" - # Remove termux's dummy pkg-config local _target_pkg_config=$(command -v pkg-config) local _host_pkg_config="$(cat $_target_pkg_config | grep exec | awk '{print $2}')" @@ -113,13 +105,16 @@ termux_step_configure() { local _host_cc="$_clang_base_path/bin/clang" local _host_cxx="$_clang_base_path/bin/clang++" local _host_clang_version=$($_host_cc --version | grep -m1 version | sed -E 's|.*\bclang version ([0-9]+).*|\1|') + local _target_clang_base_path="$TERMUX_STANDALONE_TOOLCHAIN" + local _target_cc="$_target_clang_base_path/bin/clang" + local _target_clang_version=$($_target_cc --version | grep -m1 version | sed -E 's|.*\bclang version ([0-9]+).*|\1|') local _target_cpu _target_sysroot="$TERMUX_PKG_CACHEDIR/sysroot-$TERMUX_ARCH" local _v8_toolchain_name _v8_current_cpu _v8_sysroot_path if [ "$TERMUX_ARCH" = "aarch64" ]; then _target_cpu="arm64" - _v8_current_cpu="x64" + _v8_current_cpu="arm64" _v8_sysroot_path="$_amd64_sysroot_path" - _v8_toolchain_name="clang_x64_v8_arm64" + _v8_toolchain_name="host" elif [ "$TERMUX_ARCH" = "arm" ]; then # Install i386 rootfs and deps env -i PATH="$PATH" sudo apt install libfontconfig1:i386 libffi8:i386 -yq @@ -134,7 +129,7 @@ termux_step_configure() { _target_cpu="x64" _v8_current_cpu="x64" _v8_sysroot_path="$_amd64_sysroot_path" - _v8_toolchain_name="clang_x64" + _v8_toolchain_name="host" fi local _common_args_file=$TERMUX_PKG_TMPDIR/common-args-file @@ -142,11 +137,6 @@ termux_step_configure() { touch $_common_args_file echo " -# Set google key to disable the warning slogan -# Please DO NOT USE THIS KEY OUTSIDE OF TUR! -google_api_key = \"$_google_api_key\" -google_default_client_id = \"$_google_default_client_id\" -google_default_client_secret = \"$_google_default_client_secret\" # Do official build to decrease file size is_official_build = true is_debug = false @@ -158,8 +148,8 @@ target_cpu = \"$_target_cpu\" target_rpath = \"$TERMUX_PREFIX/lib\" target_sysroot = \"$_target_sysroot\" custom_toolchain = \"//build/toolchain/linux/unbundle:default\" -custom_toolchain_clang_base_path = \"$TERMUX_STANDALONE_TOOLCHAIN\" -custom_toolchain_clang_version = "18" +custom_toolchain_clang_base_path = \"$_target_clang_base_path\" +custom_toolchain_clang_version = \"$_target_clang_version\" host_toolchain = \"$TERMUX_PKG_CACHEDIR/custom-toolchain:host\" v8_snapshot_toolchain = \"$TERMUX_PKG_CACHEDIR/custom-toolchain:$_v8_toolchain_name\" clang_use_chrome_plugins = false @@ -219,8 +209,9 @@ exclude_unwind_tables = false fi # Use custom toolchain + rm -rf $TERMUX_PKG_CACHEDIR/custom-toolchain mkdir -p $TERMUX_PKG_CACHEDIR/custom-toolchain - cp -f $TERMUX_PKG_BUILDER_DIR/toolchain.gn.in $TERMUX_PKG_CACHEDIR/custom-toolchain/BUILD.gn + cp -f $TERMUX_PKG_BUILDER_DIR/toolchain-template/host-toolchain.gn.in $TERMUX_PKG_CACHEDIR/custom-toolchain/BUILD.gn sed -i "s|@HOST_CC@|$_host_cc|g s|@HOST_CXX@|$_host_cxx|g s|@HOST_LD@|$_host_cxx|g @@ -228,18 +219,22 @@ exclude_unwind_tables = false s|@HOST_NM@|$(command -v llvm-nm)|g s|@HOST_IS_CLANG@|true|g s|@HOST_SYSROOT@|$_amd64_sysroot_path|g + s|@V8_CURRENT_CPU@|$_target_cpu|g " $TERMUX_PKG_CACHEDIR/custom-toolchain/BUILD.gn - sed -i "s|@V8_CC@|$_host_cc|g - s|@V8_CXX@|$_host_cxx|g - s|@V8_LD@|$_host_cxx|g - s|@V8_AR@|$(command -v llvm-ar)|g - s|@V8_NM@|$(command -v llvm-nm)|g - s|@V8_TOOLCHAIN_NAME@|$_v8_toolchain_name|g - s|@V8_CURRENT_CPU@|$_v8_current_cpu|g - s|@V8_V8_CURRENT_CPU@|$_target_cpu|g - s|@V8_IS_CLANG@|true|g - s|@V8_SYSROOT@|$_v8_sysroot_path|g - " $TERMUX_PKG_CACHEDIR/custom-toolchain/BUILD.gn + if [ "$_v8_toolchain_name" != "host" ]; then + cat $TERMUX_PKG_BUILDER_DIR/toolchain-template/v8-toolchain.gn.in >> $TERMUX_PKG_CACHEDIR/custom-toolchain/BUILD.gn + sed -i "s|@V8_CC@|$_host_cc|g + s|@V8_CXX@|$_host_cxx|g + s|@V8_LD@|$_host_cxx|g + s|@V8_AR@|$(command -v llvm-ar)|g + s|@V8_NM@|$(command -v llvm-nm)|g + s|@V8_TOOLCHAIN_NAME@|$_v8_toolchain_name|g + s|@V8_CURRENT_CPU@|$_v8_current_cpu|g + s|@V8_V8_CURRENT_CPU@|$_target_cpu|g + s|@V8_IS_CLANG@|true|g + s|@V8_SYSROOT@|$_v8_sysroot_path|g + " $TERMUX_PKG_CACHEDIR/custom-toolchain/BUILD.gn + fi # Generate ninja files mkdir -p $TERMUX_PKG_BUILDDIR/out/Release @@ -249,8 +244,31 @@ exclude_unwind_tables = false termux_step_make() { cd $TERMUX_PKG_BUILDDIR - ninja -C out/Release chromedriver chrome chrome_crashpad_handler headless_shell -k 0 - rm -rf "$TERMUX_PKG_CACHEDIR/sysroot-$TERMUX_ARCH" + + # Build v8 snapshot and tools + time ninja -C out/Release \ + v8_context_snapshot \ + run_mksnapshot_default \ + run_torque \ + generate_bytecode_builtins_list \ + v8:run_gen-regexp-special-case + + # Build host tools + time ninja -C out/Release \ + generate_top_domain_list_variables_file \ + generate_chrome_colors_info \ + character_data \ + gen_root_store_inc \ + generate_transport_security_state \ + generate_top_domains_trie + + # Build swiftshader + time ninja -C out/Release \ + third_party/swiftshader/src/Vulkan:icd_file \ + third_party/swiftshader/src/Vulkan:swiftshader_libvulkan + + # Build other components + ninja -C out/Release chromedriver chrome chrome_crashpad_handler headless_shell } termux_step_make_install() { diff --git a/tur-chromium/chromium-stable/google-api-keys.base64enc b/tur-chromium/chromium-stable/google-api-keys.base64enc deleted file mode 100644 index e243ce1..0000000 --- a/tur-chromium/chromium-stable/google-api-keys.base64enc +++ /dev/null @@ -1,10 +0,0 @@ -IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj -IyMjIyMjIwojIFBsZWFzZSBkb250IHVzZSB0aGVzZSBrZXlzIG91dHNpZGUgb2YgVGVybXV4IFVz -ZXIgUmVwb3NpdG9yeSAjCiMgWW91IGNhbiBjcmVhdGUgeW91ciBvd24gYXQ6ICAgICAgICAgICAg -ICAgICAgICAgICAgICAgICAgICAgICMKIyBodHRwOi8vd3d3LmNocm9taXVtLm9yZy9kZXZlbG9w -ZXJzL2hvdy10b3MvYXBpLWtleXMgICAgICAgICAgIwojIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj -IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjCl9nb29nbGVfYXBpX2tleT0i -QUl6YVN5QWtJczBva0xGdnhLUm1SUGpnVnQ2ZHNqdjNpRHRFLUpVIgpfZ29vZ2xlX2RlZmF1bHRf -Y2xpZW50X2lkPSI2MzIyMzUyMzkwMTcta25vOWF1Z3Y2MWtmaW45Z2pqdnFpcmM2MnQ5YWlsaDMu -YXBwcy5nb29nbGV1c2VyY29udGVudC5jb20iCl9nb29nbGVfZGVmYXVsdF9jbGllbnRfc2VjcmV0 -PSJHT0NTUFgtUEFva1JYSVBpdXkxZjZUQTZma1d2RFhwM0tBMiIK diff --git a/tur-chromium/chromium-stable/toolchain.gn.in b/tur-chromium/chromium-stable/toolchain-template/host-toolchain.gn.in similarity index 52% rename from tur-chromium/chromium-stable/toolchain.gn.in rename to tur-chromium/chromium-stable/toolchain-template/host-toolchain.gn.in index 2435138..eb350fd 100644 --- a/tur-chromium/chromium-stable/toolchain.gn.in +++ b/tur-chromium/chromium-stable/toolchain-template/host-toolchain.gn.in @@ -10,21 +10,8 @@ gcc_toolchain("host") { toolchain_args = { current_os = "linux" current_cpu = "x64" + v8_current_cpu = "@V8_CURRENT_CPU@" is_clang = @HOST_IS_CLANG@ sysroot = "@HOST_SYSROOT@" } } -gcc_toolchain("@V8_TOOLCHAIN_NAME@") { - cc = "@V8_CC@" - cxx = "@V8_CXX@" - ld = "@V8_LD@" - ar = "@V8_AR@" - nm = "@V8_NM@" - toolchain_args = { - current_os = "linux" - current_cpu = "@V8_CURRENT_CPU@" - v8_current_cpu = "@V8_V8_CURRENT_CPU@" - is_clang = @V8_IS_CLANG@ - sysroot = "@V8_SYSROOT@" - } -} diff --git a/tur-chromium/chromium-stable/toolchain-template/v8-toolchain.gn.in b/tur-chromium/chromium-stable/toolchain-template/v8-toolchain.gn.in new file mode 100644 index 0000000..14aaf82 --- /dev/null +++ b/tur-chromium/chromium-stable/toolchain-template/v8-toolchain.gn.in @@ -0,0 +1,14 @@ +gcc_toolchain("@V8_TOOLCHAIN_NAME@") { + cc = "@V8_CC@" + cxx = "@V8_CXX@" + ld = "@V8_LD@" + ar = "@V8_AR@" + nm = "@V8_NM@" + toolchain_args = { + current_os = "linux" + current_cpu = "@V8_CURRENT_CPU@" + v8_current_cpu = "@V8_V8_CURRENT_CPU@" + is_clang = @V8_IS_CLANG@ + sysroot = "@V8_SYSROOT@" + } +}