summaryrefslogtreecommitdiffstats
path: root/Makefile.qtwintools
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.qtwintools')
-rw-r--r--Makefile.qtwintools56
1 files changed, 56 insertions, 0 deletions
diff --git a/Makefile.qtwintools b/Makefile.qtwintools
new file mode 100644
index 0000000..405b1a4
--- /dev/null
+++ b/Makefile.qtwintools
@@ -0,0 +1,56 @@
+TOP = $(shell readlink -f .)
+
+VERSION_SHORT = 5.14
+VERSION_RELEASE = 2
+VERSION = $(VERSION_SHORT).$(VERSION_RELEASE)
+
+7ZIP = $(TOP)/wintools/7za.exe
+LOCAL_BUILD_PATH = c:/tmp/qtbuild
+SRCDIR = $(LOCAL_BUILD_PATH)/qt-everywhere-src-5.14.2
+
+TOOLS = moc rcc uic qlalr qvkgen tracegen
+
+all: download unpack configure tools pack clean
+
+download:
+ $(MAKE) -C ./SOURCE zip
+
+unpack:
+ mkdir -p $(LOCAL_BUILD_PATH)
+ cd $(LOCAL_BUILD_PATH); \
+ rm -Rf qt-everywhere-src-$(VERSION) ; \
+ $(7ZIP) x $(TOP)/SOURCE/qt-everywhere-src-$(VERSION).zip
+
+configure:
+ cd $(SRCDIR) && \
+ ./configure.bat -opensource -confirm-license
+
+tools:
+ cd $(SRCDIR)/qtbase/src/tools/bootstrap && \
+ $(SRCDIR)/qtbase/bin/qmake -o Makefile && \
+ make -f Makefile
+ cd $(SRCDIR)/qtbase/src/tools/moc && \
+ $(SRCDIR)/qtbase/bin/qmake -o Makefile && \
+ make -f Makefile
+ cd $(SRCDIR)/qtbase/src/tools/rcc && \
+ $(SRCDIR)/qtbase/bin/qmake -o Makefile && \
+ make -f Makefile
+ cd $(SRCDIR)/qtbase/src/3rdparty/pcre2 && \
+ $(SRCDIR)/qtbase/bin/qmake -o Makefile && \
+ make -f Makefile
+ cd $(SRCDIR)/qtbase/src/corelib && \
+ $(SRCDIR)/qtbase/bin/qmake -o Makefile && \
+ make -f Makefile
+ for t in $(TOOLS) ; do \
+ cd $(SRCDIR)/qtbase/src/tools/$$t ;\
+ $(SRCDIR)/qtbase/bin/qmake -o Makefile ;\
+ make -f Makefile ;\
+ done
+
+pack:
+ cd $(SRCDIR)/qtbase/bin && \
+ tar -zcf $(TOP)/qtwintools.tgz ./*.exe
+
+clean:
+ rm -Rf $(LOCAL_BUILD_PATH)
+