qt5: fix mips* build
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
8d53363197
commit
e1f937fb35
1 changed files with 67 additions and 58 deletions
|
@ -76,6 +76,50 @@ if [ "$CROSS_BUILD" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
_bootstrap_gn() {
|
||||||
|
# Bootstrap gn (generate ninja)
|
||||||
|
_msg_cross "Bootstrapping 'gn'"
|
||||||
|
cd ${wrksrc}/qtwebengine/src/3rdparty/chromium/tools/gn
|
||||||
|
conf='is_clang=false'
|
||||||
|
conf+=' treat_warnings_as_errors=false'
|
||||||
|
conf+=' enable_remoting=false'
|
||||||
|
conf+=' enable_nacl=false'
|
||||||
|
conf+=' use_cups=false'
|
||||||
|
conf+=' use_gconf=false'
|
||||||
|
conf+=' use_gio=false'
|
||||||
|
conf+=' use_gnome_keyring=false'
|
||||||
|
conf+=' use_gtk=false'
|
||||||
|
conf+=' use_kerberos=false'
|
||||||
|
conf+=' linux_use_bundled_binutils=false'
|
||||||
|
conf+=' binutils_path="/usr/bin"'
|
||||||
|
conf+=' use_gold=false'
|
||||||
|
conf+=' use_sysroot=false'
|
||||||
|
conf+=' use_allocator="none"'
|
||||||
|
conf+=' is_android=false'
|
||||||
|
|
||||||
|
sed -i ${wrksrc}/qtwebengine/src/core/config/linux.pri \
|
||||||
|
-e "/equals(MARMV/s;true;false;"
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
armv[56]*) conf+=' arm_use_neon=false arm_optionally_use_neon=false';;
|
||||||
|
armv7*) conf+=' arm_use_neon=true arm_optionally_use_neon=false';;
|
||||||
|
aarch64*) conf+=' arm_use_neon=true arm_optionally_use_neon=false';;
|
||||||
|
esac
|
||||||
|
|
||||||
|
AR="$AR_host" CC="$CC_host" CXX="$CXX_host" LD="$CXX_host" \
|
||||||
|
CFLAGS="$CFLAGS_host" CXXFLAGS="$CXXFLAGS_host" LDFLAGS="$LDFLAGS_host" \
|
||||||
|
PKGCONFIG=/usr/bin/pkgconfig PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/share/pkgconfig" \
|
||||||
|
python2 bootstrap/bootstrap.py -n --gn-gen-args "${conf}"
|
||||||
|
cd ${wrksrc}
|
||||||
|
|
||||||
|
mkdir -p ${wrksrc}/qtwebengine/src/3rdparty/chromium/tools/gn/out/Release
|
||||||
|
cp -p ${wrksrc}/qtwebengine/src/3rdparty/chromium/out/Release/gn \
|
||||||
|
${wrksrc}/qtwebengine/src/3rdparty/chromium/tools/gn/out/Release/
|
||||||
|
|
||||||
|
# Remove gn from SUBDIRS for qtwebengine/src/buildtools
|
||||||
|
sed -i ${wrksrc}/qtwebengine/src/buildtools/buildtools.pro \
|
||||||
|
-e"/gn.file = gn.pro/,+3d"
|
||||||
|
}
|
||||||
|
|
||||||
_cleanup_wrksrc_leak() {
|
_cleanup_wrksrc_leak() {
|
||||||
if [ -d "${PKGDESTDIR}/usr/lib/cmake" ]; then
|
if [ -d "${PKGDESTDIR}/usr/lib/cmake" ]; then
|
||||||
# Replace references to ${wrksrc} in cmake files
|
# Replace references to ${wrksrc} in cmake files
|
||||||
|
@ -242,47 +286,9 @@ do_configure() {
|
||||||
ln -sfv ${version}/${d}/private qtbase/include/${d}/private
|
ln -sfv ${version}/${d}/private qtbase/include/${d}/private
|
||||||
done
|
done
|
||||||
|
|
||||||
# Bootstrap gn (generate ninja)
|
if [ "$build_option_webengine" ]; then
|
||||||
_msg_cross "Bootstrapping 'gn'"
|
_bootstrap_gn
|
||||||
cd ${wrksrc}/qtwebengine/src/3rdparty/chromium/tools/gn
|
fi
|
||||||
conf='is_clang=false'
|
|
||||||
conf+=' treat_warnings_as_errors=false'
|
|
||||||
conf+=' enable_remoting=false'
|
|
||||||
conf+=' enable_nacl=false'
|
|
||||||
conf+=' use_cups=false'
|
|
||||||
conf+=' use_gconf=false'
|
|
||||||
conf+=' use_gio=false'
|
|
||||||
conf+=' use_gnome_keyring=false'
|
|
||||||
conf+=' use_gtk=false'
|
|
||||||
conf+=' use_kerberos=false'
|
|
||||||
conf+=' linux_use_bundled_binutils=false'
|
|
||||||
conf+=' binutils_path="/usr/bin"'
|
|
||||||
conf+=' use_gold=false'
|
|
||||||
conf+=' use_sysroot=false'
|
|
||||||
conf+=' use_allocator="none"'
|
|
||||||
conf+=' is_android=false'
|
|
||||||
|
|
||||||
sed -i ${wrksrc}/qtwebengine/src/core/config/linux.pri \
|
|
||||||
-e "/equals(MARMV/s;true;false;"
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
|
||||||
armv[56]*) conf+=' arm_use_neon=false arm_optionally_use_neon=false';;
|
|
||||||
armv7*) conf+=' arm_use_neon=true arm_optionally_use_neon=false';;
|
|
||||||
aarch64*) conf+=' arm_use_neon=true arm_optionally_use_neon=false';;
|
|
||||||
esac
|
|
||||||
|
|
||||||
AR="$AR_host" CC="$CC_host" CXX="$CXX_host" LD="$CXX_host" \
|
|
||||||
CFLAGS="$CFLAGS_host" CXXFLAGS="$CXXFLAGS_host" LDFLAGS="$LDFLAGS_host" \
|
|
||||||
PKGCONFIG=/usr/bin/pkgconfig PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/share/pkgconfig" \
|
|
||||||
python2 bootstrap/bootstrap.py -n --gn-gen-args "${conf}"
|
|
||||||
cd ${wrksrc}
|
|
||||||
|
|
||||||
mkdir -p ${wrksrc}/qtwebengine/src/3rdparty/chromium/tools/gn/out/Release
|
|
||||||
cp -p ${wrksrc}/qtwebengine/src/3rdparty/chromium/out/Release/gn \
|
|
||||||
${wrksrc}/qtwebengine/src/3rdparty/chromium/tools/gn/out/Release/
|
|
||||||
|
|
||||||
# Remove gn from SUBDIRS for qtwebengine/src/buildtools
|
|
||||||
sed -i ${wrksrc}/qtwebengine/src/buildtools/buildtools.pro \
|
|
||||||
-e"/gn.file = gn.pro/,+3d"
|
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
mips*) # sgidefs.h is in /usr/include/asm
|
mips*) # sgidefs.h is in /usr/include/asm
|
||||||
|
@ -299,7 +305,6 @@ do_configure() {
|
||||||
# Assume that RGBA order is correct for big endian CPUs
|
# Assume that RGBA order is correct for big endian CPUs
|
||||||
sed -i qtwebengine/src/3rdparty/chromium/skia/config/SkUserConfig.h \
|
sed -i qtwebengine/src/3rdparty/chromium/skia/config/SkUserConfig.h \
|
||||||
-e '/#error Read the comment at this location/d'
|
-e '/#error Read the comment at this location/d'
|
||||||
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
|
@ -346,6 +351,7 @@ do_configure() {
|
||||||
opts+=" -system-sqlite"
|
opts+=" -system-sqlite"
|
||||||
opts+=" -system-harfbuzz"
|
opts+=" -system-harfbuzz"
|
||||||
# Rely on auto detection (fails if forced for cross builds)
|
# Rely on auto detection (fails if forced for cross builds)
|
||||||
|
if [ "$build_option_webengine" ]; then
|
||||||
# opts+=" -webengine-alsa"
|
# opts+=" -webengine-alsa"
|
||||||
opts+=" -no-webengine-embedded-build"
|
opts+=" -no-webengine-embedded-build"
|
||||||
opts+=" -webengine-icu"
|
opts+=" -webengine-icu"
|
||||||
|
@ -360,6 +366,7 @@ do_configure() {
|
||||||
opts+=" -webengine-webrtc"
|
opts+=" -webengine-webrtc"
|
||||||
opts+=" -webengine-geolocation"
|
opts+=" -webengine-geolocation"
|
||||||
opts+=" -webengine-v8-snapshot"
|
opts+=" -webengine-v8-snapshot"
|
||||||
|
fi
|
||||||
opts+=" -silent"
|
opts+=" -silent"
|
||||||
# opts+=" -v"
|
# opts+=" -v"
|
||||||
|
|
||||||
|
@ -379,8 +386,10 @@ do_configure() {
|
||||||
opts+=" -extprefix /usr"
|
opts+=" -extprefix /usr"
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
arm*|mips*)
|
arm*|mips*)
|
||||||
|
if [ "$build_option_webengine" ]; then
|
||||||
# V8 snapshot can't be built with a 64 bit host compiler
|
# V8 snapshot can't be built with a 64 bit host compiler
|
||||||
opts+=" -no-webengine-v8-snapshot"
|
opts+=" -no-webengine-v8-snapshot"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue