Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt65 #754

Merged
merged 2 commits into from
May 29, 2023
Merged

Qt65 #754

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)
Expand Down
7 changes: 7 additions & 0 deletions tests/modules/modulesqt515.cpp
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
7 changes: 7 additions & 0 deletions tests/modules/modulesqt515.h
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 7 additions & 0 deletions tests/modules/modulesqt5152.cpp
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
7 changes: 7 additions & 0 deletions tests/modules/modulesqt5152.h
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 7 additions & 0 deletions tests/modules/modulesqt6_3.cpp
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down
7 changes: 7 additions & 0 deletions tests/modules/modulesqt6_3.h
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 7 additions & 0 deletions tests/modules/modulesqt6_4.cpp
Original file line number Diff line number Diff line change
@@ -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()
Expand Down
7 changes: 7 additions & 0 deletions tests/modules/modulesqt6_4.h
Original file line number Diff line number Diff line change
@@ -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

Expand Down
62 changes: 62 additions & 0 deletions tests/modules/modulesqt6_5.cpp
Original file line number Diff line number Diff line change
@@ -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 changes: 25 additions & 0 deletions tests/modules/modulesqt6_5.h
Original file line number Diff line number Diff line change
@@ -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
6 changes: 5 additions & 1 deletion tests/units/modules.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down