2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-08-22 22:16:19 +00:00
repo/testing/chromium/build

35 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-07-21 09:11:03 +00:00
#!/bin/sh -e
2019-07-28 15:49:11 +00:00
for patch in *.patch; do
patch -p1 < "$patch"
done
2019-07-28 15:07:09 +00:00
2019-07-28 06:36:10 +00:00
# Fix 'python2' shebangs.
2019-07-28 06:59:42 +00:00
find . -type f -name \*.py -exec sed -i '1s|python$|&2|' {} \;
2019-07-28 05:59:06 +00:00
2019-07-28 06:36:10 +00:00
# Use 'gcc' instead of 'clang'.
2019-07-28 15:55:44 +00:00
export CC=gcc CXX=g++ LD=g++
2019-07-28 07:34:14 +00: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
2019-07-28 07:44:02 +00:00
exec python2 "\$@"
2019-07-28 07:34:14 +00:00
EOF
chmod +x ./fix-python-bin/python
2019-07-28 06:36:10 +00:00
2019-07-28 06:32:06 +00:00
python2 tools/gn/bootstrap/bootstrap.py -s -v \
2019-07-28 16:39:06 +00: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_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_gconf=false use_gio=false use_gnome_keyring=false use_kerberos=false'
2019-07-28 07:07:52 +00:00
2019-07-28 06:32:06 +00:00
out/Release/gn gen out/Release \
2019-07-28 06:48:09 +00:00
--script-executable=/usr/bin/python2
2019-07-28 05:49:13 +00:00
2019-07-28 06:32:06 +00:00
ninja -C out/Release chrome chromedriver
2019-07-28 15:49:11 +00:00
2019-07-28 16:08:35 +00:00
cd out/Release
for bin in chrome chromedriver *.bin; do
install -Dm755 "$bin" "$1/usr/lib/chromium/$bin"
done