diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-05-24 11:58:39 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-05-24 11:58:39 +0200 |
| commit | 72ab1fb4c1bf363f46470816d8b914a78ac493c4 (patch) | |
| tree | 27349a1bacbab4ea698be35d2d3d9b5184b15ca1 | |
| parent | b7f2ff4d991ae068f7834bf8e565f6261bf7fff1 (diff) | |
| download | turns-72ab1fb4c1bf363f46470816d8b914a78ac493c4.tar.xz turns-72ab1fb4c1bf363f46470816d8b914a78ac493c4.zip | |
gui: restructure file layout and apply licenses
| -rw-r--r-- | .clang-format | 5 | ||||
| -rw-r--r-- | .clangd | 3 | ||||
| -rw-r--r-- | .gitlab-ci.yml | 3 | ||||
| -rw-r--r-- | .gitmodules | 3 | ||||
| -rw-r--r-- | REUSE.toml | 28 | ||||
| -rw-r--r-- | gui/CMakeLists.txt | 3 | ||||
| -rw-r--r-- | gui/desktop.in | 3 | ||||
| -rw-r--r-- | gui/gschema.xml (renamed from gui/schemas/ch.arknet.Turns.gschema.xml) | 2 | ||||
| -rw-r--r-- | gui/include/messages.hpp (renamed from gui/lang/include/turns/lang/messages.hpp) | 5 | ||||
| -rw-r--r-- | gui/include/participant_editor.hpp (renamed from gui/ui/include/turns/ui/participant_editor.hpp) | 5 | ||||
| -rw-r--r-- | gui/include/participant_row.hpp (renamed from gui/ui/include/turns/ui/participant_row.hpp) | 5 | ||||
| -rw-r--r-- | gui/include/preferences.hpp (renamed from gui/ui/include/turns/ui/preferences.hpp) | 5 | ||||
| -rw-r--r-- | gui/include/settings.hpp (renamed from gui/settings.hpp) | 5 | ||||
| -rw-r--r-- | gui/include/template_widget.hpp (renamed from gui/ui/include/turns/ui/template_widget.hpp) | 5 | ||||
| -rw-r--r-- | gui/include/tracker.hpp (renamed from gui/ui/include/turns/ui/tracker.hpp) | 5 | ||||
| -rw-r--r-- | gui/include/turn_order_view.hpp (renamed from gui/ui/include/turns/ui/turn_order_view.hpp) | 5 | ||||
| -rw-r--r-- | gui/lang/CMakeLists.txt | 77 | ||||
| -rw-r--r-- | gui/lang/de.po (renamed from gui/lang/po/de.po) | 0 | ||||
| -rw-r--r-- | gui/lang/de_CH.po (renamed from gui/lang/po/de_CH.po) | 0 | ||||
| -rw-r--r-- | gui/lang/en.po (renamed from gui/lang/po/en.po) | 0 | ||||
| -rw-r--r-- | gui/metainfo.xml | 2 | ||||
| -rw-r--r-- | gui/mime.xml | 2 | ||||
| -rw-r--r-- | gui/src/main.cpp | 5 | ||||
| -rw-r--r-- | gui/src/participant_editor.cpp (renamed from gui/ui/src/participant_editor.cpp) | 5 | ||||
| -rw-r--r-- | gui/src/participant_row.cpp (renamed from gui/ui/src/participant_row.cpp) | 5 | ||||
| -rw-r--r-- | gui/src/preferences.cpp (renamed from gui/ui/src/preferences.cpp) | 5 | ||||
| -rw-r--r-- | gui/src/settings.cpp (renamed from gui/settings.cpp) | 5 | ||||
| -rw-r--r-- | gui/src/tracker.cpp (renamed from gui/ui/src/tracker.cpp) | 5 | ||||
| -rw-r--r-- | gui/src/tracker_actions.cpp (renamed from gui/ui/src/tracker/actions.cpp) | 5 | ||||
| -rw-r--r-- | gui/src/tracker_event_handlers.cpp (renamed from gui/ui/src/tracker/event_handlers.cpp) | 5 | ||||
| -rw-r--r-- | gui/src/turn_order_view.cpp (renamed from gui/ui/src/turn_order_view.cpp) | 5 | ||||
| -rw-r--r-- | gui/style/CMakeLists.txt | 18 | ||||
| -rw-r--r-- | gui/tests/gtk_test_init.cpp (renamed from gui/ui/tests/gtk_test_init.cpp) | 5 | ||||
| -rw-r--r-- | gui/tests/intl_test_init.cpp (renamed from gui/lang/tests/intl_test_init.cpp) | 5 | ||||
| -rw-r--r-- | gui/tests/messages.cpp (renamed from gui/lang/tests/messages.cpp) | 5 | ||||
| -rw-r--r-- | gui/tests/participant_editor.cpp (renamed from gui/ui/tests/participant_editor.cpp) | 5 | ||||
| -rw-r--r-- | gui/tests/participant_row.cpp (renamed from gui/ui/tests/participant_row.cpp) | 5 | ||||
| -rw-r--r-- | gui/tests/resources.cpp (renamed from gui/ui/tests/resources.cpp) | 5 | ||||
| -rw-r--r-- | gui/tests/tracker.cpp (renamed from gui/ui/tests/tracker.cpp) | 5 | ||||
| -rw-r--r-- | gui/ui/CMakeLists.txt | 59 | ||||
| -rw-r--r-- | gui/ui/include/turns/ui/fwd.hpp | 14 | ||||
| -rw-r--r-- | gui/ui/include/turns/ui/init.hpp | 15 | ||||
| -rw-r--r-- | gui/ui/participant_editor.ui (renamed from gui/ui/src/participant_editor.ui) | 2 | ||||
| -rw-r--r-- | gui/ui/participant_row.ui (renamed from gui/ui/src/participant_row.ui) | 0 | ||||
| -rw-r--r-- | gui/ui/preferences.ui (renamed from gui/ui/src/preferences.ui) | 0 | ||||
| -rw-r--r-- | gui/ui/src/init.cpp | 23 | ||||
| -rw-r--r-- | gui/ui/style-dark.css (renamed from gui/style/style-dark.css) | 0 | ||||
| -rw-r--r-- | gui/ui/style.css (renamed from gui/style/style.css) | 0 | ||||
| -rw-r--r-- | gui/ui/tracker.ui (renamed from gui/ui/src/tracker.ui) | 2 | ||||
| -rw-r--r-- | gui/ui/turn_order_view.ui (renamed from gui/ui/src/turn_order_view.ui) | 0 | ||||
| -rw-r--r-- | gui/ui/turns.cmb | 10 | ||||
| -rw-r--r-- | gui/ui/ui.cmb | 10 |
52 files changed, 172 insertions, 232 deletions
diff --git a/.clang-format b/.clang-format index 98b4862..187d49c 100644 --- a/.clang-format +++ b/.clang-format @@ -1,7 +1,4 @@ -# SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> -# SPDX-License-Identifier: CC0-1.0 - ---- +--- Language: Cpp AccessModifierOffset: -2 @@ -1,6 +1,3 @@ -# SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> -# SPDX-License-Identifier: CC0-1.0 - CompileFlags: Remove: [-fmodules-ts, -fdeps-format=*, -fmodule-mapper=*, -fcondition-coverage] Diagnostics: diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8df6d7b..faea96e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,3 @@ -# SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> -# SPDX-License-Identifier: CC0-1.0 - stages: - build - coverage diff --git a/.gitmodules b/.gitmodules index 92078e8..a29ece2 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,3 @@ -# SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> -# SPDX-License-Identifier: CC0-1.0 - [submodule "deps/libadwaitamm"] path = deps/libadwaitamm url = ../libadwaitamm.git diff --git a/REUSE.toml b/REUSE.toml new file mode 100644 index 0000000..5a94cb2 --- /dev/null +++ b/REUSE.toml @@ -0,0 +1,28 @@ +version = 1 + +[[annotations]] +path = [ + "gui/**.cmb", + "gui/**.css", + "gui/**.po", + "gui/**.ui", + "cmake/Modules/GlibCompileResources.in" +] +precedence = "aggregate" +SPDX-FileCopyrightText = "2025 Felix Morgner <felix.morgner@gmail.com>" +SPDX-License-Identifier = "LGPL-2.1-only" + +[[annotations]] +path = [ + ".vscode/**.json", + ".clang-format", + ".clangd", + ".gitmodules", + ".gitlab-ci.yml", + ".lcovrc", + "CMakePresets.json", + "README.md", +] +precedence = "aggregate" +SPDX-FileCopyrightText = "2025 Felix Morgner <felix.morgner@gmail.com>" +SPDX-License-Identifier = "CC0-1.0"
\ No newline at end of file diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index 1ae7a31..ebdb1be 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -1,4 +1,5 @@ - +# SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> +# SPDX-License-Identifier: LGPL-2.1-only # add_executable("app" # "src/main.cpp" diff --git a/gui/desktop.in b/gui/desktop.in index 99c0307..7e767ba 100644 --- a/gui/desktop.in +++ b/gui/desktop.in @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> +# SPDX-License-Identifier: LGPL-2.1-only + [Desktop Entry] Type=Application Name=Turns diff --git a/gui/schemas/ch.arknet.Turns.gschema.xml b/gui/gschema.xml index d764608..bea1f8b 100644 --- a/gui/schemas/ch.arknet.Turns.gschema.xml +++ b/gui/gschema.xml @@ -1,4 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> +<!--SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>--> +<!--SPDX-License-Identifier: LGPL-2.1-only--> <schemalist> <schema path="/ch/arknet/Turns/" id="ch.arknet.Turns"> <key name="disposition-color-friendly" type="s"> diff --git a/gui/lang/include/turns/lang/messages.hpp b/gui/include/messages.hpp index e57fce4..e29580b 100644 --- a/gui/lang/include/turns/lang/messages.hpp +++ b/gui/include/messages.hpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #ifndef TURNS_LANG_MESSAGES_HPP #define TURNS_LANG_MESSAGES_HPP diff --git a/gui/ui/include/turns/ui/participant_editor.hpp b/gui/include/participant_editor.hpp index 0fbc504..39b721c 100644 --- a/gui/ui/include/turns/ui/participant_editor.hpp +++ b/gui/include/participant_editor.hpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #ifndef TURNS_UI_PARTICIPANT_EDITOR_HPP #define TURNS_UI_PARTICIPANT_EDITOR_HPP diff --git a/gui/ui/include/turns/ui/participant_row.hpp b/gui/include/participant_row.hpp index 561214b..81b3610 100644 --- a/gui/ui/include/turns/ui/participant_row.hpp +++ b/gui/include/participant_row.hpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #ifndef TURNS_UI_PARTICIPANT_ROW_HPP #define TURNS_UI_PARTICIPANT_ROW_HPP diff --git a/gui/ui/include/turns/ui/preferences.hpp b/gui/include/preferences.hpp index b68b91c..c5bace3 100644 --- a/gui/ui/include/turns/ui/preferences.hpp +++ b/gui/include/preferences.hpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #ifndef TURNS_UI_PREFERENCES_HPP #define TURNS_UI_PREFERENCES_HPP diff --git a/gui/settings.hpp b/gui/include/settings.hpp index 304394d..70e429a 100644 --- a/gui/settings.hpp +++ b/gui/include/settings.hpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #ifndef TURNS_CORE_SETTINGS_HPP #define TURNS_CORE_SETTINGS_HPP diff --git a/gui/ui/include/turns/ui/template_widget.hpp b/gui/include/template_widget.hpp index 7147560..f90b473 100644 --- a/gui/ui/include/turns/ui/template_widget.hpp +++ b/gui/include/template_widget.hpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #ifndef TURNS_UI_TEMPLATE_WIDGET_HPP #define TURNS_UI_TEMPLATE_WIDGET_HPP diff --git a/gui/ui/include/turns/ui/tracker.hpp b/gui/include/tracker.hpp index 2e3adf5..d639aee 100644 --- a/gui/ui/include/turns/ui/tracker.hpp +++ b/gui/include/tracker.hpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #ifndef TURNS_UI_TRACKER_HPP #define TURNS_UI_TRACKER_HPP diff --git a/gui/ui/include/turns/ui/turn_order_view.hpp b/gui/include/turn_order_view.hpp index 8dae4e4..9a7ede6 100644 --- a/gui/ui/include/turns/ui/turn_order_view.hpp +++ b/gui/include/turn_order_view.hpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #ifndef TURNS_UI_TURN_ORDER_VIEW_HPP #define TURNS_UI_TURN_ORDER_VIEW_HPP diff --git a/gui/lang/CMakeLists.txt b/gui/lang/CMakeLists.txt deleted file mode 100644 index 1842615..0000000 --- a/gui/lang/CMakeLists.txt +++ /dev/null @@ -1,77 +0,0 @@ -set(TRANSLATIONS - "de" - "de_CH" - "en" -) - -foreach(LANG IN LISTS TRANSLATIONS) - set(BINARY_FILE "${CMAKE_CURRENT_BINARY_DIR}/${LANG}/LC_MESSAGES/turns.mo") - set(SOURCE_FILE "${CMAKE_CURRENT_SOURCE_DIR}/po/${LANG}.po") - - list(APPEND TRANSLATION_BINARIES "${BINARY_FILE}") - - add_custom_command(OUTPUT "${BINARY_FILE}" - COMMAND "${GETTEXT_MSGFMT_EXECUTABLE}" - ARGS - "-o" - "${BINARY_FILE}" - "${SOURCE_FILE}" - WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" - DEPENDS - "${SOURCE_FILE}" - COMMENT "Processing translation ${LANG}" - ) - - install(FILES "${BINARY_FILE}" - DESTINATION "${CMAKE_INSTALL_FULL_LOCALEDIR}/${LANG}/LC_MESSAGES" - ) -endforeach() - -add_custom_target("mofiles" DEPENDS ${TRANSLATION_BINARIES}) - -add_library("lang" INTERFACE) - -add_library("turns::lang" ALIAS "lang") - -if(TURNS_USE_INSTALLED_TRANSLATIONS) - target_compile_definitions("lang" INTERFACE - "LOCALEDIR=\"${CMAKE_INSTALL_FULL_LOCALEDIR}\"" - ) -else() - target_compile_definitions("lang" INTERFACE - "LOCALEDIR=\"${CMAKE_CURRENT_BINARY_DIR}\"" - ) -endif() - -target_include_directories("lang" INTERFACE - "include" -) - -add_dependencies("lang" "mofiles") - -# Tests - -add_executable("lang-tests" - "tests/intl_test_init.cpp" - - "tests/messages.cpp" -) - -target_link_libraries("lang-tests" PRIVATE - "Catch2::Catch2WithMain" - "Intl::Intl" - - "turns::lang" -) - -target_compile_definitions("lang-tests" PRIVATE - "TESTLOCALEDIR=\"${CMAKE_CURRENT_BINARY_DIR}\"" -) - -enable_coverage("lang-tests") - -target_link_options("lang-tests" PRIVATE - "$<$<AND:$<CXX_COMPILER_ID:GNU,Clang>,$<CONFIG:Debug>>:--coverage>" -) - -catch_discover_tests("lang-tests")
\ No newline at end of file diff --git a/gui/lang/po/de.po b/gui/lang/de.po index 15c2d72..15c2d72 100644 --- a/gui/lang/po/de.po +++ b/gui/lang/de.po diff --git a/gui/lang/po/de_CH.po b/gui/lang/de_CH.po index e79f91e..e79f91e 100644 --- a/gui/lang/po/de_CH.po +++ b/gui/lang/de_CH.po diff --git a/gui/lang/po/en.po b/gui/lang/en.po index 54df09f..54df09f 100644 --- a/gui/lang/po/en.po +++ b/gui/lang/en.po diff --git a/gui/metainfo.xml b/gui/metainfo.xml index 621c1ee..f8beb6b 100644 --- a/gui/metainfo.xml +++ b/gui/metainfo.xml @@ -1,4 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> +<!--SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>--> +<!--SPDX-License-Identifier: LGPL-2.1-only--> <component type="desktop"> <id>ch.arknet.Turns</id> <metadata_license>CC-BY-SA-4.0</metadata_license> diff --git a/gui/mime.xml b/gui/mime.xml index 92e0ff4..ffa6d31 100644 --- a/gui/mime.xml +++ b/gui/mime.xml @@ -1,4 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> +<!--SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com>--> +<!--SPDX-License-Identifier: LGPL-2.1-only--> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> <mime-type type="text/x-turn-order"> <comment>Turn order file</comment> diff --git a/gui/src/main.cpp b/gui/src/main.cpp index 030aa0f..a1f9843 100644 --- a/gui/src/main.cpp +++ b/gui/src/main.cpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + // #include "turns/core/init.hpp" // #include "turns/core/settings.hpp" // #include "turns/ui/init.hpp" diff --git a/gui/ui/src/participant_editor.cpp b/gui/src/participant_editor.cpp index 8c83559..998d566 100644 --- a/gui/ui/src/participant_editor.cpp +++ b/gui/src/participant_editor.cpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #include "turns/ui/participant_editor.hpp" #include "turns/core/disposition.hpp" diff --git a/gui/ui/src/participant_row.cpp b/gui/src/participant_row.cpp index 7ce8e53..c0f53df 100644 --- a/gui/ui/src/participant_row.cpp +++ b/gui/src/participant_row.cpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #include "turns/ui/participant_row.hpp" #include "turns/core/disposition.hpp" diff --git a/gui/ui/src/preferences.cpp b/gui/src/preferences.cpp index 88e6d0f..cd6cdbf 100644 --- a/gui/ui/src/preferences.cpp +++ b/gui/src/preferences.cpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #include "turns/ui/preferences.hpp" #include "turns/core/settings.hpp" diff --git a/gui/settings.cpp b/gui/src/settings.cpp index 13cf665..161a709 100644 --- a/gui/settings.cpp +++ b/gui/src/settings.cpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #include "turns/core/settings.hpp" #include <glibmm/refptr.h> diff --git a/gui/ui/src/tracker.cpp b/gui/src/tracker.cpp index d67a6e0..dd926b5 100644 --- a/gui/ui/src/tracker.cpp +++ b/gui/src/tracker.cpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #include "turns/ui/tracker.hpp" #include "turns/core/settings.hpp" diff --git a/gui/ui/src/tracker/actions.cpp b/gui/src/tracker_actions.cpp index ba48177..7149f0e 100644 --- a/gui/ui/src/tracker/actions.cpp +++ b/gui/src/tracker_actions.cpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #include "turns/core/participant.hpp" #include "turns/lang/messages.hpp" #include "turns/ui/participant_editor.hpp" diff --git a/gui/ui/src/tracker/event_handlers.cpp b/gui/src/tracker_event_handlers.cpp index 78eb82b..ae0328c 100644 --- a/gui/ui/src/tracker/event_handlers.cpp +++ b/gui/src/tracker_event_handlers.cpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #include "turns/lang/messages.hpp" #include "turns/ui/tracker.hpp" diff --git a/gui/ui/src/turn_order_view.cpp b/gui/src/turn_order_view.cpp index 08fdf5d..5e5d550 100644 --- a/gui/ui/src/turn_order_view.cpp +++ b/gui/src/turn_order_view.cpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #include "turns/ui/turn_order_view.hpp" #include "turns/core/participant.hpp" diff --git a/gui/style/CMakeLists.txt b/gui/style/CMakeLists.txt deleted file mode 100644 index 8ddbae8..0000000 --- a/gui/style/CMakeLists.txt +++ /dev/null @@ -1,18 +0,0 @@ -add_library("style") - -add_library("turns::style" ALIAS "style") - -target_add_glib_resources("style" - PREFIX "ch/arknet/Turns" - CSS_FILES - "style.css" - "style-dark.css" -) - -target_link_libraries("style" PUBLIC - "PkgConfig::giomm" - PRIVATE - "$<$<AND:$<CXX_COMPILER_ID:GNU,Clang>,$<CONFIG:Debug>>:gcov>" -) - -enable_coverage("style") diff --git a/gui/ui/tests/gtk_test_init.cpp b/gui/tests/gtk_test_init.cpp index bfa885f..fdefa74 100644 --- a/gui/ui/tests/gtk_test_init.cpp +++ b/gui/tests/gtk_test_init.cpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #include "turns/core/init.hpp" #include "turns/ui/init.hpp" diff --git a/gui/lang/tests/intl_test_init.cpp b/gui/tests/intl_test_init.cpp index 5438179..e7b7c0f 100644 --- a/gui/lang/tests/intl_test_init.cpp +++ b/gui/tests/intl_test_init.cpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #include <catch2/reporters/catch_reporter_event_listener.hpp> #include <catch2/reporters/catch_reporter_registrars.hpp> diff --git a/gui/lang/tests/messages.cpp b/gui/tests/messages.cpp index cecb038..6ff8936 100644 --- a/gui/lang/tests/messages.cpp +++ b/gui/tests/messages.cpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #include "turns/lang/messages.hpp" #include <catch2/catch_test_macros.hpp> diff --git a/gui/ui/tests/participant_editor.cpp b/gui/tests/participant_editor.cpp index fee0313..b5ddb9f 100644 --- a/gui/ui/tests/participant_editor.cpp +++ b/gui/tests/participant_editor.cpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #include "turns/ui/participant_editor.hpp" #include "turns/core/disposition.hpp" diff --git a/gui/ui/tests/participant_row.cpp b/gui/tests/participant_row.cpp index 20eaa5c..e32be78 100644 --- a/gui/ui/tests/participant_row.cpp +++ b/gui/tests/participant_row.cpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #include "turns/ui/participant_row.hpp" #include "turns/core/disposition.hpp" diff --git a/gui/ui/tests/resources.cpp b/gui/tests/resources.cpp index a091266..97a1a6b 100644 --- a/gui/ui/tests/resources.cpp +++ b/gui/tests/resources.cpp @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Felix Morgner <felix.morgner@gmail.com> + * SPDX-License-Identifier: LGPL-2.1-only + */ + #include <catch2/catch_test_macros.hpp> #include <catch2/generators/catch_generators.hpp> |
