diff options
author | Tony Theodore <tonyt@logyst.com> | 2017-07-20 00:56:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-20 00:56:39 (GMT) |
commit | 4c73564d63345b35141de60fd2fa3805ecb8b1db (patch) | |
tree | 370521b53db0771dc4ebe9a26e643ab26e019c9e /plugins/examples/qt5-freeze/qttools.mk | |
parent | 7cde6141a4e27f44ed8d51f38fd50b0892bb312a (diff) | |
parent | 9f793b72dce2430eb9cf8af055701ca2de5c8232 (diff) | |
download | mxe-4c73564d63345b35141de60fd2fa3805ecb8b1db.zip mxe-4c73564d63345b35141de60fd2fa3805ecb8b1db.tar.gz mxe-4c73564d63345b35141de60fd2fa3805ecb8b1db.tar.bz2 |
Merge pull request #1828 from tonytheodore/qt5-freeze
add qt5 freeze example plugin (e.g. winxp support)
Diffstat (limited to 'plugins/examples/qt5-freeze/qttools.mk')
-rw-r--r-- | plugins/examples/qt5-freeze/qttools.mk | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/plugins/examples/qt5-freeze/qttools.mk b/plugins/examples/qt5-freeze/qttools.mk new file mode 100644 index 0000000..9fa6adf --- /dev/null +++ b/plugins/examples/qt5-freeze/qttools.mk @@ -0,0 +1,31 @@ +# This file is part of MXE. See LICENSE.md for licensing information. + +PKG := qttools +$(PKG)_WEBSITE := http://qt-project.org/ +$(PKG)_DESCR := Qt +$(PKG)_IGNORE := +$(PKG)_VERSION = $(qtbase_VERSION) +$(PKG)_CHECKSUM := 64197022686c3d8b11a8639f102e2caf03cc325a30e7a32ba66881648ac2dfac +$(PKG)_PATCHES := $(realpath $(sort $(wildcard $(dir $(lastword $(MAKEFILE_LIST)))/$(PKG)-[0-9]*.patch))) +$(PKG)_SUBDIR = $(subst qtbase,qttools,$(qtbase_SUBDIR)) +$(PKG)_FILE = $(subst qtbase,qttools,$(qtbase_FILE)) +$(PKG)_URL = $(subst qtbase,qttools,$(qtbase_URL)) +$(PKG)_DEPS := gcc qtactiveqt qtbase qtdeclarative + +define $(PKG)_UPDATE + echo $(qtbase_VERSION) +endef + +define $(PKG)_BUILD + cd '$(1)' && '$(PREFIX)/$(TARGET)/qt5/bin/qmake' + $(MAKE) -C '$(1)' -j '$(JOBS)' + $(MAKE) -C '$(1)' -j 1 install + + # test QUiLoader + mkdir '$(1)'.test + cd '$(1)'.test && '$(TARGET)-cmake' '$(PWD)/src/qttools-test' + $(MAKE) -C '$(1)'.test + cp '$(1)'.test/mxe-cmake-qtuitools.exe \ + '$(PREFIX)/$(TARGET)/bin/test-qttools.exe' +endef + |