Commit ce54c03b authored by Rafaël Carré's avatar Rafaël Carré

contrib: qt4: Reduce win32 binsize

Some config options do not apply to win32 builds (e.g. QT_NO_ICONV)
parent 04974d8f
...@@ -6,5 +6,5 @@ includedir=${prefix}/include/qt4/QtCore ...@@ -6,5 +6,5 @@ includedir=${prefix}/include/qt4/QtCore
Name: Qtcore Name: Qtcore
Description: Qtcore Library Description: Qtcore Library
Version: @@VERSION@@ Version: @@VERSION@@
Libs: -Wl,--subsystem,windows -mwindows -L${libdir} -lQtCore -lqcncodecs -lqjpcodecs -lqkrcodecs -lqtwcodecs -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -ladvapi32 -lgdi32 -limm32 -lwsock32 Libs: -Wl,--subsystem,windows -mwindows -L${libdir} -lQtCore -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -ladvapi32 -lgdi32 -limm32 -lwsock32
Cflags: -I${prefix}/include/qt4 -I${includedir} -DQT_NODLL Cflags: -I${prefix}/include/qt4 -I${includedir} -DQT_NODLL
...@@ -6,5 +6,5 @@ includedir=${prefix}/include/qt4/QtGui ...@@ -6,5 +6,5 @@ includedir=${prefix}/include/qt4/QtGui
Name: Qtgui Name: Qtgui
Description: Qtgui Library Description: Qtgui Library
Version: @@VERSION@@ Version: @@VERSION@@
Libs: -Wl,--subsystem,windows -mwindows -L${libdir} -lqjpeg -lqtaccessiblewidgets -lQtGui -lQtCore -lqcncodecs -lqjpcodecs -lqkrcodecs -lqtwcodecs -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -ladvapi32 -lgdi32 -limm32 -lwsock32 Libs: -Wl,--subsystem,windows -mwindows -L${libdir} -lqjpeg -lqtaccessiblewidgets -lQtGui -lQtCore -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -ladvapi32 -lgdi32 -limm32 -lwsock32
Cflags: -I${prefix}/include/qt4 -I${includedir} -DQT_NODLL Cflags: -I${prefix}/include/qt4 -I${includedir} -DQT_NODLL
...@@ -42,3 +42,22 @@ ...@@ -42,3 +42,22 @@
+QMAKE_STRIP = $(XSTRIP) +QMAKE_STRIP = $(XSTRIP)
QMAKE_STRIPFLAGS_LIB += --strip-unneeded QMAKE_STRIPFLAGS_LIB += --strip-unneeded
load(qt_config) load(qt_config)
--- qt-everywhere-opensource-src-4.7.4/configure.orig 2011-11-10 18:48:29.351058392 -0500
+++ qt-everywhere-opensource-src-4.7.4/configure 2011-11-10 18:50:40.971711056 -0500
@@ -7767,6 +7767,7 @@
fi
# X11/Unix/Mac only configs
+if [ "$XPLATFORM_MINGW" != "yes" ]; then
[ "$CFG_CUPS" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_CUPS"
[ "$CFG_ICONV" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_ICONV"
[ "$CFG_GLIB" != "yes" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_GLIB"
@@ -7807,6 +7808,8 @@
[ "$CFG_COREWLAN" = "no" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_COREWLAN"
[ "$CFG_ICD" != "yes" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_ICD"
+fi
+
# sort QCONFIG_FLAGS for neatness if we can
[ '!' -z "$AWK" ] && QCONFIG_FLAGS=`echo $QCONFIG_FLAGS | $AWK '{ gsub(" ", "\n"); print }' | sort | uniq`
QCONFIG_FLAGS=`echo $QCONFIG_FLAGS`
...@@ -45,9 +45,6 @@ endif ...@@ -45,9 +45,6 @@ endif
# INSTALLING PLUGINS # INSTALLING PLUGINS
install -D -- $</plugins/imageformats/libqjpeg.a "$(PREFIX)/lib/libqjpeg.a" install -D -- $</plugins/imageformats/libqjpeg.a "$(PREFIX)/lib/libqjpeg.a"
install -D -- $</plugins/accessible/libqtaccessiblewidgets.a "$(PREFIX)/lib/libqtaccessiblewidgets.a" install -D -- $</plugins/accessible/libqtaccessiblewidgets.a "$(PREFIX)/lib/libqtaccessiblewidgets.a"
for codec in cn jp kr tw; \
do install -D -- $</plugins/codecs/libq$${codec}codecs.a "$(PREFIX)/lib/libq$${codec}codecs.a"; \
done
# INSTALLING HEADERS # INSTALLING HEADERS
for h in corelib gui xml network; \ for h in corelib gui xml network; \
do find . -type f -name '*.h' -exec install -D -- "{}" "$(PREFIX)/include/qt4/src/$${h}/{}" \; ; \ do find . -type f -name '*.h' -exec install -D -- "{}" "$(PREFIX)/include/qt4/src/$${h}/{}" \; ; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment