* Moves qt integration solely to the nodegui core addon * Adds lint fixes * moved to integration core * cleans up export snippet * revert package.json * Add exit if app->exec finishes. * lint fix * Makes QApplication custom * adds qobject to wrap of qapp * Adds working qt run looper * Adds font default * Adds qt installer * Updates qode integration to v2.0.1 * fix cpp lints * Fixes lint and deps * Adds miniqt installation * adds setup mini qt script * skips tests due to issues with jest * fix config and download path for linux and windows * Adds multiple artifact downloader * fix qt config and compilation * Fixes qode path for windows (now it can load dll's easily) * Add compilation * fix windows path setup * use scripts directly * enabled tests back * fix ubuntu deps * update to alpha release * fix workflow * adds more artifacts and funding field * change to alpha v2 * update prebuild yml * revert build action * disabling prebuild for now * switch to stable release 5.14.1 * version bump
73 lines
2.8 KiB
JavaScript
73 lines
2.8 KiB
JavaScript
const os = require('os');
|
|
const path = require('path');
|
|
|
|
const SETUP_DIR = path.resolve(__dirname, '..', 'miniqt');
|
|
const QT_VERSION = '5.14.1';
|
|
|
|
function getMiniQtConfig() {
|
|
switch (os.platform()) {
|
|
case 'darwin': {
|
|
return {
|
|
qtHome: path.resolve(SETUP_DIR, QT_VERSION, 'clang_64'),
|
|
artifacts: [
|
|
{
|
|
name: 'Qt Base',
|
|
link: `https://download.qt.io/online/qtsdkrepository/mac_x64/desktop/qt5_5141/qt.qt5.5141.clang_64/5.14.1-0-202001241000qtbase-MacOS-MacOS_10_13-Clang-MacOS-MacOS_10_13-X86_64.7z`,
|
|
},
|
|
{
|
|
name: 'Qt Tools',
|
|
link: `https://download.qt.io/online/qtsdkrepository/mac_x64/desktop/qt5_5141/qt.qt5.5141.clang_64/5.14.1-0-202001241000qttools-MacOS-MacOS_10_13-Clang-MacOS-MacOS_10_13-X86_64.7z`,
|
|
},
|
|
],
|
|
};
|
|
}
|
|
case 'win32': {
|
|
return {
|
|
qtHome: path.resolve(SETUP_DIR, QT_VERSION, 'msvc2017_64'),
|
|
artifacts: [
|
|
{
|
|
name: 'Qt Base',
|
|
link: `https://download.qt.io/online/qtsdkrepository/windows_x86/desktop/qt5_5141/qt.qt5.5141.win64_msvc2017_64/5.14.1-0-202001240957qtbase-Windows-Windows_10-MSVC2017-Windows-Windows_10-X86_64.7z`,
|
|
},
|
|
{
|
|
name: 'Qt Tools',
|
|
link: `https://download.qt.io/online/qtsdkrepository/windows_x86/desktop/qt5_5141/qt.qt5.5141.win64_msvc2017_64/5.14.1-0-202001240957qttools-Windows-Windows_10-MSVC2017-Windows-Windows_10-X86_64.7z`,
|
|
},
|
|
],
|
|
};
|
|
}
|
|
case 'linux': {
|
|
return {
|
|
qtHome: path.resolve(SETUP_DIR, QT_VERSION, 'gcc_64'),
|
|
artifacts: [
|
|
{
|
|
name: 'Qt Base',
|
|
link: `https://download.qt.io/online/qtsdkrepository/linux_x64/desktop/qt5_5141/qt.qt5.5141.gcc_64/5.14.1-0-202001240953qtbase-Linux-RHEL_7_6-GCC-Linux-RHEL_7_6-X86_64.7z`,
|
|
},
|
|
{
|
|
name: 'Qt ICU',
|
|
link: `https://download.qt.io/online/qtsdkrepository/linux_x64/desktop/qt5_5141/qt.qt5.5141.gcc_64/5.14.1-0-202001240953icu-linux-Rhel7.2-x64.7z`,
|
|
},
|
|
],
|
|
};
|
|
}
|
|
}
|
|
}
|
|
|
|
const miniQt = {
|
|
...getMiniQtConfig(),
|
|
version: QT_VERSION,
|
|
setupDir: SETUP_DIR,
|
|
};
|
|
|
|
const useCustomQt = Boolean(process.env.QT_INSTALL_DIR);
|
|
const qtHome = useCustomQt ? process.env.QT_INSTALL_DIR : miniQt.qtHome;
|
|
const qtCmakeDir = path.resolve(qtHome, 'lib', 'cmake', 'Qt5');
|
|
|
|
module.exports = {
|
|
qtHome,
|
|
miniQt,
|
|
qtCmakeDir,
|
|
useCustomQt,
|
|
};
|