diff options
-rw-r--r-- | Makefile.mingw64 | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/Makefile.mingw64 b/Makefile.mingw64 index 577bc5c..c70a8c0 100644 --- a/Makefile.mingw64 +++ b/Makefile.mingw64 @@ -14,6 +14,10 @@ SSL_ARCHIVE = openssl-$(SSL_VERSION).tar.gz PACKAGE_NAME = qt-$(VERSION)-$(ARCH) +QT_BUILD_PATH = c:/tmp +QT_INST_PATH = $(QT_BUILD_PATH)/qt +QT_SRC_PATH = $(QT_BUILD_PATH)/qt-src + all: download ssl qt ssl: ssl.$(ARCH) @@ -29,7 +33,7 @@ ssl.$(ARCH): tar --force-local -xzf $(TOP)/SOURCE/$(SSL_ARCHIVE) cd $(LOCAL_BUILD_PATH)/openssl-$(SSL_VERSION) && \ export CFLAGS="-m64 -fpic" && \ - ./Configure --prefix=$(LOCAL_INST_PATH)/qt-$(VERSION)/$(ARCH) shared mingw64 && \ + ./Configure --prefix=$(QT_INST_PATH) shared mingw64 && \ make clean && \ make && \ make install @@ -41,14 +45,16 @@ qt.$(ARCH): cd $(LOCAL_BUILD_PATH); \ tar --force-local -xJf $(TOP)/SOURCE/qt-everywhere-src-$(VERSION).tar.xz; \ cd $(LOCAL_BUILD_PATH)/qt-everywhere-src-$(VERSION) ; \ - patch -p1 < $(TOP)/SOURCE/qt-5.12.3.mingw64.patch ; \ patch -p1 < $(TOP)/SOURCE/qt-5.12.3-cross-static-gcc-libs.patch ; \ fi - cd $(LOCAL_BUILD_PATH)/qt-everywhere-src-$(VERSION) && \ + rm -Rf $(QT_SRC_PATH) + mv $(LOCAL_BUILD_PATH)/qt-everywhere-src-$(VERSION) $(QT_SRC_PATH) + # be sure, that python, msys-tools and gcc are in PATH + cd $(QT_SRC_PATH) && \ rm -f config.cache && \ ./configure \ -platform win32-g++ \ - -prefix $(LOCAL_INST_PATH)/qt-$(VERSION)/$(ARCH) \ + -prefix $(QT_INST_PATH) \ -recheck-all \ -shared \ -release \ @@ -56,9 +62,9 @@ qt.$(ARCH): -ssl \ -nomake examples \ -nomake tests \ - -skip qtactiveqt \ -skip qtwebengine \ -skip qtwebglplugin \ + -skip qtwebchannel \ -skip qtdeclarative \ -skip qtwayland \ -skip qtlocation \ @@ -73,18 +79,19 @@ qt.$(ARCH): -qt-freetype \ -opengl desktop \ -openssl \ - -I$(LOCAL_INST_PATH)/qt-$(VERSION)/$(ARCH)/include \ - -L$(LOCAL_INST_PATH)/qt-$(VERSION)/$(ARCH)/lib \ - -L$(GCC_PATH)/lib \ + -I$(QT_INST_PATH)/include \ + -L$(QT_INST_PATH)/lib \ -opensource \ -confirm-license && \ make && \ make install - mv -f $(LOCAL_INST_PATH)/qt-$(VERSION)/$(ARCH)/bin/openssl.exe \ - $(LOCAL_INST_PATH)/qt-$(VERSION)/$(ARCH)/bin/qt-openssl.exe - cp -f $(GCC_PATH)/bin/*.dll $(LOCAL_INST_PATH)/qt-$(VERSION)/$(ARCH)/bin/ - cd $(LOCAL_INST_PATH)/qt-$(VERSION)/$(ARCH) && \ + mv -f $(QT_INST_PATH)/bin/openssl.exe \ + $(QT_INST_PATH)/bin/qt-openssl.exe + cp -f $(GCC_PATH)/bin/*.dll $(QT_INST_PATH)/bin/ + cd $(QT_INST_PATH)/ && \ tar --force-local -zcf $(TOP)/$(PACKAGE_NAME).tgz ./ + rm -Rf $(QT_INST_PATH) + rm -Rf $(QT_SRC_PATH) clean: rm -Rf build.$(ARCH) |