2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-24 08:20:05 -07:00
repo/testing/chromium/build
2019-07-28 19:05:41 +03:00

32 lines
1.1 KiB
Bash
Executable File

#!/bin/sh -e
for patch in *.patch; do
patch -p1 < "$patch"
done
# Fix 'python2' shebangs.
find . -type f -name \*.py -exec sed -i '1s|python$|&2|' {} \;
# Use 'gcc' instead of 'clang'.
export CC=gcc CXX=g++ LD=g++
export PATH=$PWD/fix-python-bin:$PATH
# Make a temporary script to cause 'python' to resolve to python 2 and not 3.
mkdir -p fix-python-bin
cat << EOF > ./fix-python-bin/python
#!/bin/sh
exec python2 "\$@"
EOF
chmod +x ./fix-python-bin/python
python2 tools/gn/bootstrap/bootstrap.py -s -v \
--gn-gen-args 'is_debug=false use_jumbo_build=true enable_nacl=false symbol_level=0 blink_symbol_level=0 enable_nacl_nonsfi=false use_gtk2=false use_gold=false treat_warnings_as_errors=false fatal_linker_warnings=false use_sysroot=false use_cups=false rtc_use_x11=true is_clang=false use_atk=false use_dbus=false safe_browsing_mode=0 use_pulseaudio=false use_use_gconf=false use_gio=false use_gnome_keyring=false use_kerberos=false'
out/Release/gn gen out/Release \
--script-executable=/usr/bin/python2
ninja -C out/Release chrome chromedriver
# Temporary.
sh