Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
lektor
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Kubat
lektor
Validations
4ac767d5
Valider
4ac767d5
rédigé
13 oct. 2022
par
Armorial
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Begin to use Qt6 instead of Qt5
parent
0dd90db7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion
!198
Migrate from Qt5 to Qt6
Pipeline
#3312
en échec
13 oct. 2022
Étape : build
Modifications
4
Pipelines
1
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
4 fichiers modifiés
CMakeLists.txt
+9
-15
9 ajouts, 15 suppressions
CMakeLists.txt
inc/lektor/internal/os.h
+2
-2
2 ajouts, 2 suppressions
inc/lektor/internal/os.h
src/module/qt_window/mpvwidget.hh
+1
-1
1 ajout, 1 suppression
src/module/qt_window/mpvwidget.hh
to_install
+2
-0
2 ajouts, 0 suppression
to_install
avec
14 ajouts
et
18 suppressions
CMakeLists.txt
+
9
−
15
Voir le fichier @
4ac767d5
...
...
@@ -101,6 +101,7 @@ set(Clang_C_FLAGS
)
set
(
Clang_CXX_FLAGS
$<$<COMPILE_LANGUAGE:CXX>:-Wno-c++98-compat-pedantic>
$<$<COMPILE_LANGUAGE:CXX>:-Wno-c++20-compat>
$<$<COMPILE_LANGUAGE:CXX>:-Wno-redundant-parens>
$<$<COMPILE_LANGUAGE:CXX>:-Wno-inconsistent-missing-override>
$<$<COMPILE_LANGUAGE:CXX>:-Wno-suggest-override>
...
...
@@ -120,8 +121,7 @@ find_library(MPV_LIBRARY mpv REQUIRED)
find_library
(
SQLITE3_LIBRARY sqlite3 REQUIRED version>=3.31.0
)
# tested with 3.34.1
find_package
(
CURL REQUIRED HTTP HTTPS
)
# tested with 7.74.0
find_package
(
QT NAMES Qt6 Qt5 COMPONENTS Widgets REQUIRED
)
find_package
(
Qt
${
QT_VERSION_MAJOR
}
COMPONENTS Widgets REQUIRED
)
find_package
(
Qt6 COMPONENTS REQUIRED Widgets OpenGL
)
set
(
CMAKE_AUTOUIC ON
)
set
(
CMAKE_AUTOMOC ON
)
...
...
@@ -281,20 +281,15 @@ add_custom_command(OUTPUT ${SQL_GENERATED_FILE}
COMMENT
"Generating SQL included files to embed them"
)
if
(
${
QT_VERSION_MAJOR
}
GREATER_EQUAL 6
)
qt_add_executable
(
lektord
MANUAL_FINALIZATION
${
lektord_SOURCES
}
${
SQL_GENERATED_FILE
}
)
else
()
add_executable
(
lektord
${
lektord_SOURCES
}
${
SQL_GENERATED_FILE
}
)
endif
()
add_executable
(
lkt
${
lkt_SOURCES
}
)
set_property
(
TARGET lektord PROPERTY CXX_STANDARD 20
)
set
(
MANPAGES_COMMANDS
)
if
(
GENERATE_MANPAGES
)
message
(
STATUS
"Generating manpages"
)
...
...
@@ -318,7 +313,8 @@ target_link_libraries(lektord PRIVATE
${
CMAKE_DL_LIBS
}
${
SQLITE3_LIBRARY
}
${
CURL_LIBRARIES
}
Qt
${
QT_VERSION_MAJOR
}
::Widgets
Qt::Widgets
Qt::OpenGL
)
target_link_libraries
(
lkt PRIVATE
${
OpenMP_C_LIBRARIES
}
...
...
@@ -351,8 +347,6 @@ target_compile_options(lkt PRIVATE
${${
CMAKE_C_COMPILER_ID
}
_
${
CMAKE_C_COMPILER_ID
}
_C_FLAGS
}
)
set_property
(
TARGET lektord PROPERTY CXX_STANDARD 20
)
set_directory_properties
(
PROPERTIES EP_PREFIX
${
CMAKE_BINARY_DIR
}
/Rust
)
ExternalProject_Add
(
amadeus_rs
...
...
@@ -384,7 +378,8 @@ add_dependencies(lektord liblektor_rs)
target_link_libraries
(
lektord
PRIVATE
"
${
CMAKE_SOURCE_DIR
}
/src/rust/target/
${
RUST_BUILD_TYPE
}
/liblektor_rs.a"
Qt
${
QT_VERSION_MAJOR
}
::Widgets
Qt::Widgets
Qt::OpenGL
)
### ###
...
...
@@ -414,6 +409,5 @@ foreach(CMD IN LISTS MANPAGE_COMMANDS)
)
endforeach
()
if
(
QT_VERSION_MAJOR EQUAL 6
)
qt_finalize_executable
(
lektord
)
endif
()
Ce diff est replié.
Cliquez pour l'agrandir.
inc/lektor/internal/os.h
+
2
−
2
Voir le fichier @
4ac767d5
...
...
@@ -74,12 +74,12 @@ enum {
typedef
void
(
*
function_ptr
)(
void
);
/* Attributes */
#define noreturn __attribute__((noreturn))
//
#define noreturn __attribute__((noreturn))
#define UNUSED __attribute__((unused))
#define UNUSED_FUNCTION UNUSED
#define CONSTRUCTOR_FUNCTION __attribute__((constructor)) static void
#define DESTRUCTOR_FUNCTION __attribute__((destructor)) static void
#define EXIT_FUNCTION noreturn void
#define EXIT_FUNCTION
__attribute__((
noreturn
))
void
#define PRIVATE_FUNCTION UNUSED_FUNCTION static inline
#define FALLTHROUGH __attribute__((fallthrough))
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
src/module/qt_window/mpvwidget.hh
+
1
−
1
Voir le fichier @
4ac767d5
#pragma once
#include
<QtWidgets/QOpenGLWidget>
#include
<Qt
OpenGL
Widgets/QOpenGLWidget>
#include
<mpv/client.h>
#include
<mpv/render_gl.h>
#include
<QtGui>
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
to_install
0 → 100644
+
2
−
0
Voir le fichier @
4ac767d5
qt6-base qt6-declarative qt6-imageformats qt6-location qt6-multimedia qt6-quickcontrols2 qt6-sensors qt6-speech qt6-svg qt6-tools qt6-translations qt6-virtualkeyboard qt6-wayland qt6-webchannel qt6-webengine
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter