summaryrefslogtreecommitdiffstats
path: root/plugins/examples/qt5-freeze/qttools.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2017-07-19 05:22:57 (GMT)
committerTony Theodore <tonyt@logyst.com>2017-07-19 05:58:24 (GMT)
commit9f793b72dce2430eb9cf8af055701ca2de5c8232 (patch)
tree2502de3de9214bb34e3934ab0b6bf99b8b334e04 /plugins/examples/qt5-freeze/qttools.mk
parent56acbc69c3bc4c4b3bcf6a798e6f7398c78d0e08 (diff)
downloadmxe-9f793b72dce2430eb9cf8af055701ca2de5c8232.zip
mxe-9f793b72dce2430eb9cf8af055701ca2de5c8232.tar.gz
mxe-9f793b72dce2430eb9cf8af055701ca2de5c8232.tar.bz2
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.mk31
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
+