Mercurial > mxe-octave
diff src/qt.mk @ 3959:6303de54ff1b
qt: add build of devel mingw tools moc, rcc, uic, lrelease for windows
* src/qt.mk: add build of moc,release, uic, rcc when ENABLE_DEVEL_TOOL set for cross mingw
* src/qt-2-shared-tools-fixes.patch: new file
* dist-files.mk: add qt-2-shared-tools-fixes.patch
author | John D |
---|---|
date | Sun, 07 Jun 2015 22:13:05 -0400 |
parents | 4e204ea06bc8 |
children | e576d2d5ae70 |
line wrap: on
line diff
--- a/src/qt.mk Fri Jun 05 21:32:19 2015 -0400 +++ b/src/qt.mk Sun Jun 07 22:13:05 2015 -0400 @@ -221,4 +221,20 @@ $(if $(filter-out yes, $(MXE_NATIVE_BUILD)), mv '$($(PKG)_INSTALL_ROOT)$($(PKG)_PREFIX)/bin/lrelease' '$($(PKG)_INSTALL_ROOT)$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)lrelease')) + # if mingw cross compiling, and want devel tools, create cross compiles uic, moc, rcc and lrelease + if [ "$(MXE_NATIVE_BUILD)" = "no" -a "$(MXE_SYSTEM)" = "mingw" ]; then \ + if [ "$(ENABLE_DEVEL_TOOLS)" = "yes" ]; then \ + for f in bootstrap moc uic rcc; do \ + echo "do make in $$f"; \ + make -C "$(1)/src/tools/$$f" distclean; \ + cd "$(1)/src/tools/$$f" && $(MXE_QMAKE) -makefile -spec '$(1)/mkspecs/win32-g++'; \ + make -C "$(1)/src/tools/$$f"; \ + make -C "$(1)/src/tools/$$f" -j 1 install INSTALL_ROOT='$($(PKG)_INSTALL_ROOT)'; \ + done; \ + make -C '$(1)/tools/linguist/lrelease' distclean; \ + cd '$(1)/tools/linguist/lrelease' && $(MXE_QMAKE) -makefile -spec '$(1)/mkspecs/win32-g++'; \ + make -C '$(1)/tools/linguist/lrelease'; \ + make -C '$(1)/tools/linguist/lrelease' -j 1 install INSTALL_ROOT='$($(PKG)_INSTALL_ROOT)'; \ + fi; \ + fi endef