2020-01-16 20:17:59 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
for patch in *.patch; do
|
|
|
|
patch -p1 < "$patch"
|
|
|
|
done
|
|
|
|
|
2020-01-16 22:23:38 +00:00
|
|
|
# Disable dbus.
|
|
|
|
{
|
|
|
|
sed -i 's/dbus//g' \
|
|
|
|
src/buildtools/config/support.pri
|
2020-01-16 20:17:59 +00:00
|
|
|
|
2020-01-16 22:23:38 +00:00
|
|
|
sed -i 's/use_dbus.*/use_dbus=false/' \
|
|
|
|
src/3rdparty/chromium/build/config/features.gni
|
|
|
|
}
|
|
|
|
|
|
|
|
# Fix nasm hardcoded glibcism
|
|
|
|
sed -i '/CANONICALIZE_FILE_NAME/d' \
|
|
|
|
src/3rdparty/chromium/third_party/nasm/config/config-linux.h
|
2020-01-16 20:17:59 +00:00
|
|
|
|
|
|
|
qmake -- \
|
|
|
|
-feature-webengine-system-ninja \
|
|
|
|
-feature-webengine-system-zlib \
|
|
|
|
-feature-webengine-system-harfbuzz \
|
|
|
|
-feature-webengine-system-png \
|
|
|
|
-feature-webengine-system-libevent \
|
|
|
|
-feature-webengine-system-libvpx \
|
|
|
|
-feature-webengine-system-opus \
|
|
|
|
-feature-webengine-system-libwebp \
|
|
|
|
-feature-webengine-system-ffmpeg \
|
2020-01-16 22:23:38 +00:00
|
|
|
-no-feature-webengine-system-icu \
|
2020-01-16 20:17:59 +00:00
|
|
|
-no-feature-webengine-system-glib \
|
|
|
|
-no-feature-webengine-webrtc \
|
|
|
|
-no-feature-webengine-proprietary-codecs \
|
|
|
|
|
2020-01-16 22:23:38 +00:00
|
|
|
make -j1
|
2020-01-16 20:17:59 +00:00
|
|
|
make install INSTALL_ROOT="$1"
|