summaryrefslogtreecommitdiffstats
path: root/Makefile.mingw64
diff options
context:
space:
mode:
authorJoerg Koenig <Joerg.Koenig@techsat.com>2019-05-30 21:04:07 (GMT)
committerJoerg Koenig <Joerg.Koenig@techsat.com>2019-05-30 21:04:07 (GMT)
commit0fca31cfad56705f9d261b8a17fcfb779c20ae5a (patch)
tree24055ca5d50dc5bbfa4bed74232fb2eb105b8546 /Makefile.mingw64
parentbc0b081c5b9c75a6737cce1404459172d36e879f (diff)
downloadQt-0fca31cfad56705f9d261b8a17fcfb779c20ae5a.zip
Qt-0fca31cfad56705f9d261b8a17fcfb779c20ae5a.tar.gz
Qt-0fca31cfad56705f9d261b8a17fcfb779c20ae5a.tar.bz2
Change-Id: I4f8f0b472eca3bfc0a51c6857489f114441801d0
Diffstat (limited to 'Makefile.mingw64')
-rw-r--r--Makefile.mingw6485
1 files changed, 85 insertions, 0 deletions
diff --git a/Makefile.mingw64 b/Makefile.mingw64
new file mode 100644
index 0000000..e638416
--- /dev/null
+++ b/Makefile.mingw64
@@ -0,0 +1,85 @@
+TOP = $(shell readlink -f .)
+
+ARCH = x86-mingw64
+
+LOCAL_BUILD_PATH = $(TOP)/build.$(ARCH)
+LOCAL_INST_PATH = $(TOP)/install.$(ARCH)
+
+VERSION_SHORT = 5.12
+VERSION_RELEASE = 3
+VERSION = $(VERSION_SHORT).$(VERSION_RELEASE)
+
+SSL_VERSION = 1.0.2r
+SSL_ARCHIVE = openssl-$(SSL_VERSION).tar.gz
+
+PACKAGE_NAME = qt-$(VERSION)-$(ARCH)
+
+all: download ssl qt
+
+ssl: ssl.$(ARCH)
+qt: qt.$(ARCH)
+
+download:
+ $(MAKE) -C ./SOURCE
+
+ssl.$(ARCH):
+ rm -Rf $(LOCAL_BUILD_PATH)/openssl-$(SSL_VERSION)
+ mkdir -p $(LOCAL_BUILD_PATH)/
+ cd $(LOCAL_BUILD_PATH) && \
+ tar --force-local -xzf $(TOP)/SOURCE/$(SSL_ARCHIVE)
+ cd $(LOCAL_BUILD_PATH)/openssl-$(SSL_VERSION) && \
+ export CFLAGS="-m64 -fpic" && \
+ ./Configure --prefix=$(LOCAL_INST_PATH)/openssl shared mingw64 && \
+ make clean && \
+ make && \
+ make install
+
+qt.$(ARCH):
+ mkdir -p $(LOCAL_BUILD_PATH)
+ rm -Rf $(LOCAL_BUILD_PATH)/qt-everywhere-src-$(VERSION)
+ if ! [ -d $(LOCAL_BUILD_PATH)/qt-everywhere-src-$(VERSION) ]; then \
+ cd $(LOCAL_BUILD_PATH); \
+ tar --force-local -xJf $(TOP)/SOURCE/qt-everywhere-src-$(VERSION).tar.xz; \
+ fi
+ cd $(LOCAL_BUILD_PATH)/qt-everywhere-src-$(VERSION) && \
+ rm -f config.cache && \
+ patch -p1 < $(TOP)/SOURCE/qt-5.12.3.mingw64.patch && \
+ ./configure \
+ -platform win32-g++ \
+ -prefix $(LOCAL_INST_PATH)/qt-$(VERSION)/$(ARCH) \
+ -recheck-all \
+ -shared \
+ -release \
+ -strip \
+ -ssl \
+ -nomake examples \
+ -nomake tests \
+ -skip qtwebengine \
+ -skip qtwebglplugin \
+ -skip qtwayland \
+ -skip qtlocation \
+ -skip qtdoc \
+ -skip qtgamepad \
+ -skip qtsensors \
+ -skip qtmultimedia \
+ -skip qtactiveqt \
+ -qt-zlib \
+ -qt-libjpeg \
+ -qt-libpng \
+ -qt-pcre \
+ -qt-freetype \
+ -opengl desktop \
+ -openssl \
+ -I$(LOCAL_INST_PATH)/openssl/include \
+ -L$(LOCAL_INST_PATH)/openssl/lib \
+ -L$(GCC_PATH)/lib \
+ -opensource \
+ -confirm-license && \
+ make && \
+ make install
+ cd $(LOCAL_INST_PATH)/qt-$(VERSION)/$(ARCH) && \
+ tar --force-local -zcf $(TOP)/$(PACKAGE_NAME).tgz ./
+
+clean:
+ rm -Rf build.$(ARCH)
+ rm -Rf install.$(ARCH)