diff options
Diffstat (limited to 'packaging-tools/configurations/pkg_templates/generator/templates')
59 files changed, 0 insertions, 3327 deletions
diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/android_armv7/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/android_armv7/meta/installscript.qs deleted file mode 100644 index 44a542167..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/android_armv7/meta/installscript.qs +++ /dev/null @@ -1,88 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ - // add dynamic dependency for mingw530 TC for Android packages on Windows - if (installer.value("os") == "win") { - var mingw_tc_component = "qt.tools.win32_mingw530"; - component.addDependency(mingw_tc_component); - } -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - var qmakeBinary = ""; - var platform = ""; - if (installer.value("os") == "x11") { - qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake"; - platform = "linux"; - } - if (installer.value("os") == "mac") { - qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake"; - platform = "mac"; - } - if (installer.value("os") == "win") { - qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake.exe"; - platform = "windows"; - } - - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - addInitQtPatchOperation(component, platform, qtPath, qmakeBinary, "emb-arm-qt5"); - - if (installer.value("SDKToolBinary") == "") - return; - - // add Qt into QtCreator - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} for Android armv7", - "--type", "Qt4ProjectManager.QtVersion.Android", - "--qmake", qmakeBinary, - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "Qt-%QT_VERSION%"); - - // patch qt edition - var qconfigFile = qtPath + "/mkspecs/qconfig.pri"; - component.addOperation("LineReplace", qconfigFile, "QT_EDITION =", "QT_EDITION = OpenSource"); -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/android_armv7/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/android_armv7/meta/package.xml deleted file mode 100644 index 876ba68be..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/android_armv7/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>Android ARMv7</DisplayName> - <Description>Qt %QT_VERSION% Prebuilt Components for Android ARMv7</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.%BASE_DEPENDENCY_PKG_NAME%.doc, qt.%BASE_DEPENDENCY_PKG_NAME%.examples</Dependencies> - <Default>false</Default> - <Script>installscript.qs</Script> - <SortingPriority>250</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/android_x86/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/android_x86/meta/installscript.qs deleted file mode 100644 index 74f62ba41..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/android_x86/meta/installscript.qs +++ /dev/null @@ -1,88 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ - // add dynamic dependency for mingw530 TC for Android packages on Windows - if (installer.value("os") == "win") { - var mingw_tc_component = "qt.tools.win32_mingw530"; - component.addDependency(mingw_tc_component); - } -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - var qmakeBinary = ""; - var platform = ""; - if (installer.value("os") == "x11") { - qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake"; - platform = "linux"; - } - if (installer.value("os") == "mac") { - qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake"; - platform = "mac"; - } - if (installer.value("os") == "win") { - qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake.exe"; - platform = "windows"; - } - - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - addInitQtPatchOperation(component, platform, qtPath, qmakeBinary, "emb-arm-qt5"); - - if (installer.value("SDKToolBinary") == "") - return; - - // add Qt into QtCreator - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} for Android x86", - "--type", "Qt4ProjectManager.QtVersion.Android", - "--qmake", qmakeBinary, - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "Qt-%QT_VERSION%"); - - // patch qt edition - var qconfigFile = qtPath + "/mkspecs/qconfig.pri"; - component.addOperation("LineReplace", qconfigFile, "QT_EDITION =", "QT_EDITION = OpenSource"); -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/android_x86/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/android_x86/meta/package.xml deleted file mode 100644 index 91d0641ad..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/android_x86/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>Android x86</DisplayName> - <Description>Qt %QT_VERSION% Prebuilt Components for Android x86</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.%BASE_DEPENDENCY_PKG_NAME%.doc, qt.%BASE_DEPENDENCY_PKG_NAME%.examples</Dependencies> - <Default>false</Default> - <Script>installscript.qs</Script> - <SortingPriority>270</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/clang_64/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/clang_64/meta/installscript.qs deleted file mode 100644 index 6ba631501..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/clang_64/meta/installscript.qs +++ /dev/null @@ -1,100 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ - if (installer.value("os") == "mac") { - var xcodeVersion = installer.execute("/usr/bin/xcodebuild", new Array("-version"))[0]; - if (xcodeVersion) { - var version = xcodeVersion.replace( /\D+/g, ''); - if (parseInt(version) >= parseInt(400) && parseInt(version) <= parseInt(500)) { - QMessageBox["warning"]("XcodeVersionError", - qsTr("You need to update Xcode to latest version!"), - qsTr("It is recommeneded to have Xcode version greater than 4.0.0 and smaller than 5.0.0 for Qt5.9 compilations with clang.")); - } - } - else { - QMessageBox["warning"]("XcodeError", - qsTr("Xcode installation not found!"), - qsTr("You need to install Xcode version 5.0.0. Download Xcode from https://developer.apple.com/xcode\n")); - } - } -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - try { - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - var qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake"; - addInitQtPatchOperation(component, "mac", qtPath, qmakeBinary, "qt5"); - - if (installer.value("SDKToolBinary") == "") - return; - - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} clang 64bit", - "--type", "Qt4ProjectManager.QtVersion.Desktop", - "--qmake", qmakeBinary, - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - var kitName = component.name + "_kit"; - component.addOperation("Execute", - ["@SDKToolBinary@", "addKit", - "--id", kitName, - "--name", "Desktop Qt %{Qt:Version} clang 64bit", - "--Ctoolchain", "x86-macos-generic-mach_o-64bit", - "--Cxxtoolchain", "x86-macos-generic-mach_o-64bit", - "--qt", component.name, - "--debuggerengine", "256", // DebuggerEngineType::LldbEngineType - "--devicetype", "Desktop", - "UNDOEXECUTE", - "@SDKToolBinary@", "rmKit", "--id", kitName]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "Qt-%QT_VERSION%"); - - // patch qt edition - var qconfigFile = qtPath + "/mkspecs/qconfig.pri"; - component.addOperation("LineReplace", qconfigFile, "QT_EDITION =", "QT_EDITION = OpenSource"); - - } catch(e) { - print(e); - } -} diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/clang_64/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/clang_64/meta/package.xml deleted file mode 100644 index e892b7e99..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/clang_64/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>macOS</DisplayName> - <Description>Qt %QT_VERSION% Prebuilt Components for macOS</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.%BASE_DEPENDENCY_PKG_NAME%.doc, qt.%BASE_DEPENDENCY_PKG_NAME%.examples</Dependencies> - <Default>false</Default> - <Script>installscript.qs</Script> - <SortingPriority>700</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/doc.base/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/doc.base/meta/installscript.qs deleted file mode 100644 index b88e957d4..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/doc.base/meta/installscript.qs +++ /dev/null @@ -1,40 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - registerQtCreatorDocumentation(component, "%TARGET_INSTALL_DIR%"); -} - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/doc.base/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/doc.base/meta/package.xml deleted file mode 100644 index 0070b1c9e..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/doc.base/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>Qt %QT_VERSION% Documentation</DisplayName> - <Description>Qt %QT_VERSION% Documentation</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Script>installscript.qs</Script> - <Dependencies>qt.tools</Dependencies> - <Virtual>true</Virtual> - <SortingPriority>1</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/doc.split/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/doc.split/meta/installscript.qs deleted file mode 100644 index b88e957d4..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/doc.split/meta/installscript.qs +++ /dev/null @@ -1,40 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - registerQtCreatorDocumentation(component, "%TARGET_INSTALL_DIR%"); -} - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/doc.split/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/doc.split/meta/package.xml deleted file mode 100644 index 4729de7e5..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/doc.split/meta/package.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>Documentation for %QT_VERSION% components (%SPLIT_COMPONENT_PROJECT_NAME%)</DisplayName> - <Description>Documentation for %QT_VERSION% components (%SPLIT_COMPONENT_PROJECT_NAME%)</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Script>installscript.qs</Script> - <Virtual>true</Virtual> - <SortingPriority>1</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/examples.base/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/examples.base/meta/package.xml deleted file mode 100644 index da25e93b6..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/examples.base/meta/package.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>Qt %QT_VERSION% Examples</DisplayName> - <Description>Qt %QT_VERSION% Examples</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools</Dependencies> - <Virtual>true</Virtual> - <SortingPriority>1</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/examples.split/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/examples.split/meta/package.xml deleted file mode 100644 index a5b3e4fa7..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/examples.split/meta/package.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>Examples for %QT_VERSION% components (%SPLIT_COMPONENT_PROJECT_NAME%)</DisplayName> - <Description>Examples for %QT_VERSION% components (%SPLIT_COMPONENT_PROJECT_NAME%)</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Virtual>true</Virtual> - <SortingPriority>1</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/gcc_64/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/gcc_64/meta/installscript.qs deleted file mode 100644 index 6c75ddd64..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/gcc_64/meta/installscript.qs +++ /dev/null @@ -1,91 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ -} - -function isCommercialLicense() -{ - return installer.value("QT_LICENSE_TYPE").toUpperCase() == "ENTERPRISE"; -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - if (installer.value("os") == "x11") { - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - var qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake"; - addInitQtPatchOperation(component, "linux", qtPath, qmakeBinary, "qt5"); - - if (installer.value("SDKToolBinary") == "") - return; - - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} GCC 64bit", - "--type", "Qt4ProjectManager.QtVersion.Desktop", - "--qmake", qmakeBinary, - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - var kitName = component.name + "_kit"; - component.addOperation("Execute", - ["@SDKToolBinary@", "addKit", - "--id", kitName, - "--name", "Desktop Qt %{Qt:Version} GCC 64bit", - "--Ctoolchain", "x86-linux-generic-elf-64bit", - "--Cxxtoolchain", "x86-linux-generic-elf-64bit", - "--qt", component.name, - "--debuggerengine", "1", - "--devicetype", "Desktop", - "UNDOEXECUTE", - "@SDKToolBinary@", "rmKit", "--id", kitName]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "Qt-%QT_VERSION%"); - - // is this OpenSource installation? - if (!isCommercialLicense()) { - // patch qt edition - var qconfigFile = qtPath + "/mkspecs/qconfig.pri"; - component.addOperation("LineReplace", qconfigFile, "QT_EDITION =", "QT_EDITION = OpenSource" - } - } -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/gcc_64/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/gcc_64/meta/package.xml deleted file mode 100644 index e42826ade..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/gcc_64/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>Desktop gcc 64-bit</DisplayName> - <Description>Qt %QT_VERSION% Prebuilt Components for Desktop gcc 64-bit</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.%BASE_DEPENDENCY_PKG_NAME%.doc, qt.%BASE_DEPENDENCY_PKG_NAME%.examples</Dependencies> - <Default>false</Default> - <Script>installscript.qs</Script> - <SortingPriority>700</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/ios/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/ios/meta/installscript.qs deleted file mode 100644 index 4e7ac3053..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/ios/meta/installscript.qs +++ /dev/null @@ -1,83 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ -} - -function isCommercialLicense() -{ - return installer.value("QT_LICENSE_TYPE").toUpperCase() == "ENTERPRISE"; -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - var qmakeBinary = ""; - var platform = ""; - if (installer.value("os") == "mac") { - qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake"; - platform = "mac"; - } - - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - addInitQtPatchOperation(component, platform, qtPath, qmakeBinary, "emb-arm-qt5"); - - if (installer.value("SDKToolBinary") == "") - return; - - // add Qt into QtCreator - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} for iOS", - "--type", "Qt4ProjectManager.QtVersion.Ios", - "--qmake", qmakeBinary, - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "Qt-%QT_VERSION%"); - - // is this OpenSource installation? - if (!isCommercialLicense()) { - // patch qt edition - var qconfigFile = qtPath + "/mkspecs/qconfig.pri"; - component.addOperation("LineReplace", qconfigFile, "QT_EDITION =", "QT_EDITION = OpenSource" - } -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/ios/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/ios/meta/package.xml deleted file mode 100644 index 2a7a3c939..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/ios/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>iOS</DisplayName> - <Description>Qt %QT_VERSION% Prebuilt Components for iOS</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.%BASE_DEPENDENCY_PKG_NAME%.doc, qt.%BASE_DEPENDENCY_PKG_NAME%.examples</Dependencies> - <Default>false</Default> - <Script>installscript.qs</Script> - <SortingPriority>699</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/qnx6_armv7/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/qnx6_armv7/meta/installscript.qs deleted file mode 100644 index 2f35c3b39..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/qnx6_armv7/meta/installscript.qs +++ /dev/null @@ -1,100 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -var Dir = new function () { - this.toNativeSparator = function (path) { - if (installer.value("os") == "win") - return path.replace(/\//g, '\\'); - return path; - } -}; - -// constructor -function Component() -{ -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - var platform = ""; - var qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake"; - var sdpDirectoryPath = installer.value("QNX660_SDP_PATH"); - var sdpQnxToolsExtension = ""; - - if (installer.value("os") == "x11") { - platform = "linux"; - } - if (installer.value("os") == "win") { - platform = "windows"; - sdpQnxToolsExtension = ".exe"; - } - - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - addInitQtPatchOperation(component, platform, qtPath, Dir.toNativeSparator(qmakeBinary + sdpQnxToolsExtension), "emb-arm-qt5"); - - if (installer.value("SDKToolBinary") == "") - return; - - // add Qt to QtCreator - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} for QNX 6.6.0 armv7", - "--type", "Qt4ProjectManager.QtVersion.QNX.QNX", - "--qmake", Dir.toNativeSparator(qmakeBinary + sdpQnxToolsExtension), - "SDKPath", "QString:" + Dir.toNativeSparator(sdpDirectoryPath), - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - // add Kit to QtCreator - component.addOperation("Execute", - ["@SDKToolBinary@", "addKit", - "--id", component.name + ".kit", - "--name", "Qt %{Qt:Version} for QNX 6.6.0 armv7", - "--debuggerid", "opt_qnx660_debugger_armv7", - "--devicetype", "QnxOsType", - "--sysroot", Dir.toNativeSparator(sdpDirectoryPath + "/target/qnx6"), - "--toolchain", "Qnx.QccToolChain:opt_qnx660_qcc_armv7", - "--qt", component.name, - "--mkspec", "qnx-armle-v7-qcc", - "UNDOEXECUTE", - "@SDKToolBinary@", "rmKit", "--id", component.name + ".kit"]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "Qt-%QT_VERSION%"); -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/qnx6_armv7/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/qnx6_armv7/meta/package.xml deleted file mode 100644 index 4bab210f2..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/qnx6_armv7/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>QNX 6.6 armv7</DisplayName> - <Description>Qt %QT_VERSION% Prebuilt Components for QNX 6.6 armv7</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.qnx6.sdp.armv7, qt.%BASE_DEPENDENCY_PKG_NAME%.doc, qt.%BASE_DEPENDENCY_PKG_NAME%.examples</Dependencies> - <Default>false</Default> - <Script>installscript.qs</Script> - <SortingPriority>249</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/qnx6_x86/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/qnx6_x86/meta/installscript.qs deleted file mode 100644 index a2aa0b838..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/qnx6_x86/meta/installscript.qs +++ /dev/null @@ -1,112 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -var Dir = new function () { - this.toNativeSparator = function (path) { - if (installer.value("os") == "win") - return path.replace(/\//g, '\\'); - return path; - } -}; - -// constructor -function Component() -{ -} - -function isCommercialLicense() -{ - return installer.value("QT_LICENSE_TYPE").toUpperCase() == "ENTERPRISE"; -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - var platform = ""; - var qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake"; - var sdpDirectoryPath = installer.value("QNX660_SDP_PATH"); - var sdpQnxToolsExtension = ""; - - if (installer.value("os") == "x11") { - platform = "linux"; - } - if (installer.value("os") == "win") { - platform = "windows"; - sdpQnxToolsExtension = ".exe"; - } - - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - addInitQtPatchOperation(component, platform, qtPath, Dir.toNativeSparator(qmakeBinary + sdpQnxToolsExtension), "emb-arm-qt5"); - - if (installer.value("SDKToolBinary") == "") - return; - - // add Qt to QtCreator - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} for QNX 6.6.0 x86", - "--type", "Qt4ProjectManager.QtVersion.QNX.QNX", - "--qmake", Dir.toNativeSparator(qmakeBinary + sdpQnxToolsExtension), - "SDKPath", "QString:" + Dir.toNativeSparator(sdpDirectoryPath), - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - // add Kit to QtCreator - component.addOperation("Execute", - ["@SDKToolBinary@", "addKit", - "--id", component.name + ".kit", - "--name", "Qt %{Qt:Version} for QNX 6.6.0 x86", - "--debuggerid", "opt_qnx660_debugger_x86", - "--devicetype", "QnxOsType", - "--sysroot", Dir.toNativeSparator(sdpDirectoryPath + "/target/qnx6"), - "--toolchain", "Qnx.QccToolChain:opt_qnx660_qcc_x86", - "--qt", component.name, - "--mkspec", "qnx-x86-qcc", - "UNDOEXECUTE", - "@SDKToolBinary@", "rmKit", "--id", component.name + ".kit"]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "%QT_VERSION%"); - - // is this OpenSource installation? - if (!isCommercialLicense()) { - // patch qt edition - var qconfigFile = qtPath + "/mkspecs/qconfig.pri"; - component.addOperation("LineReplace", qconfigFile, "QT_EDITION =", "QT_EDITION = OpenSource" - } -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/qnx6_x86/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/qnx6_x86/meta/package.xml deleted file mode 100644 index 2a9f0df94..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/qnx6_x86/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>QNX 6.6 x86</DisplayName> - <Description>Qt %QT_VERSION% Prebuilt Components for QNX 6.6 x86</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.qnx6.sdp.x86, qt.%BASE_DEPENDENCY_PKG_NAME%.doc, qt.%BASE_DEPENDENCY_PKG_NAME%.examples</Dependencies> - <Default>false</Default> - <Script>installscript.qs</Script> - <SortingPriority>248</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/qt.qt_version/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/qt.qt_version/meta/installscript.qs deleted file mode 100644 index 27da5f0a0..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/qt.qt_version/meta/installscript.qs +++ /dev/null @@ -1,108 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ - // Determine if this is a online snapshot build - var snapshotBuild = false; - var isSnapshotStr = "%ONLINE_SNAPSHOT_BUILD%"; - if (['true', 'yes', '1'].indexOf(isSnapshotStr) >= 0) - snapshotBuild = true; - - if (snapshotBuild) { - // Indicate in DisplayName and Description that this is a snapshot build - var displayName = component.value("DisplayName"); - var description = component.value("Description"); - component.setValue("DisplayName", displayName + " %QT_RELEASE_TAG% snapshot (#%BUILD_NUMBER%)") - component.setValue("Description", description + " %QT_RELEASE_TAG% snapshot (#%BUILD_NUMBER%)") - } - - if ((installer.value("os") == "win") - && !installer.isOfflineOnly()) { - // Enable the right toolchains - var msvc2013 = !!installer.environmentVariable("VS120COMNTOOLS"); - var msvc2015 = !!installer.environmentVariable("VS140COMNTOOLS"); - - var android_armv7 = installer.componentByName("qt.qt5.5100.android_armv7"); - var msvc2015_winrt_armv7 = installer.componentByName("qt.qt5.5100.win64_msvc2015_winrt_armv7"); - var msvc2015_winrt_x64 = installer.componentByName("qt.qt5.5100.win64_msvc2015_winrt_x64"); - var msvc2015_winrt_x86 = installer.componentByName("qt.qt5.5100.win64_msvc2015_winrt_x86"); - - // first reset the latest Qt5.x.x package default values to false - installer.componentByName("qt.qt5.5100.win32_mingw53").setValue("Default", "false"); - installer.componentByName("qt.qt5.5100.win64_msvc2013_64").setValue("Default", "false"); - installer.componentByName("qt.qt5.5100.win32_msvc2015").setValue("Default", "false"); - installer.componentByName("qt.qt5.5100.win64_msvc2015_64").setValue("Default", "false"); - - if (android_armv7) - android_armv7.setValue("Default", "false"); - if (msvc2015_winrt_armv7) - msvc2015_winrt_armv7.setValue("Default", "false"); - if (msvc2015_winrt_x64) - msvc2015_winrt_x64.setValue("Default", "false"); - if (msvc2015_winrt_x86) - msvc2015_winrt_x86.setValue("Default", "false"); - - if (!snapshotBuild) { - // if 32bit windows hide the 64bit packages - if (installer.environmentVariable("ProgramFiles(x86)") == "" ) { - installer.componentByName("qt.qt5.5100.win64_msvc2013_64").setValue("Virtual", "true"); - installer.componentByName("qt.qt5.5100.win64_msvc2015_64").setValue("Virtual", "true"); - } - - // now try to determine which tool chains to select by default - if (msvc2013) { - // if 64bit machine - if (!(installer.environmentVariable("ProgramFiles(x86)") == "")) { - installer.componentByName("qt.qt5.5100.win64_msvc2013_64").setValue("Default", "true"); - } - } - if (msvc2015) { - // if 64bit machine - if (!(installer.environmentVariable("ProgramFiles(x86)") == "")) { - installer.componentByName("qt.qt5.5100.win64_msvc2015_64").setValue("Default", "true"); - } else { - installer.componentByName("qt.qt5.5100.win32_msvc2015").setValue("Default", "true"); - } - } - - // if no msvc toolkits detected, choose mingw by default - if (!msvc2013 && !msvc2015) { - installer.componentByName("qt.qt5.5100.win32_mingw53").setValue("Default", "true"); - } - } - } -} - - -Component.prototype.createOperations = function() -{ - component.createOperations(); -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/qt.qt_version/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/qt.qt_version/meta/package.xml deleted file mode 100644 index 57de19eda..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/qt.qt_version/meta/package.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>Qt %QT_VERSION%</DisplayName> - <Description>Qt %QT_VERSION%</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Script>installscript.qs</Script> - <SortingPriority>%QT_VERSION_PKG_SORTING_PRIO%</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/qt/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/qt/meta/installscript.qs deleted file mode 100644 index 31620ec94..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/qt/meta/installscript.qs +++ /dev/null @@ -1,39 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ - installer.setValue("QT_EDITION_NAME", "Qt %QT_VERSION%"); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/qt/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/qt/meta/package.xml deleted file mode 100644 index dd76a5831..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/qt/meta/package.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>Qt %QT_VERSION% %QT_VERSION_TAG%</DisplayName> - <Description>Qt %QT_VERSION% %QT_VERSION_TAG%</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Script>installscript.qs</Script> - <SortingPriority>0</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/split.basetemplate/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/split.basetemplate/meta/package.xml deleted file mode 100644 index 8a6595e48..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/split.basetemplate/meta/package.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>%SPLIT_COMPONENT_DISPLAY_NAME%</DisplayName> - <Description>%SPLIT_COMPONENT_DESCRIPTION%</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Default>false</Default> - <SortingPriority>89</SortingPriority> - <Dependencies>qt.%BASE_DEPENDENCY_PKG_NAME%.doc.%SPLIT_COMPONENT_PROJECT_NAME%, qt.%BASE_DEPENDENCY_PKG_NAME%.examples.%SPLIT_COMPONENT_PROJECT_NAME%</Dependencies> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/split.toolchain/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/split.toolchain/meta/installscript.qs deleted file mode 100644 index 57fcf8c40..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/split.toolchain/meta/installscript.qs +++ /dev/null @@ -1,61 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ -} - - -function resolveQt5EssentialsDependency() -{ - return "qt.%BASE_DEPENDENCY_PKG_NAME%.%TOOLCHAIN_PKG_NAME%" + "_qmakeoutput"; -} - - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - var platform = ""; - if (installer.value("os") == "x11") { - platform = "linux"; - } - if (installer.value("os") == "win") { - platform = "windows"; - } - if (installer.value("os") == "mac") { - platform = "mac"; - } - - component.addOperation("QtPatch", - platform, - "@TargetDir@" + "%TARGET_INSTALL_DIR%", - "QmakeOutputInstallerKey=" + resolveQt5EssentialsDependency(), - "%FILES_TO_PATCH_FILENAME%"); -} diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/split.toolchain/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/split.toolchain/meta/package.xml deleted file mode 100644 index 26098cf5f..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/split.toolchain/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>%SPLIT_COMPONENT_DISPLAY_NAME% (%TOOLCHAIN_PKG_NAME%)</DisplayName> - <Description></Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <AutoDependOn>qt.%BASE_DEPENDENCY_PKG_NAME%.%SPLIT_COMPONENT_PROJECT_NAME%, qt.%BASE_DEPENDENCY_PKG_NAME%.%TOOLCHAIN_PKG_NAME%</AutoDependOn> - <Dependencies>qt.%BASE_DEPENDENCY_PKG_NAME%.%TOOLCHAIN_PKG_NAME%</Dependencies> - <Virtual>true</Virtual> - <Script>installscript.qs</Script> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/src.base/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/src.base/meta/package.xml deleted file mode 100644 index f383d1314..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/src.base/meta/package.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>Sources</DisplayName> - <Description>Qt %QT_VERSION% Source Components</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <SortingPriority>100</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/src.collection.template/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/src.collection.template/meta/package.xml deleted file mode 100644 index 06a6f1dd8..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/src.collection.template/meta/package.xml +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>Qt %QT_VERSION% Collection for %COLLECTION_COMPONENT_NAME%</DisplayName> - <Description>Qt %QT_VERSION% Collection for %COLLECTION_COMPONENT_NAME%.</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>%COLLECTION_COMPONENT_DEPENDENCY_LIST%</Dependencies> - <Virtual>true</Virtual> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/src.split/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/src.split/meta/package.xml deleted file mode 100644 index 268631cb3..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/src.split/meta/package.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>Sources for %SPLIT_COMPONENT_PROJECT_NAME%</DisplayName> - <Description>Sources for %SPLIT_COMPONENT_PROJECT_NAME% %QT_VERSION%</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Virtual>true</Virtual> - <AutoDependOn>qt.%BASE_DEPENDENCY_PKG_NAME%.src</AutoDependOn> - <SortingPriority>8</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/template-conf b/packaging-tools/configurations/pkg_templates/generator/templates/template-conf deleted file mode 100644 index 3ab43df2a..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/template-conf +++ /dev/null @@ -1,30 +0,0 @@ -############################################################################# -## -## Copyright (C) 2017 The Qt Company Ltd. -## Contact: https://www.qt.io/licensing/ -## -## This file is part of the release tools of the Qt Toolkit. -## -## $QT_BEGIN_LICENSE:GPL-EXCEPT$ -## Commercial License Usage -## Licensees holding valid commercial Qt licenses may use this file in -## accordance with the commercial license agreement provided with the -## Software or, alternatively, in accordance with the terms contained in -## a written agreement between you and The Qt Company. For licensing terms -## and conditions see https://www.qt.io/terms-conditions. For further -## information use the contact form at https://www.qt.io/contact-us. -## -## GNU General Public License Usage -## Alternatively, this file may be used under the terms of the GNU -## General Public License version 3 as published by the Free Software -## Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -## included in the packaging of this file. Please review the following -## information to ensure the GNU General Public License requirements will -## be met: https://www.gnu.org/licenses/gpl-3.0.html. -## -## $QT_END_LICENSE$ -## -############################################################################# - - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win32_mingw53/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/win32_mingw53/meta/installscript.qs deleted file mode 100644 index 652b15d3c..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win32_mingw53/meta/installscript.qs +++ /dev/null @@ -1,144 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ -} - -function isCommercialLicense() -{ - return installer.value("QT_LICENSE_TYPE").toUpperCase() == "ENTERPRISE"; -} - -function createShortcuts() -{ - var qtStringVersion = "%QT_VERSION%"; - var minGwVersion = "5.3.0"; - - // Create a batch file with the development environment - var component_root_path = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - component_root_path = component_root_path.replace(/\//g, "\\"); - - var batchFileName = component_root_path + "\\" + "bin" + "\\" + "qtenv2.bat"; - var contentString = "@echo off\r\n"; - contentString += "echo Setting up environment for Qt usage...\r\n"; - contentString += "set PATH=" + component_root_path + "\\bin;" + installer.value("MINGW530_DIR") + "\\bin;%PATH%\r\n"; - contentString += "cd /D " + component_root_path + "\r\n"; - //contentString += "echo Remember to call vcvarsall.bat to complete environment setup!\r\n"; - // Dump batch file - component.addOperation("AppendFile", batchFileName, contentString); - - var windir = installer.environmentVariable("WINDIR"); - if (windir == "") { - QMessageBox["warning"]( "Error" , "Error", "Could not find windows installation directory"); - return; - } - - var cmdLocation = windir + "\\system32\\cmd.exe"; - component.addOperation( "CreateShortcut", - cmdLocation, - "@StartMenuDir@/" + qtStringVersion + "/MinGW " + minGwVersion + " (32-bit)/Qt " + qtStringVersion + " for Desktop (MinGW " + minGwVersion + " 32 bit).lnk", - "/A /Q /K " + batchFileName); - // Assistant - component.addOperation( "CreateShortcut", - component_root_path + "/bin/assistant.exe", - "@StartMenuDir@/" + qtStringVersion + "/MinGW " + minGwVersion + " (32-bit)/Assistant.lnk"); - - // Designer - component.addOperation( "CreateShortcut", - component_root_path + "/bin/designer.exe", - "@StartMenuDir@/" + qtStringVersion + "/MinGW " + minGwVersion + " (32-bit)/Designer.lnk"); - - // Linguist - component.addOperation( "CreateShortcut", - component_root_path + "/bin/linguist.exe", - "@StartMenuDir@/" + qtStringVersion + "/MinGW " + minGwVersion + " (32-bit)/Linguist.lnk"); -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - if (installer.value("os") == "win") { - try { - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - var qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake.exe"; - addInitQtPatchOperation(component, "windows", qtPath, qmakeBinary, "qt5"); - - // Create a batch file and shortcuts with the development environment - createShortcuts(); - - if (installer.value("SDKToolBinary") == "") - return; - - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} MinGW 32bit", - "--type", "Qt4ProjectManager.QtVersion.Desktop", - "--qmake", qmakeBinary, - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - var kitName = component.name + "_kit"; - component.addOperation("Execute", - ["@SDKToolBinary@", "addKit", - "--id", kitName, - "--name", "Desktop Qt %{Qt:Version} MinGW 32bit", - "--Ctoolchain", "@MINGW530_TCID@" + ".gcc", - "--Cxxtoolchain", "@MINGW530_TCID@" + ".g++", - "--qt", component.name, - "--debuggerid", "@MINGW530_DBGID@", - "--devicetype", "Desktop", - "UNDOEXECUTE", - "@SDKToolBinary@", "rmKit", "--id", kitName]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "Qt-%QT_VERSION%"); - - // is this OpenSource installation? - if (!isCommercialLicense()) { - // patch qt edition - var qconfigFile = qtPath + "/mkspecs/qconfig.pri"; - component.addOperation("LineReplace", qconfigFile, "QT_EDITION =", "QT_EDITION = OpenSource" - } - - } catch( e ) { - print( e ); - } - } -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win32_mingw53/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/win32_mingw53/meta/package.xml deleted file mode 100644 index 656fc67fc..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win32_mingw53/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>MinGW 5.3.0 32 bit</DisplayName> - <Description>Qt %QT_VERSION% Prebuilt Components for MinGW 5.3.0 32-bit</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.tools.win32_mingw530, qt.%BASE_DEPENDENCY_PKG_NAME%.doc, qt.%BASE_DEPENDENCY_PKG_NAME%.examples</Dependencies> - <Default>false</Default> - <Script>installscript.qs</Script> - <SortingPriority>590</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win32_msvc2013/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/win32_msvc2013/meta/installscript.qs deleted file mode 100644 index 025249083..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win32_msvc2013/meta/installscript.qs +++ /dev/null @@ -1,134 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ -} - -function createShortcuts() -{ - var qtStringVersion = "%QT_VERSION%"; - // Create a batch file with the development environment - var component_root_path = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - component_root_path = component_root_path.replace(/\//g, "\\"); - - var batchFileName = component_root_path + "\\" + "bin" + "\\" + "qtenv2.bat"; - var contentString = "@echo off\r\n"; - contentString += "echo Setting up environment for Qt usage...\r\n"; - contentString += "set PATH=" + component_root_path + "\\bin;%PATH%\r\n"; - contentString += "cd /D " + component_root_path + "\r\n"; - contentString += "echo Remember to call vcvarsall.bat to complete environment setup!\r\n"; - // Dump batch file - component.addOperation("AppendFile", batchFileName, contentString); - - var windir = installer.environmentVariable("WINDIR"); - if (windir == "") { - QMessageBox["warning"]( "Error" , "Error", "Could not find windows installation directory"); - return; - } - - var cmdLocation = windir + "\\system32\\cmd.exe"; - component.addOperation( "CreateShortcut", - cmdLocation, - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2013 (32-bit)/Qt " + qtStringVersion + " 32-bit for Desktop (MSVC 2013).lnk", - "/A /Q /K " + batchFileName); - // Assistant - component.addOperation( "CreateShortcut", - component_root_path + "/bin/assistant.exe", - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2013 (32-bit)/Assistant.lnk"); - - // Designer - component.addOperation( "CreateShortcut", - component_root_path + "/bin/designer.exe", - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2013 (32-bit)/Designer.lnk"); - - // Linguist - component.addOperation( "CreateShortcut", - component_root_path + "/bin/linguist.exe", - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2013 (32-bit)/Linguist.lnk"); -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - if (installer.value("os") == "win") { - try { - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - var qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake.exe"; - addInitQtPatchOperation(component, "windows", qtPath, qmakeBinary, "qt5"); - - // Create a batch file and shortcuts with the development environment - createShortcuts(); - - if (installer.value("SDKToolBinary") == "") - return; - - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} MSVC2013 32bit", - "--type", "Qt4ProjectManager.QtVersion.Desktop", - "--qmake", qmakeBinary, - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - var kitName = component.name + "_kit"; - component.addOperation("Execute", - ["@SDKToolBinary@", "addKit", - "--id", kitName, - "--name", "Desktop Qt %{Qt:Version} MSVC2013 32bit", - "--Ctoolchain", "x86-windows-msvc2013-pe-32bit", - "--Cxxtoolchain", "x86-windows-msvc2013-pe-32bit", - "--qt", component.name, - "--debuggerengine", "4", - "--devicetype", "Desktop", - "UNDOEXECUTE", - "@SDKToolBinary@", "rmKit", "--id", kitName]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "Qt-%QT_VERSION%"); - - // patch qt edition - var qconfigFile = qtPath + "/mkspecs/qconfig.pri"; - component.addOperation("LineReplace", qconfigFile, "QT_EDITION =", "QT_EDITION = OpenSource"); - - } catch( e ) { - print( e ); - } - } -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win32_msvc2013/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/win32_msvc2013/meta/package.xml deleted file mode 100644 index 6d78ecf66..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win32_msvc2013/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>msvc2013 32-bit</DisplayName> - <Description>Qt %QT_VERSION% Prebuilt Components for msvc2013 32-bit</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.%BASE_DEPENDENCY_PKG_NAME%.doc, qt.%BASE_DEPENDENCY_PKG_NAME%.examples</Dependencies> - <Default>false</Default> - <Script>installscript.qs</Script> - <SortingPriority>590</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win32_msvc2015/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/win32_msvc2015/meta/installscript.qs deleted file mode 100644 index 5dc860e99..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win32_msvc2015/meta/installscript.qs +++ /dev/null @@ -1,142 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ -} - -function isCommercialLicense() -{ - return installer.value("QT_LICENSE_TYPE").toUpperCase() == "ENTERPRISE"; -} - -function createShortcuts() -{ - var qtStringVersion = "%QT_VERSION%"; - // Create a batch file with the development environment - var component_root_path = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - component_root_path = component_root_path.replace(/\//g, "\\"); - - var batchFileName = component_root_path + "\\" + "bin" + "\\" + "qtenv2.bat"; - var contentString = "@echo off\r\n"; - contentString += "echo Setting up environment for Qt usage...\r\n"; - contentString += "set PATH=" + component_root_path + "\\bin;%PATH%\r\n"; - contentString += "cd /D " + component_root_path + "\r\n"; - contentString += "echo Remember to call vcvarsall.bat to complete environment setup!\r\n"; - // Dump batch file - component.addOperation("AppendFile", batchFileName, contentString); - - var windir = installer.environmentVariable("WINDIR"); - if (windir == "") { - QMessageBox["warning"]( "Error" , "Error", "Could not find windows installation directory"); - return; - } - - var cmdLocation = windir + "\\system32\\cmd.exe"; - component.addOperation( "CreateShortcut", - cmdLocation, - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2015 (32-bit)/Qt " + qtStringVersion + " 32-bit for Desktop (MSVC 2015).lnk", - "/A /Q /K " + batchFileName); - // Assistant - component.addOperation( "CreateShortcut", - component_root_path + "/bin/assistant.exe", - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2015 (32-bit)/Assistant.lnk"); - - // Designer - component.addOperation( "CreateShortcut", - component_root_path + "/bin/designer.exe", - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2015 (32-bit)/Designer.lnk"); - - // Linguist - component.addOperation( "CreateShortcut", - component_root_path + "/bin/linguist.exe", - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2015 (32-bit)/Linguist.lnk"); -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - if (installer.value("os") == "win") { - try { - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - var qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake.exe"; - addInitQtPatchOperation(component, "windows", qtPath, qmakeBinary, "qt5"); - - // Create a batch file and shortcuts with the development environment - createShortcuts(); - - if (installer.value("SDKToolBinary") == "") - return; - - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} MSVC2015 32bit", - "--type", "Qt4ProjectManager.QtVersion.Desktop", - "--qmake", qmakeBinary, - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - var kitName = component.name + "_kit"; - component.addOperation("Execute", - ["@SDKToolBinary@", "addKit", - "--id", kitName, - "--name", "Desktop Qt %{Qt:Version} MSVC2015 32bit", - "--Ctoolchain", "x86-windows-msvc2015-pe-32bit", - "--Cxxtoolchain", "x86-windows-msvc2015-pe-32bit", - "--qt", component.name, - "--debuggerengine", "4", - "--devicetype", "Desktop", - "UNDOEXECUTE", - "@SDKToolBinary@", "rmKit", "--id", kitName]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "Qt-%QT_VERSION%"); - - // is this OpenSource installation? - if (!isCommercialLicense()) { - // patch qt edition - var qconfigFile = qtPath + "/mkspecs/qconfig.pri"; - component.addOperation("LineReplace", qconfigFile, "QT_EDITION =", "QT_EDITION = OpenSource" - } - - } catch( e ) { - print( e ); - } - } -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win32_msvc2015/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/win32_msvc2015/meta/package.xml deleted file mode 100644 index ee91aa58a..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win32_msvc2015/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>msvc2015 32-bit</DisplayName> - <Description>Qt %QT_VERSION% Prebuilt Components for msvc2015 32-bit</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.%BASE_DEPENDENCY_PKG_NAME%.doc, qt.%BASE_DEPENDENCY_PKG_NAME%.examples</Dependencies> - <Default>false</Default> - <Script>installscript.qs</Script> - <SortingPriority>588</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2013_64/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2013_64/meta/installscript.qs deleted file mode 100644 index eaa290937..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2013_64/meta/installscript.qs +++ /dev/null @@ -1,142 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ -} - -function isCommercialLicense() -{ - return installer.value("QT_LICENSE_TYPE").toUpperCase() == "ENTERPRISE"; -} - -function createShortcuts() -{ - var qtStringVersion = "%QT_VERSION%"; - // Create a batch file with the development environment - var component_root_path = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - component_root_path = component_root_path.replace(/\//g, "\\"); - - var batchFileName = component_root_path + "\\" + "bin" + "\\" + "qtenv2.bat"; - var contentString = "@echo off\r\n"; - contentString += "echo Setting up environment for Qt usage...\r\n"; - contentString += "set PATH=" + component_root_path + "\\bin;%PATH%\r\n"; - contentString += "cd /D " + component_root_path + "\r\n"; - contentString += "echo Remember to call vcvarsall.bat to complete environment setup!\r\n"; - // Dump batch file - component.addOperation("AppendFile", batchFileName, contentString); - - var windir = installer.environmentVariable("WINDIR"); - if (windir == "") { - QMessageBox["warning"]( "Error" , "Error", "Could not find windows installation directory"); - return; - } - - var cmdLocation = windir + "\\system32\\cmd.exe"; - component.addOperation( "CreateShortcut", - cmdLocation, - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2013 (64-bit)/Qt " + qtStringVersion + " 64-bit for Desktop (MSVC 2013).lnk", - "/A /Q /K " + batchFileName); - // Assistant - component.addOperation( "CreateShortcut", - component_root_path + "/bin/assistant.exe", - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2013 (64-bit)/Assistant.lnk"); - - // Designer - component.addOperation( "CreateShortcut", - component_root_path + "/bin/designer.exe", - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2013 (64-bit)/Designer.lnk"); - - // Linguist - component.addOperation( "CreateShortcut", - component_root_path + "/bin/linguist.exe", - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2013 (64-bit)/Linguist.lnk"); -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - if (installer.value("os") == "win") { - try { - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - var qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake.exe"; - addInitQtPatchOperation(component, "windows", qtPath, qmakeBinary, "qt5"); - - // Create a batch file and shortcuts with the development environment - createShortcuts(); - - if (installer.value("SDKToolBinary") == "") - return; - - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} MSVC2013 64bit", - "--type", "Qt4ProjectManager.QtVersion.Desktop", - "--qmake", qmakeBinary, - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - var kitName = component.name + "_kit"; - component.addOperation("Execute", - ["@SDKToolBinary@", "addKit", - "--id", kitName, - "--name", "Desktop Qt %{Qt:Version} MSVC2013 64bit", - "--Ctoolchain", "x86-windows-msvc2013-pe-64bit", - "--Cxxtoolchain", "x86-windows-msvc2013-pe-64bit", - "--qt", component.name, - "--debuggerengine", "4", - "--devicetype", "Desktop", - "UNDOEXECUTE", - "@SDKToolBinary@", "rmKit", "--id", kitName]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "Qt-%QT_VERSION%"); - - // is this OpenSource installation? - if (!isCommercialLicense()) { - // patch qt edition - var qconfigFile = qtPath + "/mkspecs/qconfig.pri"; - component.addOperation("LineReplace", qconfigFile, "QT_EDITION =", "QT_EDITION = OpenSource" - } - - } catch( e ) { - print( e ); - } - } -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2013_64/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2013_64/meta/package.xml deleted file mode 100644 index 209272f5d..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2013_64/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>msvc2013 64-bit</DisplayName> - <Description>Qt %QT_VERSION% Prebuilt Components for msvc2013 64-bit</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.%BASE_DEPENDENCY_PKG_NAME%.doc, qt.%BASE_DEPENDENCY_PKG_NAME%.examples</Dependencies> - <Default>false</Default> - <Script>installscript.qs</Script> - <SortingPriority>588</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2013_winphone_arm/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2013_winphone_arm/meta/installscript.qs deleted file mode 100644 index 84c01ba16..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2013_winphone_arm/meta/installscript.qs +++ /dev/null @@ -1,133 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ -} - -function isCommercialLicense() -{ - return installer.value("QT_LICENSE_TYPE").toUpperCase() == "ENTERPRISE"; -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -function createShortcuts() -{ - var qtStringVersion = "%QT_VERSION%"; - // Create a batch file with the development environment - var component_root_path = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - component_root_path = component_root_path.replace(/\//g, "\\"); - - var batchFileName = component_root_path + "\\" + "bin" + "\\" + "qtenv2.bat"; - var contentString = "@echo off\r\n"; - contentString += "echo Setting up environment for Qt usage...\r\n"; - contentString += "set PATH=" + component_root_path + "\\bin;%PATH%\r\n"; - contentString += "cd /D " + component_root_path + "\r\n"; - contentString += "echo Remember to call vcvarsall.bat to complete environment setup!\r\n"; - // Dump batch file - component.addOperation("AppendFile", batchFileName, contentString); - - var windir = installer.environmentVariable("WINDIR"); - if (windir == "") { - QMessageBox["warning"]( "Error" , "Error", "Could not find windows installation directory"); - return; - } - - var cmdLocation = windir + "\\system32\\cmd.exe"; - component.addOperation( "CreateShortcut", - cmdLocation, - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2013 (32-bit)/Qt " + qtStringVersion + " 32-bit for Windows Phone arm (MSVC 2013).lnk", - "/A /Q /K " + batchFileName); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - if (installer.value("os") == "win") { - try { - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - var qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake.exe"; - addInitQtPatchOperation(component, "windows", qtPath, qmakeBinary, "emb-arm-qt5"); - - // Create a batch file and shortcuts with the development environment - createShortcuts(); - - if (installer.value("SDKToolBinary") == "") - return; - - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} for Windows Phone arm", - "--type", "WinRt.QtVersion.WindowsPhone", - "--qmake", qmakeBinary, - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - var kitName = component.name + "_kit"; - component.addOperation("Execute", - ["@SDKToolBinary@", "addKit", - "--id", kitName, - "--name", "Qt %{Qt:Version} for Windows Phone arm MSVC2013 32bit", - "--toolchain", "arm-windows-msvc2013-pe-32bit", - "--qt", component.name, - "--devicetype", "WinRt.Device.Phone", - "UNDOEXECUTE", - "@SDKToolBinary@", "rmKit", "--id", kitName]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "Qt-%QT_VERSION%"); - - // is this OpenSource installation? - if (!isCommercialLicense()) { - // patch qt edition - var qconfigFile = qtPath + "/mkspecs/qconfig.pri"; - component.addOperation("LineReplace", qconfigFile, "QT_EDITION =", "QT_EDITION = OpenSource" - } - - } catch( e ) { - print( e ); - } - if (installer.value("os") == "win") { - var settingsFile = installer.value("QtCreatorInstallerSettingsFile"); - if (settingsFile == "") - return; - component.addOperation("Settings", "path="+settingsFile, "method=add_array_value", - "key=Plugins/ForceEnabled", "value=WinRt"); - } - } -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2013_winphone_arm/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2013_winphone_arm/meta/package.xml deleted file mode 100644 index be202b83b..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2013_winphone_arm/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>Windows Phone ARM (MSVC2013)</DisplayName> - <Description>License options: LGPLv3, GPLv2.0 or later, Commercial<br><br>NOTE: Not licensed under LGPLv2.1<br><br>Qt %QT_VERSION% Prebuilt Components for Windows Phone ARM</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.%BASE_DEPENDENCY_PKG_NAME%.doc, qt.%BASE_DEPENDENCY_PKG_NAME%.examples</Dependencies> - <Default>true</Default> - <Script>installscript.qs</Script> - <SortingPriority>560</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2013_winphone_x86/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2013_winphone_x86/meta/installscript.qs deleted file mode 100644 index c90e7643c..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2013_winphone_x86/meta/installscript.qs +++ /dev/null @@ -1,133 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ -} - -function isCommercialLicense() -{ - return installer.value("QT_LICENSE_TYPE").toUpperCase() == "ENTERPRISE"; -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -function createShortcuts() -{ - var qtStringVersion = "%QT_VERSION%"; - // Create a batch file with the development environment - var component_root_path = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - component_root_path = component_root_path.replace(/\//g, "\\"); - - var batchFileName = component_root_path + "\\" + "bin" + "\\" + "qtenv2.bat"; - var contentString = "@echo off\r\n"; - contentString += "echo Setting up environment for Qt usage...\r\n"; - contentString += "set PATH=" + component_root_path + "\\bin;%PATH%\r\n"; - contentString += "cd /D " + component_root_path + "\r\n"; - contentString += "echo Remember to call vcvarsall.bat to complete environment setup!\r\n"; - // Dump batch file - component.addOperation("AppendFile", batchFileName, contentString); - - var windir = installer.environmentVariable("WINDIR"); - if (windir == "") { - QMessageBox["warning"]( "Error" , "Error", "Could not find windows installation directory"); - return; - } - - var cmdLocation = windir + "\\system32\\cmd.exe"; - component.addOperation( "CreateShortcut", - cmdLocation, - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2013 (32-bit)/Qt " + qtStringVersion + " 32-bit for Windows Phone x86 (MSVC 2013).lnk", - "/A /Q /K " + batchFileName); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - if (installer.value("os") == "win") { - try { - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - var qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake.exe"; - addInitQtPatchOperation(component, "windows", qtPath, qmakeBinary, "qt5"); - - // Create a batch file and shortcuts with the development environment - createShortcuts(); - - if (installer.value("SDKToolBinary") == "") - return; - - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} for Windows Phone x86 (Emulator)", - "--type", "WinRt.QtVersion.WindowsPhone", - "--qmake", qmakeBinary, - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - var kitName = component.name + "_kit"; - component.addOperation("Execute", - ["@SDKToolBinary@", "addKit", - "--id", kitName, - "--name", "Qt %{Qt:Version} for Windows Phone x86 MSVC2013 32bit (Emulator)", - "--toolchain", "x86-windows-msvc2013-pe-32bit", - "--qt", component.name, - "--devicetype", "WinRt.Device.Emulator", - "UNDOEXECUTE", - "@SDKToolBinary@", "rmKit", "--id", kitName]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "Qt-%QT_VERSION%"); - - // is this OpenSource installation? - if (!isCommercialLicense()) { - // patch qt edition - var qconfigFile = qtPath + "/mkspecs/qconfig.pri"; - component.addOperation("LineReplace", qconfigFile, "QT_EDITION =", "QT_EDITION = OpenSource" - } - - } catch( e ) { - print( e ); - } - if (installer.value("os") == "win") { - var settingsFile = installer.value("QtCreatorInstallerSettingsFile"); - if (settingsFile == "") - return; - component.addOperation("Settings", "path="+settingsFile, "method=add_array_value", - "key=Plugins/ForceEnabled", "value=WinRt"); - } - } -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2013_winphone_x86/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2013_winphone_x86/meta/package.xml deleted file mode 100644 index e7b597c4a..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2013_winphone_x86/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>Windows Phone x86 (MSVC2013)</DisplayName> - <Description>License options: LGPLv3, GPLv2.0 or later, Commercial<br><br>NOTE: Not licensed under LGPLv2.1<br><br>Qt %QT_VERSION% Prebuilt Components for Windows Phone x86 Emulator</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.%BASE_DEPENDENCY_PKG_NAME%.doc, qt.%BASE_DEPENDENCY_PKG_NAME%.examples</Dependencies> - <Default>true</Default> - <Script>installscript.qs</Script> - <SortingPriority>560</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_64/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_64/meta/installscript.qs deleted file mode 100644 index 8ee038fb0..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_64/meta/installscript.qs +++ /dev/null @@ -1,142 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ -} - -function isCommercialLicense() -{ - return installer.value("QT_LICENSE_TYPE").toUpperCase() == "ENTERPRISE"; -} - -function createShortcuts() -{ - var qtStringVersion = "%QT_VERSION%"; - // Create a batch file with the development environment - var component_root_path = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - component_root_path = component_root_path.replace(/\//g, "\\"); - - var batchFileName = component_root_path + "\\" + "bin" + "\\" + "qtenv2.bat"; - var contentString = "@echo off\r\n"; - contentString += "echo Setting up environment for Qt usage...\r\n"; - contentString += "set PATH=" + component_root_path + "\\bin;%PATH%\r\n"; - contentString += "cd /D " + component_root_path + "\r\n"; - contentString += "echo Remember to call vcvarsall.bat to complete environment setup!\r\n"; - // Dump batch file - component.addOperation("AppendFile", batchFileName, contentString); - - var windir = installer.environmentVariable("WINDIR"); - if (windir == "") { - QMessageBox["warning"]( "Error" , "Error", "Could not find windows installation directory"); - return; - } - - var cmdLocation = windir + "\\system32\\cmd.exe"; - component.addOperation( "CreateShortcut", - cmdLocation, - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2015 (64-bit)/Qt " + qtStringVersion + " 64-bit for Desktop (MSVC 2015).lnk", - "/A /Q /K " + batchFileName); - // Assistant - component.addOperation( "CreateShortcut", - component_root_path + "/bin/assistant.exe", - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2015 (64-bit)/Assistant.lnk"); - - // Designer - component.addOperation( "CreateShortcut", - component_root_path + "/bin/designer.exe", - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2015 (64-bit)/Designer.lnk"); - - // Linguist - component.addOperation( "CreateShortcut", - component_root_path + "/bin/linguist.exe", - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2015 (64-bit)/Linguist.lnk"); -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - if (installer.value("os") == "win") { - try { - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - var qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake.exe"; - addInitQtPatchOperation(component, "windows", qtPath, qmakeBinary, "qt5"); - - // Create a batch file and shortcuts with the development environment - createShortcuts(); - - if (installer.value("SDKToolBinary") == "") - return; - - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} MSVC2015 64bit", - "--type", "Qt4ProjectManager.QtVersion.Desktop", - "--qmake", qmakeBinary, - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - var kitName = component.name + "_kit"; - component.addOperation("Execute", - ["@SDKToolBinary@", "addKit", - "--id", kitName, - "--name", "Desktop Qt %{Qt:Version} MSVC2015 64bit", - "--Ctoolchain", "x86-windows-msvc2015-pe-64bit", - "--Cxxtoolchain", "x86-windows-msvc2015-pe-64bit", - "--qt", component.name, - "--debuggerengine", "4", - "--devicetype", "Desktop", - "UNDOEXECUTE", - "@SDKToolBinary@", "rmKit", "--id", kitName]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "Qt-%QT_VERSION%"); - - // is this OpenSource installation? - if (!isCommercialLicense()) { - // patch qt edition - var qconfigFile = qtPath + "/mkspecs/qconfig.pri"; - component.addOperation("LineReplace", qconfigFile, "QT_EDITION =", "QT_EDITION = OpenSource" - } - - } catch( e ) { - print( e ); - } - } -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_64/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_64/meta/package.xml deleted file mode 100644 index 94a489f9e..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_64/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>msvc2015 64-bit</DisplayName> - <Description>Qt %QT_VERSION% Prebuilt Components for msvc2015 64-bit</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.%BASE_DEPENDENCY_PKG_NAME%.doc, qt.%BASE_DEPENDENCY_PKG_NAME%.examples</Dependencies> - <Default>false</Default> - <Script>installscript.qs</Script> - <SortingPriority>588</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_winrt_armv7/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_winrt_armv7/meta/installscript.qs deleted file mode 100644 index 91b85cc7f..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_winrt_armv7/meta/installscript.qs +++ /dev/null @@ -1,134 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ -} - -function isCommercialLicense() -{ - return installer.value("QT_LICENSE_TYPE").toUpperCase() == "ENTERPRISE"; -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -function createShortcuts() -{ - var qtStringVersion = "%QT_VERSION%"; - // Create a batch file with the development environment - var component_root_path = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - component_root_path = component_root_path.replace(/\//g, "\\"); - - var batchFileName = component_root_path + "\\" + "bin" + "\\" + "qtenv2.bat"; - var contentString = "@echo off\r\n"; - contentString += "echo Setting up environment for Qt usage...\r\n"; - contentString += "set PATH=" + component_root_path + "\\bin;%PATH%\r\n"; - contentString += "cd /D " + component_root_path + "\r\n"; - contentString += "echo Remember to call vcvarsall.bat to complete environment setup!\r\n"; - // Dump batch file - component.addOperation("AppendFile", batchFileName, contentString); - - var windir = installer.environmentVariable("WINDIR"); - if (windir == "") { - QMessageBox["warning"]( "Error" , "Error", "Could not find windows installation directory"); - return; - } - - var cmdLocation = windir + "\\system32\\cmd.exe"; - component.addOperation( "CreateShortcut", - cmdLocation, - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2015 (64-bit)/Qt " + qtStringVersion + " 64-bit for Universal Windows Platform armv7 (MSVC 2015).lnk", - "/A /Q /K " + batchFileName); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - if (installer.value("os") == "win") { - try { - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - var qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake.exe"; - addInitQtPatchOperation(component, "windows", qtPath, qmakeBinary, "emb-arm-qt5"); - - // Create a batch file and shortcuts with the development environment - createShortcuts(); - - if (installer.value("SDKToolBinary") == "") - return; - - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} for UWP armv7 (MSVC 2015)", - "--type", "WinRt.QtVersion.WindowsRuntime", - "--qmake", qmakeBinary, - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - var kitName = component.name + "_kit"; - component.addOperation("Execute", - ["@SDKToolBinary@", "addKit", - "--id", kitName, - "--name", "Qt %{Qt:Version} for UWP armv7 (MSVC 2015)", - "--Ctoolchain", "arm-windows-msvc2015-pe-32bit", - "--Cxxtoolchain", "arm-windows-msvc2015-pe-32bit", - "--qt", component.name, - "--devicetype", "WinRt.Device.Phone", - "UNDOEXECUTE", - "@SDKToolBinary@", "rmKit", "--id", kitName]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "Qt-%QT_VERSION%"); - - // is this OpenSource installation? - if (!isCommercialLicense()) { - // patch qt edition - var qconfigFile = qtPath + "/mkspecs/qconfig.pri"; - component.addOperation("LineReplace", qconfigFile, "QT_EDITION =", "QT_EDITION = OpenSource" - } - - } catch( e ) { - print( e ); - } - if (installer.value("os") == "win") { - var settingsFile = installer.value("QtCreatorInstallerSettingsFile"); - if (settingsFile == "") - return; - component.addOperation("Settings", "path="+settingsFile, "method=add_array_value", - "key=Plugins/ForceEnabled", "value=WinRt"); - } - } -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_winrt_armv7/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_winrt_armv7/meta/package.xml deleted file mode 100644 index 606d0f012..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_winrt_armv7/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>UWP armv7 (MSVC2015)</DisplayName> - <Description>Qt %QT_VERSION% Prebuilt Components for Universal Windows Platform</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.%BASE_DEPENDENCY_PKG_NAME%.doc, qt.%BASE_DEPENDENCY_PKG_NAME%.examples</Dependencies> - <Default>false</Default> - <Script>installscript.qs</Script> - <SortingPriority>590</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_winrt_x64/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_winrt_x64/meta/installscript.qs deleted file mode 100644 index 2cb52672e..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_winrt_x64/meta/installscript.qs +++ /dev/null @@ -1,135 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ -} - -function isCommercialLicense() -{ - return installer.value("QT_LICENSE_TYPE").toUpperCase() == "ENTERPRISE"; -} - -function createShortcuts() -{ - var qtStringVersion = "%QT_VERSION%"; - // Create a batch file with the development environment - var component_root_path = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - component_root_path = component_root_path.replace(/\//g, "\\"); - - var batchFileName = component_root_path + "\\" + "bin" + "\\" + "qtenv2.bat"; - var contentString = "@echo off\r\n"; - contentString += "echo Setting up environment for Qt usage...\r\n"; - contentString += "set PATH=" + component_root_path + "\\bin;%PATH%\r\n"; - contentString += "cd /D " + component_root_path + "\r\n"; - contentString += "echo Remember to call vcvarsall.bat to complete environment setup!\r\n"; - // Dump batch file - component.addOperation("AppendFile", batchFileName, contentString); - - var windir = installer.environmentVariable("WINDIR"); - if (windir == "") { - QMessageBox["warning"]( "Error" , "Error", "Could not find windows installation directory"); - return; - } - - var cmdLocation = windir + "\\system32\\cmd.exe"; - component.addOperation( "CreateShortcut", - cmdLocation, - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2015 (64-bit)/Qt " + qtStringVersion + " 64-bit for Universal Windows Platform (MSVC 2015).lnk", - "/A /Q /K " + batchFileName); -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - if (installer.value("os") == "win") { - try { - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - var qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake.exe"; - addInitQtPatchOperation(component, "windows", qtPath, qmakeBinary, "emb-arm-qt5"); - - // Create a batch file and shortcuts with the development environment - createShortcuts(); - - if (installer.value("SDKToolBinary") == "") - return; - - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} for UWP 64bit (MSVC 2015)", - "--type", "WinRt.QtVersion.WindowsRuntime", - "--qmake", qmakeBinary, - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - var kitName = component.name + "_kit"; - component.addOperation("Execute", - ["@SDKToolBinary@", "addKit", - "--id", kitName, - "--name", "Qt %{Qt:Version} for UWP 64bit (MSVC 2015)", - "--Ctoolchain", "x86-windows-msvc2015-pe-64bit", - "--Cxxtoolchain", "x86-windows-msvc2015-pe-64bit", - "--qt", component.name, - "--debuggerengine", "4", - "--devicetype", "WinRt.Device.Local", - "UNDOEXECUTE", - "@SDKToolBinary@", "rmKit", "--id", kitName]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "Qt-%QT_VERSION%"); - - // is this OpenSource installation? - if (!isCommercialLicense()) { - // patch qt edition - var qconfigFile = qtPath + "/mkspecs/qconfig.pri"; - component.addOperation("LineReplace", qconfigFile, "QT_EDITION =", "QT_EDITION = OpenSource" - } - - } catch( e ) { - print( e ); - } - if (installer.value("os") == "win") { - var settingsFile = installer.value("QtCreatorInstallerSettingsFile"); - if (settingsFile == "") - return; - component.addOperation("Settings", "path="+settingsFile, "method=add_array_value", - "key=Plugins/ForceEnabled", "value=WinRt"); - } - } -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_winrt_x64/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_winrt_x64/meta/package.xml deleted file mode 100644 index 7c465290c..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_winrt_x64/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>UWP x64 (MSVC2015)</DisplayName> - <Description>Qt %QT_VERSION% Prebuilt Components for Universal Windows Platform</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.%BASE_DEPENDENCY_PKG_NAME%.doc, qt.%BASE_DEPENDENCY_PKG_NAME%.examples</Dependencies> - <Default>false</Default> - <Script>installscript.qs</Script> - <SortingPriority>590</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_winrt_x86/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_winrt_x86/meta/installscript.qs deleted file mode 100644 index 3bbb50fd7..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_winrt_x86/meta/installscript.qs +++ /dev/null @@ -1,135 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ -} - -function isCommercialLicense() -{ - return installer.value("QT_LICENSE_TYPE").toUpperCase() == "ENTERPRISE"; -} - -function createShortcuts() -{ - var qtStringVersion = "%QT_VERSION%"; - // Create a batch file with the development environment - var component_root_path = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - component_root_path = component_root_path.replace(/\//g, "\\"); - - var batchFileName = component_root_path + "\\" + "bin" + "\\" + "qtenv2.bat"; - var contentString = "@echo off\r\n"; - contentString += "echo Setting up environment for Qt usage...\r\n"; - contentString += "set PATH=" + component_root_path + "\\bin;%PATH%\r\n"; - contentString += "cd /D " + component_root_path + "\r\n"; - contentString += "echo Remember to call vcvarsall.bat to complete environment setup!\r\n"; - // Dump batch file - component.addOperation("AppendFile", batchFileName, contentString); - - var windir = installer.environmentVariable("WINDIR"); - if (windir == "") { - QMessageBox["warning"]( "Error" , "Error", "Could not find windows installation directory"); - return; - } - - var cmdLocation = windir + "\\system32\\cmd.exe"; - component.addOperation( "CreateShortcut", - cmdLocation, - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2015 (64-bit)/Qt " + qtStringVersion + " 64-bit for Universal Windows Platform 32bit (MSVC 2015).lnk", - "/A /Q /K " + batchFileName); -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - if (installer.value("os") == "win") { - try { - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - var qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake.exe"; - addInitQtPatchOperation(component, "windows", qtPath, qmakeBinary, "emb-arm-qt5"); - - // Create a batch file and shortcuts with the development environment - createShortcuts(); - - if (installer.value("SDKToolBinary") == "") - return; - - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} for UWP 32bit (MSVC 2015)", - "--type", "WinRt.QtVersion.WindowsRuntime", - "--qmake", qmakeBinary, - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - var kitName = component.name + "_kit"; - component.addOperation("Execute", - ["@SDKToolBinary@", "addKit", - "--id", kitName, - "--name", "Qt %{Qt:Version} for UWP 32bit (MSVC 2015)", - "--Ctoolchain", "x86-windows-msvc2015-pe-32bit", - "--Cxxtoolchain", "x86-windows-msvc2015-pe-32bit", - "--qt", component.name, - "--debuggerengine", "4", - "--devicetype", "WinRt.Device.Local", - "UNDOEXECUTE", - "@SDKToolBinary@", "rmKit", "--id", kitName]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "Qt-%QT_VERSION%"); - - // is this OpenSource installation? - if (!isCommercialLicense()) { - // patch qt edition - var qconfigFile = qtPath + "/mkspecs/qconfig.pri"; - component.addOperation("LineReplace", qconfigFile, "QT_EDITION =", "QT_EDITION = OpenSource" - } - - } catch( e ) { - print( e ); - } - if (installer.value("os") == "win") { - var settingsFile = installer.value("QtCreatorInstallerSettingsFile"); - if (settingsFile == "") - return; - component.addOperation("Settings", "path="+settingsFile, "method=add_array_value", - "key=Plugins/ForceEnabled", "value=WinRt"); - } - } -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_winrt_x86/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_winrt_x86/meta/package.xml deleted file mode 100644 index 12dd8bef4..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2015_winrt_x86/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>UWP x86 (MSVC2015)</DisplayName> - <Description>Qt %QT_VERSION% Prebuilt Components for Universal Windows Platform</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.%BASE_DEPENDENCY_PKG_NAME%.doc, qt.%BASE_DEPENDENCY_PKG_NAME%.examples</Dependencies> - <Default>false</Default> - <Script>installscript.qs</Script> - <SortingPriority>590</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_64/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_64/meta/installscript.qs deleted file mode 100644 index 07b0c601f..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_64/meta/installscript.qs +++ /dev/null @@ -1,142 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ -} - -function isCommercialLicense() -{ - return installer.value("QT_LICENSE_TYPE").toUpperCase() == "ENTERPRISE"; -} - -function createShortcuts() -{ - var qtStringVersion = "%QT_VERSION%"; - // Create a batch file with the development environment - var component_root_path = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - component_root_path = component_root_path.replace(/\//g, "\\"); - - var batchFileName = component_root_path + "\\" + "bin" + "\\" + "qtenv2.bat"; - var contentString = "@echo off\r\n"; - contentString += "echo Setting up environment for Qt usage...\r\n"; - contentString += "set PATH=" + component_root_path + "\\bin;%PATH%\r\n"; - contentString += "cd /D " + component_root_path + "\r\n"; - contentString += "echo Remember to call vcvarsall.bat to complete environment setup!\r\n"; - // Dump batch file - component.addOperation("AppendFile", batchFileName, contentString); - - var windir = installer.environmentVariable("WINDIR"); - if (windir == "") { - QMessageBox["warning"]( "Error" , "Error", "Could not find windows installation directory"); - return; - } - - var cmdLocation = windir + "\\system32\\cmd.exe"; - component.addOperation( "CreateShortcut", - cmdLocation, - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2017 (64-bit)/Qt " + qtStringVersion + " 64-bit for Desktop (MSVC 2017).lnk", - "/A /Q /K " + batchFileName); - // Assistant - component.addOperation( "CreateShortcut", - component_root_path + "/bin/assistant.exe", - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2017 (64-bit)/Assistant.lnk"); - - // Designer - component.addOperation( "CreateShortcut", - component_root_path + "/bin/designer.exe", - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2017 (64-bit)/Designer.lnk"); - - // Linguist - component.addOperation( "CreateShortcut", - component_root_path + "/bin/linguist.exe", - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2017 (64-bit)/Linguist.lnk"); -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - if (installer.value("os") == "win") { - try { - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - var qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake.exe"; - addInitQtPatchOperation(component, "windows", qtPath, qmakeBinary, "qt5"); - - // Create a batch file and shortcuts with the development environment - createShortcuts(); - - if (installer.value("SDKToolBinary") == "") - return; - - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} MSVC2017 64bit", - "--type", "Qt4ProjectManager.QtVersion.Desktop", - "--qmake", qmakeBinary, - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - var kitName = component.name + "_kit"; - component.addOperation("Execute", - ["@SDKToolBinary@", "addKit", - "--id", kitName, - "--name", "Desktop Qt %{Qt:Version} MSVC2017 64bit", - "--Ctoolchain", "x86-windows-msvc2017-pe-64bit", - "--Cxxtoolchain", "x86-windows-msvc2017-pe-64bit", - "--qt", component.name, - "--debuggerengine", "4", - "--devicetype", "Desktop", - "UNDOEXECUTE", - "@SDKToolBinary@", "rmKit", "--id", kitName]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "Qt-%QT_VERSION%"); - - // is this OpenSource installation? - if (!isCommercialLicense()) { - // patch qt edition - var qconfigFile = qtPath + "/mkspecs/qconfig.pri"; - component.addOperation("LineReplace", qconfigFile, "QT_EDITION =", "QT_EDITION = OpenSource" - } - - } catch( e ) { - print( e ); - } - } -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_64/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_64/meta/package.xml deleted file mode 100644 index 60a45de77..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_64/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>msvc2017 64-bit</DisplayName> - <Description>Qt %QT_VERSION% Prebuilt Components for msvc2017 64-bit</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.%BASE_DEPENDENCY_PKG_NAME%.doc, qt.%BASE_DEPENDENCY_PKG_NAME%.examples</Dependencies> - <Default>false</Default> - <Script>installscript.qs</Script> - <SortingPriority>588</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_winrt_armv7/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_winrt_armv7/meta/installscript.qs deleted file mode 100644 index 118bc583c..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_winrt_armv7/meta/installscript.qs +++ /dev/null @@ -1,134 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ -} - -function isCommercialLicense() -{ - return installer.value("QT_LICENSE_TYPE").toUpperCase() == "ENTERPRISE"; -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -function createShortcuts() -{ - var qtStringVersion = "%QT_VERSION%"; - // Create a batch file with the development environment - var component_root_path = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - component_root_path = component_root_path.replace(/\//g, "\\"); - - var batchFileName = component_root_path + "\\" + "bin" + "\\" + "qtenv2.bat"; - var contentString = "@echo off\r\n"; - contentString += "echo Setting up environment for Qt usage...\r\n"; - contentString += "set PATH=" + component_root_path + "\\bin;%PATH%\r\n"; - contentString += "cd /D " + component_root_path + "\r\n"; - contentString += "echo Remember to call vcvarsall.bat to complete environment setup!\r\n"; - // Dump batch file - component.addOperation("AppendFile", batchFileName, contentString); - - var windir = installer.environmentVariable("WINDIR"); - if (windir == "") { - QMessageBox["warning"]( "Error" , "Error", "Could not find windows installation directory"); - return; - } - - var cmdLocation = windir + "\\system32\\cmd.exe"; - component.addOperation( "CreateShortcut", - cmdLocation, - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2017 (64-bit)/Qt " + qtStringVersion + " 64-bit for Universal Windows Platform armv7 (MSVC 2017).lnk", - "/A /Q /K " + batchFileName); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - if (installer.value("os") == "win") { - try { - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - var qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake.exe"; - addInitQtPatchOperation(component, "windows", qtPath, qmakeBinary, "emb-arm-qt5"); - - // Create a batch file and shortcuts with the development environment - createShortcuts(); - - if (installer.value("SDKToolBinary") == "") - return; - - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} for UWP armv7 (MSVC 2017)", - "--type", "WinRt.QtVersion.WindowsRuntime", - "--qmake", qmakeBinary, - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - var kitName = component.name + "_kit"; - component.addOperation("Execute", - ["@SDKToolBinary@", "addKit", - "--id", kitName, - "--name", "Qt %{Qt:Version} for UWP armv7 (MSVC 2017)", - "--Ctoolchain", "arm-windows-msvc2017-pe-32bit", - "--Cxxtoolchain", "arm-windows-msvc2017-pe-32bit", - "--qt", component.name, - "--devicetype", "WinRt.Device.Phone", - "UNDOEXECUTE", - "@SDKToolBinary@", "rmKit", "--id", kitName]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "Qt-%QT_VERSION%"); - - // is this OpenSource installation? - if (!isCommercialLicense()) { - // patch qt edition - var qconfigFile = qtPath + "/mkspecs/qconfig.pri"; - component.addOperation("LineReplace", qconfigFile, "QT_EDITION =", "QT_EDITION = OpenSource" - } - - } catch( e ) { - print( e ); - } - if (installer.value("os") == "win") { - var settingsFile = installer.value("QtCreatorInstallerSettingsFile"); - if (settingsFile == "") - return; - component.addOperation("Settings", "path="+settingsFile, "method=add_array_value", - "key=Plugins/ForceEnabled", "value=WinRt"); - } - } -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_winrt_armv7/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_winrt_armv7/meta/package.xml deleted file mode 100644 index 5d0012e4c..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_winrt_armv7/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>UWP armv7 (MSVC2017)</DisplayName> - <Description>Qt %QT_VERSION% Prebuilt Components for Universal Windows Platform</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.%BASE_DEPENDENCY_PKG_NAME%.doc, qt.%BASE_DEPENDENCY_PKG_NAME%.examples</Dependencies> - <Default>false</Default> - <Script>installscript.qs</Script> - <SortingPriority>589</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_winrt_x64/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_winrt_x64/meta/installscript.qs deleted file mode 100644 index 0fc3d70c9..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_winrt_x64/meta/installscript.qs +++ /dev/null @@ -1,135 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ -} - -function isCommercialLicense() -{ - return installer.value("QT_LICENSE_TYPE").toUpperCase() == "ENTERPRISE"; -} - -function createShortcuts() -{ - var qtStringVersion = "%QT_VERSION%"; - // Create a batch file with the development environment - var component_root_path = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - component_root_path = component_root_path.replace(/\//g, "\\"); - - var batchFileName = component_root_path + "\\" + "bin" + "\\" + "qtenv2.bat"; - var contentString = "@echo off\r\n"; - contentString += "echo Setting up environment for Qt usage...\r\n"; - contentString += "set PATH=" + component_root_path + "\\bin;%PATH%\r\n"; - contentString += "cd /D " + component_root_path + "\r\n"; - contentString += "echo Remember to call vcvarsall.bat to complete environment setup!\r\n"; - // Dump batch file - component.addOperation("AppendFile", batchFileName, contentString); - - var windir = installer.environmentVariable("WINDIR"); - if (windir == "") { - QMessageBox["warning"]( "Error" , "Error", "Could not find windows installation directory"); - return; - } - - var cmdLocation = windir + "\\system32\\cmd.exe"; - component.addOperation( "CreateShortcut", - cmdLocation, - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2017 (64-bit)/Qt " + qtStringVersion + " 64-bit for Universal Windows Platform (MSVC 2017).lnk", - "/A /Q /K " + batchFileName); -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - if (installer.value("os") == "win") { - try { - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - var qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake.exe"; - addInitQtPatchOperation(component, "windows", qtPath, qmakeBinary, "emb-arm-qt5"); - - // Create a batch file and shortcuts with the development environment - createShortcuts(); - - if (installer.value("SDKToolBinary") == "") - return; - - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} for UWP 64bit (MSVC 2017)", - "--type", "WinRt.QtVersion.WindowsRuntime", - "--qmake", qmakeBinary, - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - var kitName = component.name + "_kit"; - component.addOperation("Execute", - ["@SDKToolBinary@", "addKit", - "--id", kitName, - "--name", "Qt %{Qt:Version} for UWP 64bit (MSVC 2017)", - "--Ctoolchain", "x86-windows-msvc2017-pe-64bit", - "--Cxxtoolchain", "x86-windows-msvc2017-pe-64bit", - "--qt", component.name, - "--debuggerengine", "4", - "--devicetype", "WinRt.Device.Local", - "UNDOEXECUTE", - "@SDKToolBinary@", "rmKit", "--id", kitName]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "Qt-%QT_VERSION%"); - - // is this OpenSource installation? - if (!isCommercialLicense()) { - // patch qt edition - var qconfigFile = qtPath + "/mkspecs/qconfig.pri"; - component.addOperation("LineReplace", qconfigFile, "QT_EDITION =", "QT_EDITION = OpenSource" - } - - } catch( e ) { - print( e ); - } - if (installer.value("os") == "win") { - var settingsFile = installer.value("QtCreatorInstallerSettingsFile"); - if (settingsFile == "") - return; - component.addOperation("Settings", "path="+settingsFile, "method=add_array_value", - "key=Plugins/ForceEnabled", "value=WinRt"); - } - } -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_winrt_x64/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_winrt_x64/meta/package.xml deleted file mode 100644 index c80a792a3..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_winrt_x64/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>UWP x64 (MSVC2017)</DisplayName> - <Description>Qt %QT_VERSION% Prebuilt Components for Universal Windows Platform</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.%BASE_DEPENDENCY_PKG_NAME%.doc, qt.%BASE_DEPENDENCY_PKG_NAME%.examples</Dependencies> - <Default>false</Default> - <Script>installscript.qs</Script> - <SortingPriority>589</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_winrt_x86/meta/installscript.qs b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_winrt_x86/meta/installscript.qs deleted file mode 100644 index 29f329c3f..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_winrt_x86/meta/installscript.qs +++ /dev/null @@ -1,135 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the release tools of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:GPL-EXCEPT$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 3 as published by the Free Software -** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// constructor -function Component() -{ -} - -function isCommercialLicense() -{ - return installer.value("QT_LICENSE_TYPE").toUpperCase() == "ENTERPRISE"; -} - -function createShortcuts() -{ - var qtStringVersion = "%QT_VERSION%"; - // Create a batch file with the development environment - var component_root_path = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - component_root_path = component_root_path.replace(/\//g, "\\"); - - var batchFileName = component_root_path + "\\" + "bin" + "\\" + "qtenv2.bat"; - var contentString = "@echo off\r\n"; - contentString += "echo Setting up environment for Qt usage...\r\n"; - contentString += "set PATH=" + component_root_path + "\\bin;%PATH%\r\n"; - contentString += "cd /D " + component_root_path + "\r\n"; - contentString += "echo Remember to call vcvarsall.bat to complete environment setup!\r\n"; - // Dump batch file - component.addOperation("AppendFile", batchFileName, contentString); - - var windir = installer.environmentVariable("WINDIR"); - if (windir == "") { - QMessageBox["warning"]( "Error" , "Error", "Could not find windows installation directory"); - return; - } - - var cmdLocation = windir + "\\system32\\cmd.exe"; - component.addOperation( "CreateShortcut", - cmdLocation, - "@StartMenuDir@/" + qtStringVersion + "/MSVC 2017 (64-bit)/Qt " + qtStringVersion + " 64-bit for Universal Windows Platform 32bit (MSVC 2017).lnk", - "/A /Q /K " + batchFileName); -} - -Component.prototype.beginInstallation = function() -{ - installer.setValue(component.name + "_qtpath", "@TargetDir@" + "%TARGET_INSTALL_DIR%"); -} - -Component.prototype.createOperations = function() -{ - component.createOperations(); - - if (installer.value("os") == "win") { - try { - var qtPath = "@TargetDir@" + "%TARGET_INSTALL_DIR%"; - var qmakeBinary = "@TargetDir@" + "%TARGET_INSTALL_DIR%/bin/qmake.exe"; - addInitQtPatchOperation(component, "windows", qtPath, qmakeBinary, "emb-arm-qt5"); - - // Create a batch file and shortcuts with the development environment - createShortcuts(); - - if (installer.value("SDKToolBinary") == "") - return; - - component.addOperation("Execute", - ["@SDKToolBinary@", "addQt", - "--id", component.name, - "--name", "Qt %{Qt:Version} for UWP 32bit (MSVC 2017)", - "--type", "WinRt.QtVersion.WindowsRuntime", - "--qmake", qmakeBinary, - "UNDOEXECUTE", - "@SDKToolBinary@", "rmQt", "--id", component.name]); - - var kitName = component.name + "_kit"; - component.addOperation("Execute", - ["@SDKToolBinary@", "addKit", - "--id", kitName, - "--name", "Qt %{Qt:Version} for UWP 32bit (MSVC 2017)", - "--Ctoolchain", "x86-windows-msvc2017-pe-32bit", - "--Cxxtoolchain", "x86-windows-msvc2017-pe-32bit", - "--qt", component.name, - "--debuggerengine", "4", - "--devicetype", "WinRt.Device.Local", - "UNDOEXECUTE", - "@SDKToolBinary@", "rmKit", "--id", kitName]); - - // patch/register docs and examples - var installationPath = installer.value("TargetDir") + "%TARGET_INSTALL_DIR%"; - print("Register documentation and examples for: " + installationPath); - patchQtExamplesAndDoc(component, installationPath, "Qt-%QT_VERSION%"); - - // is this OpenSource installation? - if (!isCommercialLicense()) { - // patch qt edition - var qconfigFile = qtPath + "/mkspecs/qconfig.pri"; - component.addOperation("LineReplace", qconfigFile, "QT_EDITION =", "QT_EDITION = OpenSource" - } - - } catch( e ) { - print( e ); - } - if (installer.value("os") == "win") { - var settingsFile = installer.value("QtCreatorInstallerSettingsFile"); - if (settingsFile == "") - return; - component.addOperation("Settings", "path="+settingsFile, "method=add_array_value", - "key=Plugins/ForceEnabled", "value=WinRt"); - } - } -} - diff --git a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_winrt_x86/meta/package.xml b/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_winrt_x86/meta/package.xml deleted file mode 100644 index fd0e4bbf2..000000000 --- a/packaging-tools/configurations/pkg_templates/generator/templates/win64_msvc2017_winrt_x86/meta/package.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0"?> -<Package> - <DisplayName>UWP x86 (MSVC2017)</DisplayName> - <Description>Qt %QT_VERSION% Prebuilt Components for Universal Windows Platform</Description> - <Version>%QT_VERSION%-0%VERSION_NUMBER_AUTO_INCREASE%</Version> - <ReleaseDate>%PACKAGE_CREATION_DATE%</ReleaseDate> - <Dependencies>qt.tools.qtcreator, qt.59.doc, qt.59.examples</Dependencies> - <Default>false</Default> - <Script>installscript.qs</Script> - <SortingPriority>589</SortingPriority> - <DownloadableArchives><!--ONLINE_ARCHIVE_LIST--></DownloadableArchives> -</Package> - - |