qt-creator: update to 9.0.1
- Drop 32bit (not supported by upstream) - Split package (main+docs+devel)
This commit is contained in:
1 parent
d7833837b5
commit
331ef6a9e7
7 files changed
+123
-601
No files matched your search
@@ -3,56 +3,42 @@
|
||||
|
||||
_realname=qt-creator
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
|
||||
__pre=
|
||||
_base_ver=9.0.0
|
||||
pkgver=${_base_ver}${_pre}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}"
|
||||
"${MINGW_PACKAGE_PREFIX}-${_realname}-docs"
|
||||
"${MINGW_PACKAGE_PREFIX}-${_realname}-devel")
|
||||
_base_ver=9.0.1
|
||||
pkgver=${_base_ver/-/}
|
||||
pkgrel=1
|
||||
pkgdesc='Cross-platform IDE (mingw-w64)'
|
||||
pkgdesc='Lightweight, cross-platform integrated development environment (mingw-w64)'
|
||||
url='https://www.qt.io/'
|
||||
install=qt-creator-${MSYSTEM}.install
|
||||
arch=('any')
|
||||
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
|
||||
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
||||
license=('GPL3')
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-qt6-declarative"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-tools"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-svg"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-quick3d"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-serialport"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-translations"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-5compat"
|
||||
"${MINGW_PACKAGE_PREFIX}-make"
|
||||
"${MINGW_PACKAGE_PREFIX}-yaml-cpp")
|
||||
optdepends=("${MINGW_PACKAGE_PREFIX}-gdb: for the debugger"
|
||||
"${MINGW_PACKAGE_PREFIX}-cmake: CMake project support"
|
||||
"${MINGW_PACKAGE_PREFIX}-ninja: Ninja Generator"
|
||||
"${MINGW_PACKAGE_PREFIX}-qbs: QBS project support"
|
||||
"${MINGW_PACKAGE_PREFIX}-clang: Clang code model"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-doc: integrated Qt6 documentation"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-quicktimeline"
|
||||
#'openssh-askpass: for ssh support'
|
||||
#'git: for git support'
|
||||
#'mercurial: for mercurial support'
|
||||
#'bzr: for bazaar support'
|
||||
)
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-cmake"
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
|
||||
"${MINGW_PACKAGE_PREFIX}-cmake"
|
||||
"${MINGW_PACKAGE_PREFIX}-ninja"
|
||||
"${MINGW_PACKAGE_PREFIX}-clang"
|
||||
"${MINGW_PACKAGE_PREFIX}-clang-tools-extra"
|
||||
"${MINGW_PACKAGE_PREFIX}-python"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-declarative"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-tools"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-svg"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-quick3d"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-serialport"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-translations"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-5compat"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-doc"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-quicktimeline"
|
||||
"${MINGW_PACKAGE_PREFIX}-cc"
|
||||
)
|
||||
options=('docs' 'staticlibs') # 'debug' '!strip')
|
||||
_pkgfqn="${_realname}-opensource-src-${_base_ver}${__pre}"
|
||||
source=(#https://download.qt.io/development_releases/qtcreator/${_base_ver%.*}/${_base_ver}${__pre}/${_pkgfqn}.tar.xz
|
||||
https://download.qt.io/official_releases/qtcreator/${pkgver%.*}/${pkgver}/${_pkgfqn}.tar.xz
|
||||
"${MINGW_PACKAGE_PREFIX}-yaml-cpp")
|
||||
#options=('debug' '!strip')
|
||||
_pkgfqn="${_realname}-opensource-src-${_base_ver}"
|
||||
source=(https://download.qt.io/official_releases/qtcreator/${_base_ver%.*}/${_base_ver}/${_pkgfqn}.tar.xz
|
||||
qt-creator-3.2.0-Allow-iOS-plugin-on-any-platform.patch
|
||||
qt-creator-5.0.1-fix-library-archive-path.patch
|
||||
003-find-qdoc-qt6.patch)
|
||||
noextract=(${_pkgfqn}.tar.xz)
|
||||
sha256sums=('5cb4798cd81b086e7f17f5a8d42ea024f64da7efd38ccb5c62f9c1457c23551a'
|
||||
sha256sums=('4e4e881b2635bac07e785c9e889ab9a253ad47a00074e260cbccdb3c0aef189f'
|
||||
'6166817edb9055b98e53f644a41f28a1dbbfc3743931776852753212eee639c3'
|
||||
'29d67f88f071abe7a4b589182767b8a697fe4e516d70707bfca88f035883718f'
|
||||
'5870c81167909d549c14c2b60acabfae2b0b85e84bae7aa7e383333ff9411a4a')
|
||||
@@ -102,18 +88,50 @@ build() {
|
||||
${MINGW_PREFIX}/bin/cmake --build . --target docs
|
||||
}
|
||||
|
||||
package() {
|
||||
package_qt-creator() {
|
||||
pkgdesc="Lightweight, cross-platform integrated development environment (mingw-w64)"
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-qt6-declarative"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-tools"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-svg"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-quick3d"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-serialport"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-translations"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-5compat"
|
||||
"${MINGW_PACKAGE_PREFIX}-yaml-cpp"
|
||||
"${MINGW_PACKAGE_PREFIX}-make")
|
||||
optdepends=("${MINGW_PACKAGE_PREFIX}-gdb: for the debugger"
|
||||
"${MINGW_PACKAGE_PREFIX}-cmake: CMake project support"
|
||||
"${MINGW_PACKAGE_PREFIX}-ninja: Ninja Generator"
|
||||
"${MINGW_PACKAGE_PREFIX}-qbs: QBS project support"
|
||||
"${MINGW_PACKAGE_PREFIX}-clang: Clang code model"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-doc: integrated Qt6 documentation"
|
||||
"${MINGW_PACKAGE_PREFIX}-qt6-quicktimeline")
|
||||
|
||||
cd ${srcdir}/build-${MSYSTEM}
|
||||
|
||||
DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/cmake --install .
|
||||
DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/cmake --install . --component Devel
|
||||
DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/cmake --install . --component qch_docs
|
||||
DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/cmake --install . --component html_docs
|
||||
|
||||
install -d "${pkgdir}${MINGW_PREFIX}"/share/licenses/${_realname}
|
||||
install -Dm644 ${srcdir}/${_pkgfqn}/LICENSE* -t "${pkgdir}${MINGW_PREFIX}"/share/licenses/${_realname}
|
||||
}
|
||||
|
||||
package_qt-creator-docs() {
|
||||
pkgdesc="Lightweight, cross-platform integrated development environment (documentation) (mingw-w64)"
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-${_realname}")
|
||||
|
||||
cd ${srcdir}/build-${MSYSTEM}
|
||||
DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/cmake --install . --component qch_docs
|
||||
DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/cmake --install . --component html_docs
|
||||
}
|
||||
|
||||
package_qt-creator-devel() {
|
||||
pkgdesc="Lightweight, cross-platform integrated development environment (development files) (mingw-w64)"
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-${_realname}")
|
||||
|
||||
cd ${srcdir}/build-${MSYSTEM}
|
||||
DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/cmake --install . --component Devel
|
||||
}
|
||||
|
||||
# Please leave this block here as I use
|
||||
# it to quickly make and test changes.
|
||||
# return 0
|
||||
@@ -145,3 +163,14 @@ package() {
|
||||
# )
|
||||
# fi
|
||||
#
|
||||
|
||||
# template start; name=mingw-w64-splitpkg-wrappers; version=1.0;
|
||||
# vim: set ft=bash :
|
||||
|
||||
# generate wrappers
|
||||
for _name in "${pkgname[@]}"; do
|
||||
_short="package_${_name#${MINGW_PACKAGE_PREFIX}-}"
|
||||
_func="$(declare -f "${_short}")"
|
||||
eval "${_func/#${_short}/package_${_name}}"
|
||||
done
|
||||
# template end;
|
||||
@@ -1,202 +0,0 @@
|
||||
post_install() {
|
||||
local _msys2_machine
|
||||
local _mingw_variant_c
|
||||
local _mingw_variant_cxx
|
||||
local _mingw_variant_arch
|
||||
local _mingw_variant_bit
|
||||
|
||||
if [ -f "clang32/bin/sdktool.exe" ]; then
|
||||
|
||||
cd clang32/bin
|
||||
|
||||
if [ -f "/usr/bin/gcc.exe" ]; then
|
||||
# Add the MSYS2 toolchain.
|
||||
_msys2_machine=$(/usr/bin/gcc.exe -dumpmachine)
|
||||
if [ "${_msys2_machine}" = "x86_64-pc-msys" ]; then
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_C" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_CXX" > /dev/null 2>&1 || true
|
||||
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_C" \
|
||||
"--language" "1" \
|
||||
"--name" "MSYS2 64bit GCC (MSYS2)" \
|
||||
"--path" "/usr/bin/gcc.exe" \
|
||||
"--abi" "x86-windows-msys-pe-64bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-64bit"
|
||||
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_CXX" \
|
||||
"--language" "2" \
|
||||
"--name" "MSYS2 64bit G++ (MSYS2)" \
|
||||
"--path" "/usr/bin/g++.exe" \
|
||||
"--abi" "x86-windows-msys-pe-64bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-64bit"
|
||||
else
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686_C" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686_CXX" > /dev/null 2>&1 || true
|
||||
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686_C" \
|
||||
"--language" "1" \
|
||||
"--name" "MSYS2 32bit GCC (MSYS2)" \
|
||||
"--path" "/usr/bin/gcc.exe" \
|
||||
"--abi" "x86-windows-msys-pe-32bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-32bit"
|
||||
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686_CXX" \
|
||||
"--language" "2" \
|
||||
"--name" "MSYS2 32bit G++ (MSYS2)" \
|
||||
"--path" "/usr/bin/g++.exe" \
|
||||
"--abi" "x86-windows-msys-pe-32bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-32bit"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Add MinGW-w64 toolchains. Don't check for existence since
|
||||
# the user may add toolchains after Qt Creator.
|
||||
for _mingw_variant in "MINGW64" "CLANG64" "UCRT64" "MINGW32" "CLANG32"; do
|
||||
|
||||
if [ "${_mingw_variant}" = "MINGW64" -o "${_mingw_variant}" = "UCRT64" ]; then
|
||||
_mingw_variant_c="gcc"
|
||||
_mingw_variant_cxx="g++"
|
||||
_mingw_variant_arch="x86"
|
||||
_mingw_variant_bit="64bit"
|
||||
elif [ "${_mingw_variant}" = "CLANG64" ]; then
|
||||
_mingw_variant_c="clang"
|
||||
_mingw_variant_cxx="clang++"
|
||||
_mingw_variant_arch="x86"
|
||||
_mingw_variant_bit="64bit"
|
||||
elif [ "${_mingw_variant}" = "MINGW32" ]; then
|
||||
_mingw_variant_c="gcc"
|
||||
_mingw_variant_cxx="g++"
|
||||
_mingw_variant_arch="x86"
|
||||
_mingw_variant_bit="32bit"
|
||||
elif [ "${_mingw_variant}" = "CLANG32" ]; then
|
||||
_mingw_variant_c="clang"
|
||||
_mingw_variant_cxx="clang++"
|
||||
_mingw_variant_arch="x86"
|
||||
_mingw_variant_bit="32bit"
|
||||
fi
|
||||
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}" > /dev/null 2>&1 || true
|
||||
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_C" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_C" \
|
||||
"--language" "1" \
|
||||
"--name" "MinGW-w64 ${_mingw_variant} C Compiler (MSYS2)" \
|
||||
"--path" "/${_mingw_variant,,}/bin/${_mingw_variant_c}.exe" \
|
||||
"--abi" "${_mingw_variant_arch}-windows-msys-pe-${_mingw_variant_bit}" \
|
||||
"--supportedAbis" "${_mingw_variant_arch}-windows-msys-pe-${_mingw_variant_bit}"
|
||||
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_CXX" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_CXX" \
|
||||
"--language" "2" \
|
||||
"--name" "MinGW-w64 ${_mingw_variant} C++ Compiler (MSYS2)" \
|
||||
"--path" "/${_mingw_variant,,}/bin/${_mingw_variant_cxx}.exe" \
|
||||
"--abi" "${_mingw_variant_arch}-windows-msys-pe-${_mingw_variant_bit}" \
|
||||
"--supportedAbis" "${_mingw_variant}-windows-msys-pe-${_mingw_variant_bit}"
|
||||
|
||||
./sdktool.exe rmDebugger "--id" "MinGW.w64.GDB_${_mingw_variant}" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addDebugger \
|
||||
"--id" "MinGW.w64.GDB_${_mingw_variant}" \
|
||||
"--name" "MinGW-w64 ${_mingw_variant} GDB (${_mingw_variant_bit})" \
|
||||
"--engine" "1" \
|
||||
"--binary" "/${_mingw_variant,,}/bin/gdb.exe" \
|
||||
"--abis" "${_mingw_variant_arch}-windows-msys-pe-${_mingw_variant_bit}"
|
||||
|
||||
./sdktool.exe rmCMake "--id" "MinGW.w64.CMake_${_mingw_variant}" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addCMake \
|
||||
"--id" "MinGW.w64.CMake_${_mingw_variant}" \
|
||||
"--name" "MinGW-w64 ${_mingw_variant} CMake (${_mingw_variant_bit})" \
|
||||
"--path" "/${_mingw_variant,,}/bin/cmake.exe"
|
||||
|
||||
# Add Qt5 shared version
|
||||
./sdktool.exe rmQt "--id" "qt5.shared.M2_MinGW-w64_${_mingw_variant}=" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addQt \
|
||||
"--id" "qt5.shared.M2_MinGW-w64_${_mingw_variant}" \
|
||||
"--name" "Qt %{Qt:Version} (shared) MinGW-w64 ${_mingw_variant} (MSYS2)" \
|
||||
"--type" "Qt4ProjectManager.QtVersion.Desktop" \
|
||||
"--qmake" "/${_mingw_variant,,}/bin/qmake.exe"
|
||||
|
||||
./sdktool.exe rmKit "--id" "qt5.shared.M2_MinGW-w64_${_mingw_variant}_kit" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addKit \
|
||||
"--id" "qt5.shared.M2_MinGW-w64_${_mingw_variant}_kit" \
|
||||
"--name" "Desktop Qt %{Qt:Version} (shared) MinGW-w64 ${_mingw_variant} (MSYS2)" \
|
||||
"--Ctoolchain" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_C" \
|
||||
"--Cxxtoolchain" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_CXX" \
|
||||
"--qt" "qt5.shared.M2_MinGW-w64_${_mingw_variant}" \
|
||||
"--debuggerid" "MinGW.w64.GDB_${_mingw_variant}" \
|
||||
"--cmake" "MinGW.w64.CMake_${_mingw_variant}" \
|
||||
"--devicetype" "Desktop"
|
||||
|
||||
# Add Qt5 static version
|
||||
./sdktool.exe rmQt "--id" "qt5.static.M2_MinGW-w64_${_mingw_variant}=" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addQt \
|
||||
"--id" "qt5.static.M2_MinGW-w64_${_mingw_variant}" \
|
||||
"--name" "Qt %{Qt:Version} (static) MinGW-w64 ${_mingw_variant} (static) (MSYS2)" \
|
||||
"--type" "Qt4ProjectManager.QtVersion.Desktop" \
|
||||
"--qmake" "/${_mingw_variant,,}/qt5-static/bin/qmake.exe"
|
||||
|
||||
./sdktool.exe rmKit "--id" "qt5.static.M2_MinGW-w64_${_mingw_variant}_kit" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addKit \
|
||||
"--id" "qt5.static.M2_MinGW-w64_${_mingw_variant}_kit" \
|
||||
"--name" "Desktop Qt %{Qt:Version} (static) MinGW-w64 ${_mingw_variant} (MSYS2)" \
|
||||
"--Ctoolchain" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_C" \
|
||||
"--Cxxtoolchain" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_CXX" \
|
||||
"--qt" "qt5.static.M2_MinGW-w64_${_mingw_variant}" \
|
||||
"--debuggerid" "MinGW.w64.GDB_${_mingw_variant}" \
|
||||
"--cmake" "MinGW.w64.CMake_${_mingw_variant}" \
|
||||
"--devicetype" "Desktop"
|
||||
|
||||
# Add Qt6 shared version
|
||||
./sdktool.exe rmQt "--id" "qt6.shared.M2_MinGW-w64_${_mingw_variant}=" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addQt \
|
||||
"--id" "qt6.shared.M2_MinGW-w64_${_mingw_variant}" \
|
||||
"--name" "Qt %{Qt:Version} (shared) MinGW-w64 ${_mingw_variant} (MSYS2)" \
|
||||
"--type" "Qt4ProjectManager.QtVersion.Desktop" \
|
||||
"--qmake" "/${_mingw_variant,,}/bin/qmake6.exe"
|
||||
|
||||
./sdktool.exe rmKit "--id" "qt6.shared.M2_MinGW-w64_${_mingw_variant}_kit" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addKit \
|
||||
"--id" "qt6.shared.M2_MinGW-w64_${_mingw_variant}_kit" \
|
||||
"--name" "Desktop Qt %{Qt:Version} (shared) MinGW-w64 ${_mingw_variant} (MSYS2)" \
|
||||
"--Ctoolchain" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_C" \
|
||||
"--Cxxtoolchain" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_CXX" \
|
||||
"--qt" "qt6.shared.M2_MinGW-w64_${_mingw_variant}" \
|
||||
"--debuggerid" "MinGW.w64.GDB_${_mingw_variant}" \
|
||||
"--cmake" "MinGW.w64.CMake_${_mingw_variant}" \
|
||||
"--devicetype" "Desktop"
|
||||
|
||||
# Add Qt6 static version
|
||||
./sdktool.exe rmQt "--id" "qt6.static.M2_MinGW-w64_${_mingw_variant}=" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addQt \
|
||||
"--id" "qt6.static.M2_MinGW-w64_${_mingw_variant}" \
|
||||
"--name" "Qt %{Qt:Version} (static) MinGW-w64 ${_mingw_variant} (static) (MSYS2)" \
|
||||
"--type" "Qt4ProjectManager.QtVersion.Desktop" \
|
||||
"--qmake" "/${_mingw_variant,,}/qt6-static/bin/qmake.exe"
|
||||
|
||||
./sdktool.exe rmKit "--id" "qt6.static.M2_MinGW-w64_${_mingw_variant}_kit" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addKit \
|
||||
"--id" "qt6.static.M2_MinGW-w64_${_mingw_variant}_kit" \
|
||||
"--name" "Desktop Qt %{Qt:Version} (static) MinGW-w64 ${_mingw_variant} (MSYS2)" \
|
||||
"--Ctoolchain" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_C" \
|
||||
"--Cxxtoolchain" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_CXX" \
|
||||
"--qt" "qt6.static.M2_MinGW-w64_${_mingw_variant}" \
|
||||
"--debuggerid" "MinGW.w64.GDB_${_mingw_variant}" \
|
||||
"--cmake" "MinGW.w64.CMake_${_mingw_variant}" \
|
||||
"--devicetype" "Desktop"
|
||||
|
||||
done
|
||||
|
||||
cd -
|
||||
fi
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
post_install() {
|
||||
local _msys2_machine
|
||||
local _mingw_variant_c
|
||||
local _mingw_variant_cxx
|
||||
local _mingw_variant_arch
|
||||
@@ -11,53 +10,30 @@ post_install() {
|
||||
|
||||
if [ -f "/usr/bin/gcc.exe" ]; then
|
||||
# Add the MSYS2 toolchain.
|
||||
_msys2_machine=$(/usr/bin/gcc.exe -dumpmachine)
|
||||
if [ "${_msys2_machine}" = "x86_64-pc-msys" ]; then
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_C" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_CXX" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_C" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_CXX" > /dev/null 2>&1 || true
|
||||
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_C" \
|
||||
"--language" "1" \
|
||||
"--name" "MSYS2 64bit GCC (MSYS2)" \
|
||||
"--path" "/usr/bin/gcc.exe" \
|
||||
"--abi" "x86-windows-msys-pe-64bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-64bit"
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_C" \
|
||||
"--language" "1" \
|
||||
"--name" "MSYS2 x86_64 GCC (MSYS2)" \
|
||||
"--path" "/usr/bin/gcc.exe" \
|
||||
"--abi" "x86-windows-msys-pe-64bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-64bit"
|
||||
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_CXX" \
|
||||
"--language" "2" \
|
||||
"--name" "MSYS2 64bit G++ (MSYS2)" \
|
||||
"--path" "/usr/bin/g++.exe" \
|
||||
"--abi" "x86-windows-msys-pe-64bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-64bit"
|
||||
else
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686_C" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686_CXX" > /dev/null 2>&1 || true
|
||||
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686_C" \
|
||||
"--language" "1" \
|
||||
"--name" "MSYS2 32bit GCC (MSYS2)" \
|
||||
"--path" "/usr/bin/gcc.exe" \
|
||||
"--abi" "x86-windows-msys-pe-32bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-32bit"
|
||||
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686_CXX" \
|
||||
"--language" "2" \
|
||||
"--name" "MSYS2 32bit G++ (MSYS2)" \
|
||||
"--path" "/usr/bin/g++.exe" \
|
||||
"--abi" "x86-windows-msys-pe-32bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-32bit"
|
||||
fi
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_CXX" \
|
||||
"--language" "2" \
|
||||
"--name" "MSYS2 x86_64 G++ (MSYS2)" \
|
||||
"--path" "/usr/bin/g++.exe" \
|
||||
"--abi" "x86-windows-msys-pe-64bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-64bit"
|
||||
fi
|
||||
|
||||
# Add MinGW-w64 toolchains. Don't check for existence since
|
||||
# the user may add toolchains after Qt Creator.
|
||||
for _mingw_variant in "MINGW64" "CLANG64" "UCRT64" "MINGW32" "CLANG32"; do
|
||||
for _mingw_variant in "MINGW64" "CLANG64" "UCRT64"; do
|
||||
|
||||
if [ "${_mingw_variant}" = "MINGW64" -o "${_mingw_variant}" = "UCRT64" ]; then
|
||||
_mingw_variant_c="gcc"
|
||||
@@ -69,16 +45,6 @@ post_install() {
|
||||
_mingw_variant_cxx="clang++"
|
||||
_mingw_variant_arch="x86"
|
||||
_mingw_variant_bit="64bit"
|
||||
elif [ "${_mingw_variant}" = "MINGW32" ]; then
|
||||
_mingw_variant_c="gcc"
|
||||
_mingw_variant_cxx="g++"
|
||||
_mingw_variant_arch="x86"
|
||||
_mingw_variant_bit="32bit"
|
||||
elif [ "${_mingw_variant}" = "CLANG32" ]; then
|
||||
_mingw_variant_c="clang"
|
||||
_mingw_variant_cxx="clang++"
|
||||
_mingw_variant_arch="x86"
|
||||
_mingw_variant_bit="32bit"
|
||||
fi
|
||||
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}" > /dev/null 2>&1 || true
|
||||
|
||||
@@ -31,8 +31,7 @@ post_install() {
|
||||
"--supportedAbis" "x86-windows-msys-pe-64bit"
|
||||
fi
|
||||
|
||||
_mingw_variant=CLANGARM64 in "MINGW64" "CLANG64" "UCRT64" "MINGW32" "CLANG32"; do
|
||||
|
||||
_mingw_variant=CLANGARM64
|
||||
_mingw_variant_c="clang"
|
||||
_mingw_variant_cxx="clang++"
|
||||
_mingw_variant_arch="aarch64"
|
||||
|
||||
@@ -1,202 +0,0 @@
|
||||
post_install() {
|
||||
local _msys2_machine
|
||||
local _mingw_variant_c
|
||||
local _mingw_variant_cxx
|
||||
local _mingw_variant_arch
|
||||
local _mingw_variant_bit
|
||||
|
||||
if [ -f "mingw32/bin/sdktool.exe" ]; then
|
||||
|
||||
cd mingw32/bin
|
||||
|
||||
if [ -f "/usr/bin/gcc.exe" ]; then
|
||||
# Add the MSYS2 toolchain.
|
||||
_msys2_machine=$(/usr/bin/gcc.exe -dumpmachine)
|
||||
if [ "${_msys2_machine}" = "x86_64-pc-msys" ]; then
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_C" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_CXX" > /dev/null 2>&1 || true
|
||||
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_C" \
|
||||
"--language" "1" \
|
||||
"--name" "MSYS2 64bit GCC (MSYS2)" \
|
||||
"--path" "/usr/bin/gcc.exe" \
|
||||
"--abi" "x86-windows-msys-pe-64bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-64bit"
|
||||
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_CXX" \
|
||||
"--language" "2" \
|
||||
"--name" "MSYS2 64bit G++ (MSYS2)" \
|
||||
"--path" "/usr/bin/g++.exe" \
|
||||
"--abi" "x86-windows-msys-pe-64bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-64bit"
|
||||
else
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686_C" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686_CXX" > /dev/null 2>&1 || true
|
||||
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686_C" \
|
||||
"--language" "1" \
|
||||
"--name" "MSYS2 32bit GCC (MSYS2)" \
|
||||
"--path" "/usr/bin/gcc.exe" \
|
||||
"--abi" "x86-windows-msys-pe-32bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-32bit"
|
||||
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686_CXX" \
|
||||
"--language" "2" \
|
||||
"--name" "MSYS2 32bit G++ (MSYS2)" \
|
||||
"--path" "/usr/bin/g++.exe" \
|
||||
"--abi" "x86-windows-msys-pe-32bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-32bit"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Add MinGW-w64 toolchains. Don't check for existence since
|
||||
# the user may add toolchains after Qt Creator.
|
||||
for _mingw_variant in "MINGW64" "CLANG64" "UCRT64" "MINGW32" "CLANG32"; do
|
||||
|
||||
if [ "${_mingw_variant}" = "MINGW64" -o "${_mingw_variant}" = "UCRT64" ]; then
|
||||
_mingw_variant_c="gcc"
|
||||
_mingw_variant_cxx="g++"
|
||||
_mingw_variant_arch="x86"
|
||||
_mingw_variant_bit="64bit"
|
||||
elif [ "${_mingw_variant}" = "CLANG64" ]; then
|
||||
_mingw_variant_c="clang"
|
||||
_mingw_variant_cxx="clang++"
|
||||
_mingw_variant_arch="x86"
|
||||
_mingw_variant_bit="64bit"
|
||||
elif [ "${_mingw_variant}" = "MINGW32" ]; then
|
||||
_mingw_variant_c="gcc"
|
||||
_mingw_variant_cxx="g++"
|
||||
_mingw_variant_arch="x86"
|
||||
_mingw_variant_bit="32bit"
|
||||
elif [ "${_mingw_variant}" = "CLANG32" ]; then
|
||||
_mingw_variant_c="clang"
|
||||
_mingw_variant_cxx="clang++"
|
||||
_mingw_variant_arch="x86"
|
||||
_mingw_variant_bit="32bit"
|
||||
fi
|
||||
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}" > /dev/null 2>&1 || true
|
||||
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_C" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_C" \
|
||||
"--language" "1" \
|
||||
"--name" "MinGW-w64 ${_mingw_variant} C (MSYS2)" \
|
||||
"--path" "/${_mingw_variant,,}/bin/${_mingw_variant_c}.exe" \
|
||||
"--abi" "${_mingw_variant_arch}-windows-msys-pe-${_mingw_variant_bit}" \
|
||||
"--supportedAbis" "${_mingw_variant_arch}-windows-msys-pe-${_mingw_variant_bit}"
|
||||
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_CXX" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_CXX" \
|
||||
"--language" "2" \
|
||||
"--name" "MinGW-w64 ${_mingw_variant} C++ (MSYS2)" \
|
||||
"--path" "/${_mingw_variant,,}/bin/${_mingw_variant_cxx}.exe" \
|
||||
"--abi" "${_mingw_variant_arch}-windows-msys-pe-${_mingw_variant_bit}" \
|
||||
"--supportedAbis" "${_mingw_variant}-windows-msys-pe-${_mingw_variant_bit}"
|
||||
|
||||
./sdktool.exe rmDebugger "--id" "MinGW.w64.GDB_${_mingw_variant}" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addDebugger \
|
||||
"--id" "MinGW.w64.GDB_${_mingw_variant}" \
|
||||
"--name" "MinGW-w64 GDB (${_mingw_variant})" \
|
||||
"--engine" "1" \
|
||||
"--binary" "/${_mingw_variant,,}/bin/gdb.exe" \
|
||||
"--abis" "${_mingw_variant_arch}-windows-msys-pe-${_mingw_variant_bit}"
|
||||
|
||||
./sdktool.exe rmCMake "--id" "MinGW.w64.CMake_${_mingw_variant}" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addCMake \
|
||||
"--id" "MinGW.w64.CMake_${_mingw_variant}" \
|
||||
"--name" "MinGW-w64 CMake (${_mingw_variant})" \
|
||||
"--path" "/${_mingw_variant,,}/bin/cmake.exe"
|
||||
|
||||
# Add Qt5 shared version
|
||||
./sdktool.exe rmQt "--id" "qt5.shared.M2_MinGW-w64_${_mingw_variant}=" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addQt \
|
||||
"--id" "qt5.shared.M2_MinGW-w64_${_mingw_variant}" \
|
||||
"--name" "Qt %{Qt:Version} (shared) MinGW-w64 ${_mingw_variant} (MSYS2)" \
|
||||
"--type" "Qt4ProjectManager.QtVersion.Desktop" \
|
||||
"--qmake" "/${_mingw_variant,,}/bin/qmake.exe"
|
||||
|
||||
./sdktool.exe rmKit "--id" "qt5.shared.M2_MinGW-w64_${_mingw_variant}_kit" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addKit \
|
||||
"--id" "qt5.shared.M2_MinGW-w64_${_mingw_variant}_kit" \
|
||||
"--name" "Desktop Qt %{Qt:Version} (shared) MinGW-w64 ${_mingw_variant} (MSYS2)" \
|
||||
"--Ctoolchain" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_C" \
|
||||
"--Cxxtoolchain" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_CXX" \
|
||||
"--qt" "qt5.shared.M2_MinGW-w64_${_mingw_variant}" \
|
||||
"--debuggerid" "MinGW.w64.GDB_${_mingw_variant}" \
|
||||
"--cmake" "MinGW.w64.CMake_${_mingw_variant}" \
|
||||
"--devicetype" "Desktop"
|
||||
|
||||
# Add Qt5 static version
|
||||
./sdktool.exe rmQt "--id" "qt5.static.M2_MinGW-w64_${_mingw_variant}=" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addQt \
|
||||
"--id" "qt5.static.M2_MinGW-w64_${_mingw_variant}" \
|
||||
"--name" "Qt %{Qt:Version} (static) MinGW-w64 ${_mingw_variant} (static) (MSYS2)" \
|
||||
"--type" "Qt4ProjectManager.QtVersion.Desktop" \
|
||||
"--qmake" "/${_mingw_variant,,}/qt5-static/bin/qmake.exe"
|
||||
|
||||
./sdktool.exe rmKit "--id" "qt5.static.M2_MinGW-w64_${_mingw_variant}_kit" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addKit \
|
||||
"--id" "qt5.static.M2_MinGW-w64_${_mingw_variant}_kit" \
|
||||
"--name" "Desktop Qt %{Qt:Version} (static) MinGW-w64 ${_mingw_variant} (MSYS2)" \
|
||||
"--Ctoolchain" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_C" \
|
||||
"--Cxxtoolchain" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_CXX" \
|
||||
"--qt" "qt5.static.M2_MinGW-w64_${_mingw_variant}" \
|
||||
"--debuggerid" "MinGW.w64.GDB_${_mingw_variant}" \
|
||||
"--cmake" "MinGW.w64.CMake_${_mingw_variant}" \
|
||||
"--devicetype" "Desktop"
|
||||
|
||||
# Add Qt6 shared version
|
||||
./sdktool.exe rmQt "--id" "qt6.shared.M2_MinGW-w64_${_mingw_variant}=" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addQt \
|
||||
"--id" "qt6.shared.M2_MinGW-w64_${_mingw_variant}" \
|
||||
"--name" "Qt %{Qt:Version} (shared) MinGW-w64 ${_mingw_variant} (MSYS2)" \
|
||||
"--type" "Qt4ProjectManager.QtVersion.Desktop" \
|
||||
"--qmake" "/${_mingw_variant,,}/bin/qmake6.exe"
|
||||
|
||||
./sdktool.exe rmKit "--id" "qt6.shared.M2_MinGW-w64_${_mingw_variant}_kit" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addKit \
|
||||
"--id" "qt6.shared.M2_MinGW-w64_${_mingw_variant}_kit" \
|
||||
"--name" "Desktop Qt %{Qt:Version} (shared) MinGW-w64 ${_mingw_variant} (MSYS2)" \
|
||||
"--Ctoolchain" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_C" \
|
||||
"--Cxxtoolchain" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_CXX" \
|
||||
"--qt" "qt6.shared.M2_MinGW-w64_${_mingw_variant}" \
|
||||
"--debuggerid" "MinGW.w64.GDB_${_mingw_variant}" \
|
||||
"--cmake" "MinGW.w64.CMake_${_mingw_variant}" \
|
||||
"--devicetype" "Desktop"
|
||||
|
||||
# Add Qt6 static version
|
||||
./sdktool.exe rmQt "--id" "qt6.static.M2_MinGW-w64_${_mingw_variant}=" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addQt \
|
||||
"--id" "qt6.static.M2_MinGW-w64_${_mingw_variant}" \
|
||||
"--name" "Qt %{Qt:Version} (static) MinGW-w64 ${_mingw_variant} (static) (MSYS2)" \
|
||||
"--type" "Qt4ProjectManager.QtVersion.Desktop" \
|
||||
"--qmake" "/${_mingw_variant,,}/qt6-static/bin/qmake.exe"
|
||||
|
||||
./sdktool.exe rmKit "--id" "qt6.static.M2_MinGW-w64_${_mingw_variant}_kit" > /dev/null 2>&1 || true
|
||||
./sdktool.exe addKit \
|
||||
"--id" "qt6.static.M2_MinGW-w64_${_mingw_variant}_kit" \
|
||||
"--name" "Desktop Qt %{Qt:Version} (static) MinGW-w64 ${_mingw_variant} (MSYS2)" \
|
||||
"--Ctoolchain" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_C" \
|
||||
"--Cxxtoolchain" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}_CXX" \
|
||||
"--qt" "qt6.static.M2_MinGW-w64_${_mingw_variant}" \
|
||||
"--debuggerid" "MinGW.w64.GDB_${_mingw_variant}" \
|
||||
"--cmake" "MinGW.w64.CMake_${_mingw_variant}" \
|
||||
"--devicetype" "Desktop"
|
||||
|
||||
done
|
||||
|
||||
cd -
|
||||
fi
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
post_install() {
|
||||
local _msys2_machine
|
||||
local _mingw_variant_c
|
||||
local _mingw_variant_cxx
|
||||
local _mingw_variant_arch
|
||||
@@ -11,53 +10,30 @@ post_install() {
|
||||
|
||||
if [ -f "/usr/bin/gcc.exe" ]; then
|
||||
# Add the MSYS2 toolchain.
|
||||
_msys2_machine=$(/usr/bin/gcc.exe -dumpmachine)
|
||||
if [ "${_msys2_machine}" = "x86_64-pc-msys" ]; then
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_C" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_CXX" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_C" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_CXX" > /dev/null 2>&1 || true
|
||||
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_C" \
|
||||
"--language" "1" \
|
||||
"--name" "MSYS2 64bit GCC (MSYS2)" \
|
||||
"--path" "/usr/bin/gcc.exe" \
|
||||
"--abi" "x86-windows-msys-pe-64bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-64bit"
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_C" \
|
||||
"--language" "1" \
|
||||
"--name" "MSYS2 x86_64 GCC (MSYS2)" \
|
||||
"--path" "/usr/bin/gcc.exe" \
|
||||
"--abi" "x86-windows-msys-pe-64bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-64bit"
|
||||
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_CXX" \
|
||||
"--language" "2" \
|
||||
"--name" "MSYS2 64bit G++ (MSYS2)" \
|
||||
"--path" "/usr/bin/g++.exe" \
|
||||
"--abi" "x86-windows-msys-pe-64bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-64bit"
|
||||
else
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686_C" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686_CXX" > /dev/null 2>&1 || true
|
||||
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686_C" \
|
||||
"--language" "1" \
|
||||
"--name" "MSYS2 32bit GCC (MSYS2)" \
|
||||
"--path" "/usr/bin/gcc.exe" \
|
||||
"--abi" "x86-windows-msys-pe-32bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-32bit"
|
||||
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686_CXX" \
|
||||
"--language" "2" \
|
||||
"--name" "MSYS2 32bit G++ (MSYS2)" \
|
||||
"--path" "/usr/bin/g++.exe" \
|
||||
"--abi" "x86-windows-msys-pe-32bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-32bit"
|
||||
fi
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_CXX" \
|
||||
"--language" "2" \
|
||||
"--name" "MSYS2 x86_64 G++ (MSYS2)" \
|
||||
"--path" "/usr/bin/g++.exe" \
|
||||
"--abi" "x86-windows-msys-pe-64bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-64bit"
|
||||
fi
|
||||
|
||||
# Add MinGW-w64 toolchains. Don't check for existence since
|
||||
# the user may add toolchains after Qt Creator.
|
||||
for _mingw_variant in "MINGW64" "CLANG64" "UCRT64" "MINGW32" "CLANG32"; do
|
||||
for _mingw_variant in "MINGW64" "CLANG64" "UCRT64"; do
|
||||
|
||||
if [ "${_mingw_variant}" = "MINGW64" -o "${_mingw_variant}" = "UCRT64" ]; then
|
||||
_mingw_variant_c="gcc"
|
||||
@@ -69,16 +45,6 @@ post_install() {
|
||||
_mingw_variant_cxx="clang++"
|
||||
_mingw_variant_arch="x86"
|
||||
_mingw_variant_bit="64bit"
|
||||
elif [ "${_mingw_variant}" = "MINGW32" ]; then
|
||||
_mingw_variant_c="gcc"
|
||||
_mingw_variant_cxx="g++"
|
||||
_mingw_variant_arch="x86"
|
||||
_mingw_variant_bit="32bit"
|
||||
elif [ "${_mingw_variant}" = "CLANG32" ]; then
|
||||
_mingw_variant_c="clang"
|
||||
_mingw_variant_cxx="clang++"
|
||||
_mingw_variant_arch="x86"
|
||||
_mingw_variant_bit="32bit"
|
||||
fi
|
||||
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}" > /dev/null 2>&1 || true
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
post_install() {
|
||||
local _msys2_machine
|
||||
local _mingw_variant_c
|
||||
local _mingw_variant_cxx
|
||||
local _mingw_variant_arch
|
||||
@@ -11,53 +10,30 @@ post_install() {
|
||||
|
||||
if [ -f "/usr/bin/gcc.exe" ]; then
|
||||
# Add the MSYS2 toolchain.
|
||||
_msys2_machine=$(/usr/bin/gcc.exe -dumpmachine)
|
||||
if [ "${_msys2_machine}" = "x86_64-pc-msys" ]; then
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_C" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_CXX" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_C" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_CXX" > /dev/null 2>&1 || true
|
||||
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_C" \
|
||||
"--language" "1" \
|
||||
"--name" "MSYS2 64bit GCC (MSYS2)" \
|
||||
"--path" "/usr/bin/gcc.exe" \
|
||||
"--abi" "x86-windows-msys-pe-64bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-64bit"
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_C" \
|
||||
"--language" "1" \
|
||||
"--name" "MSYS2 x86_64 GCC (MSYS2)" \
|
||||
"--path" "/usr/bin/gcc.exe" \
|
||||
"--abi" "x86-windows-msys-pe-64bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-64bit"
|
||||
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_CXX" \
|
||||
"--language" "2" \
|
||||
"--name" "MSYS2 64bit G++ (MSYS2)" \
|
||||
"--path" "/usr/bin/g++.exe" \
|
||||
"--abi" "x86-windows-msys-pe-64bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-64bit"
|
||||
else
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686_C" > /dev/null 2>&1 || true
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686_CXX" > /dev/null 2>&1 || true
|
||||
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686_C" \
|
||||
"--language" "1" \
|
||||
"--name" "MSYS2 32bit GCC (MSYS2)" \
|
||||
"--path" "/usr/bin/gcc.exe" \
|
||||
"--abi" "x86-windows-msys-pe-32bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-32bit"
|
||||
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_i686_CXX" \
|
||||
"--language" "2" \
|
||||
"--name" "MSYS2 32bit G++ (MSYS2)" \
|
||||
"--path" "/usr/bin/g++.exe" \
|
||||
"--abi" "x86-windows-msys-pe-32bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-32bit"
|
||||
fi
|
||||
./sdktool.exe addTC \
|
||||
"--id" "ProjectExplorer.ToolChain.Mingw:M2_MSYS2_x86_64_CXX" \
|
||||
"--language" "2" \
|
||||
"--name" "MSYS2 x86_64 G++ (MSYS2)" \
|
||||
"--path" "/usr/bin/g++.exe" \
|
||||
"--abi" "x86-windows-msys-pe-64bit" \
|
||||
"--supportedAbis" "x86-windows-msys-pe-64bit"
|
||||
fi
|
||||
|
||||
# Add MinGW-w64 toolchains. Don't check for existence since
|
||||
# the user may add toolchains after Qt Creator.
|
||||
for _mingw_variant in "MINGW64" "CLANG64" "UCRT64" "MINGW32" "CLANG32"; do
|
||||
for _mingw_variant in "MINGW64" "CLANG64" "UCRT64"; do
|
||||
|
||||
if [ "${_mingw_variant}" = "MINGW64" -o "${_mingw_variant}" = "UCRT64" ]; then
|
||||
_mingw_variant_c="gcc"
|
||||
@@ -69,16 +45,6 @@ post_install() {
|
||||
_mingw_variant_cxx="clang++"
|
||||
_mingw_variant_arch="x86"
|
||||
_mingw_variant_bit="64bit"
|
||||
elif [ "${_mingw_variant}" = "MINGW32" ]; then
|
||||
_mingw_variant_c="gcc"
|
||||
_mingw_variant_cxx="g++"
|
||||
_mingw_variant_arch="x86"
|
||||
_mingw_variant_bit="32bit"
|
||||
elif [ "${_mingw_variant}" = "CLANG32" ]; then
|
||||
_mingw_variant_c="clang"
|
||||
_mingw_variant_cxx="clang++"
|
||||
_mingw_variant_arch="x86"
|
||||
_mingw_variant_bit="32bit"
|
||||
fi
|
||||
|
||||
./sdktool.exe rmTC "--id" "ProjectExplorer.ToolChain.Mingw:M2_MinGW-w64_${_mingw_variant}" > /dev/null 2>&1 || true
|
||||
|
||||
Reference in new issue
Block a user