mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-05-07 06:59:35 +00:00
commit
1c4866acae
@ -22,15 +22,16 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
if (IOS)
|
||||
option(BUILD_SHARED_LIBS "This option forece build ${PROJECT_NAME} as a shared project with separated libraries as" OFF)
|
||||
elseif()
|
||||
else()
|
||||
option(BUILD_SHARED_LIBS "This option forece build ${PROJECT_NAME} as a shared project with separated libraries as" ON)
|
||||
endif()
|
||||
|
||||
|
||||
if (NOT QT_VERSION_MAJOR)
|
||||
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Test QUIET)
|
||||
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core REQUIRED)
|
||||
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Test QUIET)
|
||||
endif()
|
||||
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Test QUIET)
|
||||
|
||||
include(submodules/QuasarAppLib/CMake/QuasarApp.cmake)
|
||||
|
||||
@ -41,7 +42,7 @@ set(CQT_DEPLOYER_VERSION_SHORT_PREFIX "1.6")
|
||||
set(CQT_DEPLOYER_VERSION "${CQT_DEPLOYER_VERSION_SHORT_PREFIX}.${GIT_COMMIT_COUNT}.${GIT_COMMIT_HASH}")
|
||||
set(QIFW_VERSION "4.5") # rebuild for the 4.5.2
|
||||
|
||||
option(CQT_DEPLOYER_TESTS "This option disables or enables tests of the ${PROJECT_NAME} project" ON)
|
||||
option(CQT_DEPLOYER_TESTS "This option disables or enables tests of the ${PROJECT_NAME} project" ${Qt${QT_VERSION_MAJOR}Test_FOUND})
|
||||
option(CQT_DEPLOYER_TOOL "This option disables or enables example app of the ${PROJECT_NAME} project" ON)
|
||||
|
||||
if (ANDROID OR IOS OR NOT QT_VERSION_MAJOR OR QA_WASM32)
|
||||
|
@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2023-2023 QuasarApp.
|
||||
* Distributed under the lgplv3 software license, see the accompanying
|
||||
* Everyone is permitted to copy and distribute verbatim copies
|
||||
* of this license document, but changing it is not allowed.
|
||||
*/
|
||||
|
||||
#include "modulesqt515.h"
|
||||
|
||||
ModulesQt515::ModulesQt515()
|
||||
|
@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2023 QuasarApp.
|
||||
* Distributed under the lgplv3 software license, see the accompanying
|
||||
* Everyone is permitted to copy and distribute verbatim copies
|
||||
* of this license document, but changing it is not allowed.
|
||||
*/
|
||||
|
||||
#ifndef MODULESQT515_H
|
||||
#define MODULESQT515_H
|
||||
|
||||
|
@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2023-2023 QuasarApp.
|
||||
* Distributed under the lgplv3 software license, see the accompanying
|
||||
* Everyone is permitted to copy and distribute verbatim copies
|
||||
* of this license document, but changing it is not allowed.
|
||||
*/
|
||||
|
||||
#include "modulesqt5152.h"
|
||||
|
||||
ModulesQt5152::ModulesQt5152()
|
||||
|
@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2023 QuasarApp.
|
||||
* Distributed under the lgplv3 software license, see the accompanying
|
||||
* Everyone is permitted to copy and distribute verbatim copies
|
||||
* of this license document, but changing it is not allowed.
|
||||
*/
|
||||
|
||||
#ifndef MODULESQT5152_H
|
||||
#define MODULESQT5152_H
|
||||
|
||||
|
@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2023-2023 QuasarApp.
|
||||
* Distributed under the lgplv3 software license, see the accompanying
|
||||
* Everyone is permitted to copy and distribute verbatim copies
|
||||
* of this license document, but changing it is not allowed.
|
||||
*/
|
||||
|
||||
#include "modulesqt6_3.h"
|
||||
|
||||
ModulesQt63::ModulesQt63() {
|
||||
|
@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2023 QuasarApp.
|
||||
* Distributed under the lgplv3 software license, see the accompanying
|
||||
* Everyone is permitted to copy and distribute verbatim copies
|
||||
* of this license document, but changing it is not allowed.
|
||||
*/
|
||||
|
||||
#ifndef MODULESQT6_3_H
|
||||
#define MODULESQT6_3_H
|
||||
|
||||
|
@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2023-2023 QuasarApp.
|
||||
* Distributed under the lgplv3 software license, see the accompanying
|
||||
* Everyone is permitted to copy and distribute verbatim copies
|
||||
* of this license document, but changing it is not allowed.
|
||||
*/
|
||||
|
||||
#include "modulesqt6_4.h"
|
||||
|
||||
ModulesQt6_4::ModulesQt6_4()
|
||||
|
@ -1,3 +1,10 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2023 QuasarApp.
|
||||
* Distributed under the lgplv3 software license, see the accompanying
|
||||
* Everyone is permitted to copy and distribute verbatim copies
|
||||
* of this license document, but changing it is not allowed.
|
||||
*/
|
||||
|
||||
#ifndef MODULESQT6_4_H
|
||||
#define MODULESQT6_4_H
|
||||
|
||||
|
62
tests/modules/modulesqt6_5.cpp
Normal file
62
tests/modules/modulesqt6_5.cpp
Normal file
@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright (C) 2023-2023 QuasarApp.
|
||||
* Distributed under the lgplv3 software license, see the accompanying
|
||||
* Everyone is permitted to copy and distribute verbatim copies
|
||||
* of this license document, but changing it is not allowed.
|
||||
*/
|
||||
|
||||
#include "modulesqt6_5.h"
|
||||
|
||||
ModulesQt6_5::ModulesQt6_5()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
QSet<QString> ModulesQt6_5::qmlLibs(const QString &distDir) const {
|
||||
TestUtils utils;
|
||||
auto Tree = ModulesQt6_4::qmlLibs(distDir);
|
||||
|
||||
Tree -= utils.createTree(
|
||||
{
|
||||
"./" + distDir + "/qml/QtQml/libqmlplugin.so",
|
||||
"./" + distDir + "/qml/QtQml/plugins.qmltypes"
|
||||
}
|
||||
);
|
||||
|
||||
Tree += utils.createTree(
|
||||
{
|
||||
"./" + distDir + "/qml/QtQml/Base/libqmlplugin.so",
|
||||
"./" + distDir + "/qml/QtQml/Base/plugins.qmltypes",
|
||||
"./" + distDir + "/qml/QtQml/Base/qmldir",
|
||||
"./" + distDir + "/qml/QtQml/libqmlmetaplugin.so",
|
||||
"./" + distDir + "/qml/QtQuick/Controls/Material/impl/RoundedElevationEffect.qml"
|
||||
}
|
||||
);
|
||||
|
||||
return Tree;
|
||||
}
|
||||
|
||||
QSet<QString> ModulesQt6_5::qmlVirtualKeyBoadrLibs(const QString &distDir) const {
|
||||
|
||||
TestUtils utils;
|
||||
|
||||
auto Tree = ModulesQt6_4::qmlVirtualKeyBoadrLibs(distDir);
|
||||
return Tree;
|
||||
}
|
||||
|
||||
QSet<QString> ModulesQt6_5::qtWebEngine(const QString &distDir) const
|
||||
{
|
||||
TestUtils utils;
|
||||
|
||||
auto Tree = ModulesQt6_4::qtWebEngine(distDir);
|
||||
return Tree;
|
||||
}
|
||||
|
||||
QSet<QString> ModulesQt6_5::qtWebEngineWidgets(const QString &distDir) const
|
||||
{
|
||||
TestUtils utils;
|
||||
|
||||
auto Tree = ModulesQt6_4::qtWebEngineWidgets(distDir);
|
||||
|
||||
return Tree;
|
||||
}
|
25
tests/modules/modulesqt6_5.h
Normal file
25
tests/modules/modulesqt6_5.h
Normal file
@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright (C) 2023-2023 QuasarApp.
|
||||
* Distributed under the lgplv3 software license, see the accompanying
|
||||
* Everyone is permitted to copy and distribute verbatim copies
|
||||
* of this license document, but changing it is not allowed.
|
||||
*/
|
||||
|
||||
#ifndef MODULESQT6_5_H
|
||||
#define MODULESQT6_5_H
|
||||
|
||||
#include "modulesqt6_4.h"
|
||||
|
||||
class ModulesQt6_5: public ModulesQt6_4
|
||||
{
|
||||
public:
|
||||
ModulesQt6_5();
|
||||
QSet<QString> qmlLibs(const QString &distDir = DISTRO_DIR) const override;
|
||||
QSet<QString> qmlVirtualKeyBoadrLibs(const QString &distDir = DISTRO_DIR) const override;
|
||||
QSet<QString> qtWebEngine(const QString &distDir = DISTRO_DIR) const override;
|
||||
QSet<QString> qtWebEngineWidgets(const QString &distDir = DISTRO_DIR) const override;
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif // MODULESQT6_5_H
|
@ -11,7 +11,11 @@
|
||||
#include <configparser.h>
|
||||
#include <QSet>
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 4, 0)
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
|
||||
#include "modulesqt6_5.h"
|
||||
class Modules: public ModulesQt6_5
|
||||
|
||||
#elif QT_VERSION >= QT_VERSION_CHECK(6, 4, 0)
|
||||
#include "modulesqt6_4.h"
|
||||
class Modules: public ModulesQt6_4
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user