Merge pull request #2215 from muellni/qtifw

new package: qtifw
This commit is contained in:
mabrand 2018-09-26 17:03:22 +02:00 committed by GitHub
commit 930198e014
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 106 additions and 0 deletions

76
src/qtifw-1-fixes.patch Normal file
View File

@ -0,0 +1,76 @@
This file is part of MXE. See LICENSE.md for licensing information.
diff --git a/installerfw.pro b/installerfw.pro
index 10414ad5..1cec9c6a 100644
--- a/installerfw.pro
+++ b/installerfw.pro
@@ -2,8 +2,6 @@ TEMPLATE = subdirs
SUBDIRS += src tools
tools.depends = src
-requires(!cross_compile)
-
include (installerfw.pri)
include (doc/doc.pri)
diff --git a/src/libs/7zip/win/CPP/Windows/SecurityUtils.h b/src/libs/7zip/win/CPP/Windows/SecurityUtils.h
index 715de250..bfb65a34 100644
--- a/src/libs/7zip/win/CPP/Windows/SecurityUtils.h
+++ b/src/libs/7zip/win/CPP/Windows/SecurityUtils.h
@@ -3,7 +3,7 @@
#ifndef __WINDOWS_SECURITY_UTILS_H
#define __WINDOWS_SECURITY_UTILS_H
-#include <NTSecAPI.h>
+#include <ntsecapi.h>
#include "Defs.h"
diff --git a/src/libs/installer/createshortcutoperation.cpp b/src/libs/installer/createshortcutoperation.cpp
index 2c2e96ef..36f97b0c 100644
--- a/src/libs/installer/createshortcutoperation.cpp
+++ b/src/libs/installer/createshortcutoperation.cpp
@@ -41,7 +41,7 @@ using namespace QInstaller;
#ifdef Q_OS_WIN
#include <qt_windows.h>
#include <shlobj.h>
-#include <Intshcut.h>
+#include <intshcut.h>
#ifndef PIDLIST_ABSOLUTE
typedef ITEMIDLIST *PIDLIST_ABSOLUTE;
diff --git a/src/libs/installer/binaryformat.h b/src/libs/installer/binaryformat.h
index 3bd8a6aa..87d5e323 100644
--- a/src/libs/installer/binaryformat.h
+++ b/src/libs/installer/binaryformat.h
@@ -33,7 +33,7 @@
#include "range.h"
#include <QCoreApplication>
-#include <QtCore/private/qfsfileengine_p.h>
+#include <QtCore/QFile>
#include <QList>
#include <QSharedPointer>
@@ -81,7 +81,7 @@ private:
void setOpenMode(OpenMode mode) { QIODevice::setOpenMode(mode); }
private:
- QFSFileEngine m_file;
+ QFile m_file;
QByteArray m_name;
Range<qint64> m_segment;
};
diff --git a/src/libs/installer/extractarchiveoperation_p.h b/src/libs/installer/extractarchiveoperation_p.h
index f333da36..9f528b6a 100644
--- a/src/libs/installer/extractarchiveoperation_p.h
+++ b/src/libs/installer/extractarchiveoperation_p.h
@@ -37,6 +37,8 @@
#include <QRunnable>
#include <QThread>
+#include <QFileInfo>
+#include <QDir>
namespace QInstaller {

30
src/qtifw.mk Normal file
View File

@ -0,0 +1,30 @@
# This file is part of MXE. See LICENSE.md for licensing information.
PKG := qtifw
$(PKG)_WEBSITE := https://doc.qt.io/qtinstallerframework/index.html
$(PKG)_DESCR := Qt Installer Framework
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.0.4
$(PKG)_CHECKSUM := a4ecafc37086f96a833463214f873caac977199e64f0b1453aa49bdd6f24f32e
$(PKG)_SUBDIR = qt-installer-framework-opensource-src-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).zip
$(PKG)_URL := https://download.qt.io/official_releases/qt-installer-framework/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := cc qtwinextras
$(PKG)_DEPS_$(BUILD) :=
$(PKG)_TARGETS := $(BUILD) i686-w64-mingw32.static.posix
define $(PKG)_BUILD_$(BUILD)
cd '$(1)' && qmake
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(INSTALL) -m755 '$(1)/bin/binarycreator' '$(PREFIX)/bin/$(TARGET)-binarycreator'
$(INSTALL) -m755 '$(1)/bin/repogen' '$(PREFIX)/bin/$(TARGET)-repogen'
$(INSTALL) -m755 '$(1)/bin/archivegen' '$(PREFIX)/bin/$(TARGET)-archivegen'
$(INSTALL) -m755 '$(1)/bin/devtool' '$(PREFIX)/bin/$(TARGET)-devtool'
endef
define $(PKG)_BUILD
cd '$(1)' && '$(PREFIX)/$(TARGET)/qt5/bin/qmake'
$(MAKE) -C '$(1)' -j '$(JOBS)' || $(MAKE) -C '$(1)' -j 1
$(MAKE) -C '$(1)' -j 1 install
endef