2020-01-16 13:17:59 -07:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
for patch in *.patch; do
|
|
|
|
patch -p1 < "$patch"
|
|
|
|
done
|
|
|
|
|
2020-01-17 02:09:42 -07:00
|
|
|
# Remove dbus dependency.
|
2020-01-16 15:23:38 -07:00
|
|
|
{
|
|
|
|
sed -i 's/dbus//g' \
|
|
|
|
src/buildtools/config/support.pri
|
2020-01-16 13:17:59 -07:00
|
|
|
|
2020-01-16 15:23:38 -07: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 13:17:59 -07:00
|
|
|
|
2020-01-17 02:09:42 -07:00
|
|
|
# Remove glibc header.
|
|
|
|
sed -i '/execinfo.h/d' \
|
|
|
|
src/3rdparty/chromium/base/debug/stack_trace_posix.cc
|
|
|
|
|
|
|
|
# Remove udev dependency.
|
|
|
|
sed -i '/use_udev/s/=.*/=false/' \
|
|
|
|
src/3rdparty/chromium/build/config/features.gni
|
|
|
|
|
2020-01-17 14:33:45 -07:00
|
|
|
# The build fails if qtwebengine is already installed.
|
|
|
|
find . -name '*.pr[fio]' | while read -r file; do
|
|
|
|
sed -i "s#INCLUDEPATH += #&\$\$QTWEBENGINE_ROOT/include #" "$file"
|
|
|
|
done
|
|
|
|
|
2020-01-17 09:25:32 -07:00
|
|
|
qmake QMAKE_CXXFLAGS=-DQT_NO_ACCESSIBILITY -- \
|
2020-01-16 13:17:59 -07:00
|
|
|
-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-17 14:33:45 -07:00
|
|
|
-feature-webengine-proprietary-codecs \
|
2020-01-16 15:23:38 -07:00
|
|
|
-no-feature-webengine-system-icu \
|
2020-01-16 13:17:59 -07:00
|
|
|
-no-feature-webengine-system-glib \
|
2020-01-17 14:33:45 -07:00
|
|
|
-no-feature-webengine-webrtc
|
2020-01-16 13:17:59 -07:00
|
|
|
|
2020-01-17 02:09:42 -07:00
|
|
|
make
|
2020-01-16 13:17:59 -07:00
|
|
|
make install INSTALL_ROOT="$1"
|