- build/gyp_chromium build/all.gyp --depth=. \
- -Dtarget_arch=arm \
- -Darm_float_abi=hard \
- -Darmv7=$USE_ARMV7 \
- -Darm_thumb=$USE_ARM_THUMB \
- -Darm_neon=$USE_ARM_NEON \
- -Dv8_target_arch=arm \
- -Dv8_use_arm_eabi_hardfloat=1 \
- -Dsysroot= \
- -Dclang=0 \
- -Dpython_ver="2.7" \
- -Dno_strict_aliasing=1 \
- -Dwerror= \
- -Dlinux_sandbox_path=/usr/lib/$name/chrome-sandbox \
- -Dlinux_strip_binary=1 \
- -Dlinux_use_gold_binary=0 \
- -Dlinux_use_gold_flags=0 \
- -Drelease_extra_cflags="$CFLAGS" \
- -Dproprietary_codecs=1 \
- -Dffmpeg_branding=Chrome \
- -Dlibspeechd_h_prefix=speech-dispatcher/ \
- -Duse_system_libjpeg=1 \
- -Duse_system_libxslt=1 \
- -Duse_system_libxml=1 \
- -Duse_system_bzip2=1 \
- -Duse_system_zlib=0 \
- -Duse_system_libpng=0 \
- -Duse_system_ffmpeg=0 \
- -Duse_system_yasm=1 \
- -Duse_system_libevent=1 \
- -Duse_system_sqlite=0 \
- -Duse_system_ssl=0 \
- -Dremove_webcore_debug_symbols=1 \
- -Duse_gconf=0 \
- -Duse_cups=0 \
- -Duse_gnome_keyring=0 \
- -Duse_kerberos=0 \
- -Duse_pulseaudio=0 \
- -Dlinux_link_gnome_keyring=0 \
- -Dlinux_link_libpci=1 \
- -Dlinux_link_libspeechd=1 \
- -Denable_webrtc=1 \
- -Ddisable_nacl=1 \
- -Dicu_use_data_file_flag=0
-
- ninja -C out/Release chrome chrome_sandbox
+ # we don't use git sources
+ patch -p1 -i $SRC/last-commit-position.patch
+
+ # Corrects error call to non-constexpr function
+ patch -p1 -i $SRC/chromium-64.0.3282.119-constexpr-1.patch
+
+ wget https://chromium.googlesource.com/chromium/src.git/+/$version?format=TEXT -O ../chromium-$version.txt
+ # https://crbug.com/710701
+ local _chrome_build_hash=$(base64 -d ../chromium-$version.txt |
+ grep -Po '^parent \K[0-9a-f]{40}$')
+ if [[ -z $_chrome_build_hash ]]; then
+ error "Unable to find Chrome build hash."
+ return 1
+ fi
+ echo "LASTCHANGE=$_chrome_build_hash-" >build/util/LASTCHANGE
+
+ # https://chromium-review.googlesource.com/c/chromium/src/+/712575
+ patch -p1 -i $SRC/chromium-exclude_unwind_tables.patch
+
+ # https://crbug.com/772655
+ patch -p1 -i $SRC/chromium-use-fromUTF8-for-UnicodeString-construction.patch
+
+ # https://crbug.com/789163
+ patch -p1 -i $SRC/chromium-omnibox-unescape-fragment.patch
+
+ # https://crbug.com/skia/6663#c10
+ patch -p4 -i $SRC/chromium-skia-harmony.patch
+
+ # Fixes from Gentoo
+ patch -p1 -i $SRC/chromium-memcpy-r0.patch
+ patch -p1 -i $SRC/chromium-clang-r2.patch
+ patch -p1 -i $SRC/chromium-cups-r0.patch