aboutsummaryrefslogtreecommitdiffstats
path: root/src/m_gpg_info
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2026-09-19 12:00:17 +0200
committersaturneric <[email protected]>2026-09-19 12:00:17 +0200
commit447d273cc365a207c0875ae90c400951059d66c2 (patch)
treef2b625c8d9cb5c97b17cbc80cd20f91445c0daad /src/m_gpg_info
parentrefactor(module): centralize module headers and identity (diff)
downloadmodules-447d273cc365a207c0875ae90c400951059d66c2.tar.gz
modules-447d273cc365a207c0875ae90c400951059d66c2.zip
feat(modules): adopt manifest-driven module builds
- add module.json manifests with metadata and translation contexts - migrate four modules to the gf_add_module helper - preserve Qt, VMime, UI, and include directory configuration - reduce email module exports to its single ABI symbol - remove duplicated packaging and translation setup from CMakeListsաճառ
Diffstat (limited to 'src/m_gpg_info')
-rw-r--r--src/m_gpg_info/CMakeLists.txt37
-rw-r--r--src/m_gpg_info/module.json10
2 files changed, 15 insertions, 32 deletions
diff --git a/src/m_gpg_info/CMakeLists.txt b/src/m_gpg_info/CMakeLists.txt
index c78c08e..3967bbb 100644
--- a/src/m_gpg_info/CMakeLists.txt
+++ b/src/m_gpg_info/CMakeLists.txt
@@ -23,35 +23,8 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
-# com.bktus.gpgfrontend.module.integrated.gnupg_info_gathering
-
-set(INTEGRATED_MODULE_SOURCE "")
-aux_source_directory(. INTEGRATED_MODULE_SOURCE)
-
-# define libgpgfrontend_module
-register_module(gpg_info MODULE_TARGET ${INTEGRATED_MODULE_SOURCE})
-
-# link qt
-target_link_libraries(${MODULE_TARGET} PRIVATE Qt::Core Qt::Widgets Qt::Concurrent)
-
-# i18n
-set(LOCALE_TS_PATH ${CMAKE_CURRENT_SOURCE_DIR}/ts)
-gpgfrontend_collect_ts_files(TS_FILES "ModuleGnuPGInfoGathering" "${LOCALE_TS_PATH}")
-
-module_add_translations(${MODULE_TARGET}
- TS_FILES ${TS_FILES}
- SOURCES ${INTEGRATED_MODULE_SOURCE}
- INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR})
-
-# Build a signed `*.gfmodule` alongside the loose library. Packages are where
-# this is going -- loose libraries are transitional and a future version will
-# stop loading them -- but both are produced for now, so that a build of this
-# tree keeps working while the rest of the modules are packaged.
-gf_add_module_package(
- TARGET gpg_info
- MODULE_ID com.bktus.gpgfrontend.module.gnupg_info_gathering
- VERSION 1.2.2
- CAPABILITIES gpg
- META "Name=GatherGnupgInfo"
- "Description=Try gathering gnupg information."
- "Author=Saturneric")
+# Everything about this module -- id, version, name, description, author,
+# capabilities and translation context -- lives in module.json beside this file.
+gf_add_module(
+ NAME gpg_info
+ QT Core Widgets Concurrent)
diff --git a/src/m_gpg_info/module.json b/src/m_gpg_info/module.json
new file mode 100644
index 0000000..d008549
--- /dev/null
+++ b/src/m_gpg_info/module.json
@@ -0,0 +1,10 @@
+{
+ "schema_version": 1,
+ "id": "com.bktus.gpgfrontend.module.gnupg_info_gathering",
+ "version": "1.2.2",
+ "name": "GatherGnupgInfo",
+ "description": "Try gathering gnupg information.",
+ "author": "Saturneric",
+ "capabilities": ["gpg"],
+ "translation_context": "ModuleGnuPGInfoGathering"
+}