2019-07-21 03:11:03 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2019-07-28 00:36:10 -06:00
|
|
|
# Fix 'python2' shebangs.
|
2019-07-28 00:59:42 -06:00
|
|
|
find . -type f -name \*.py -exec sed -i '1s|python$|&2|' {} \;
|
2019-07-27 23:59:06 -06:00
|
|
|
|
2019-07-28 00:36:10 -06:00
|
|
|
# Use 'gcc' instead of 'clang'.
|
2019-07-28 00:36:23 -06:00
|
|
|
export CC=gcc CXX=g++
|
2019-07-28 01:34:14 -06:00
|
|
|
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
|
2019-07-28 00:36:10 -06:00
|
|
|
|
2019-07-28 00:32:06 -06:00
|
|
|
python2 tools/gn/bootstrap/bootstrap.py -s -v \
|
2019-07-28 01:18:56 -06:00
|
|
|
--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_gtk3=true use_gold=false treat_warnings_as_errors=false fatal_linker_warnings=false use_sysroot=false use_cups=false rtc_use_x11=true use_dbus=false safe_browsing_mode=0 use_pulseaudio=false use_use_gconf=false use_gio=false use_gnome_keyring=false use_kerberos=false'
|
2019-07-28 01:07:52 -06:00
|
|
|
|
2019-07-28 00:32:06 -06:00
|
|
|
out/Release/gn gen out/Release \
|
2019-07-28 01:18:56 -06:00
|
|
|
--args='is_debug=false use_jumbo_build=true enable_nacl=false symbol_level=0 blink_symbol_level=0 enable_nacl_nonsfi=false use_gtk3=true use_gold=false treat_warnings_as_errors=false fatal_linker_warnings=false use_sysroot=false use_cups=false rtc_use_x11=true use_dbus=false safe_browsing_mode=0 use_pulseaudio=false use_use_gconf=false use_gio=false use_gnome_keyring=false use_kerberos=false' \
|
2019-07-28 00:48:09 -06:00
|
|
|
--script-executable=/usr/bin/python2
|
2019-07-27 23:49:13 -06:00
|
|
|
|
2019-07-28 00:32:06 -06:00
|
|
|
ninja -C out/Release chrome chromedriver
|
|
|
|
sh
|