diff options
author | Tony Theodore <tonyt@logyst.com> | 2015-12-09 11:07:13 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2015-12-09 11:07:13 (GMT) |
commit | d466214b5523091801c5d5ccce4cf04a85cd8142 (patch) | |
tree | ac36965031e97b055b7a57dd7bff6cb73dfe699a /plugins/examples/custom-qt-min | |
parent | b9b1b06682fc4ea82a7fb5f39cafa53a6c8997bd (diff) | |
download | mxe-d466214b5523091801c5d5ccce4cf04a85cd8142.zip mxe-d466214b5523091801c5d5ccce4cf04a85cd8142.tar.gz mxe-d466214b5523091801c5d5ccce4cf04a85cd8142.tar.bz2 |
plugins: move custom-qt-min to examples
Diffstat (limited to 'plugins/examples/custom-qt-min')
-rw-r--r-- | plugins/examples/custom-qt-min/overrides.mk | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/plugins/examples/custom-qt-min/overrides.mk b/plugins/examples/custom-qt-min/overrides.mk new file mode 100644 index 0000000..bbb1223 --- /dev/null +++ b/plugins/examples/custom-qt-min/overrides.mk @@ -0,0 +1,84 @@ +# This file is part of MXE. +# See index.html for further information. + +# MXE provides a fully featured build of Qt. Some users want more control... +# http://lists.nongnu.org/archive/html/mingw-cross-env-list/2013-08/msg00010.html +# http://lists.nongnu.org/archive/html/mingw-cross-env-list/2012-05/msg00019.html +# +# build of qt and deps is (say): 25 mins with 12.5 MB test program +# custom with minimal deps is: 4 mins with 7.6 MB test program +# custom min deps and cflags is: 4 mins with 5.9 MB test program +# +# make qt MXE_PLUGIN_DIRS='plugins/custom-qt-min' + +$(info == Custom Qt overrides: $(lastword $(MAKEFILE_LIST))) + +qt_DEPS := gcc + +define qt_BUILD + $(SED) -i 's,\(^QMAKE_CFLAGS_RELEASE\).*,\1 = -pipe -Os -fomit-frame-pointer -momit-leaf-frame-pointer -fdata-sections -ffunction-sections,g' '$(1)/mkspecs/win32-g++/qmake.conf' + cd '$(1)' && QTDIR='$(1)' ./bin/syncqt + cd '$(1)' && \ + ./configure \ + -opensource \ + -confirm-license \ + -fast \ + -xplatform win32-g++-4.6 \ + -device-option CROSS_COMPILE=$(TARGET)- \ + -device-option PKG_CONFIG='$(TARGET)-pkg-config' \ + -force-pkg-config \ + -release \ + -static \ + -prefix '$(PREFIX)/$(TARGET)/qt' \ + -prefix-install \ + -make libs \ + -nomake demos \ + -nomake docs \ + -nomake examples \ + -nomake tools \ + -nomake translations \ + -no-accessibility \ + -no-audio-backend \ + -no-dbus \ + -no-declarative \ + -no-exceptions \ + -no-gif \ + -no-glib \ + -no-gstreamer \ + -no-iconv \ + -no-libjpeg \ + -no-libmng \ + -no-libpng \ + -no-libtiff \ + -no-multimedia \ + -no-opengl \ + -no-openssl \ + -no-phonon \ + -no-phonon-backend \ + -no-qt3support \ + -no-reduce-exports \ + -no-rpath \ + -no-script \ + -no-scripttools \ + -no-sql-mysql \ + -no-sql-odbc \ + -no-sql-psql \ + -no-sql-sqlite \ + -no-sql-tds \ + -no-stl \ + -no-svg \ + -no-webkit \ + -no-xmlpatterns \ + -qt-zlib \ + -v + + $(MAKE) -C '$(1)' -j '$(JOBS)' + rm -rf '$(PREFIX)/$(TARGET)/qt' + $(MAKE) -C '$(1)' -j 1 install + + mkdir '$(1)/test-qt' + cd '$(1)/test-qt' && '$(PREFIX)/$(TARGET)/qt/bin/qmake' '$(PWD)/$(2).pro' + $(MAKE) -C '$(1)/test-qt' -j '$(JOBS)' + $(INSTALL) -m755 '$(1)/test-qt/release/test-qt.exe' '$(PREFIX)/$(TARGET)/bin/' + +endef |