Merge branch 'release-1.6.0' into main
The release moved every source into its own layer (core/, app/, pages/,
providers/, preferences/, logging/, archive/, update/, translations/) and
replaced the plugin shop with .fwspacm packages. main added the headless update
check run at login. Both sides are kept, the feature moved onto the new layout:
- core/startup-check.{h,cpp} and its test, wired into the CMake targets the
release renamed (core/startup-check.cpp, startup-check-test);
- app/main.cpp carries the --check-updates branch, ahead of the command line so
the login unit never opens a window;
- the settings menu keeps the "check at startup" toggle, now through tr(), and
translations/en.json gains the new strings;
- doc/mise-a-jour.md keeps the release's version and gains the startup-check
section; the documented test count follows the new target.
This commit is contained in:
104 files changed
+9222
-2036
No files matched your search
+199
-95
@@ -22,68 +22,96 @@ set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS
|
||||
# Find Qt6
|
||||
find_package(Qt6 REQUIRED COMPONENTS Widgets Network)
|
||||
|
||||
# zlib reads the deflated entries of a .fwspacm package. Qt links it anyway, so
|
||||
# it is present on any system this builds on; there is no public Qt API for ZIP.
|
||||
find_package(ZLIB REQUIRED)
|
||||
|
||||
# Main executable
|
||||
set(SOURCES
|
||||
src/main.cpp
|
||||
src/main-window.cpp
|
||||
src/pacman-manager.cpp
|
||||
src/plugin-manager.cpp
|
||||
src/history-manager.cpp
|
||||
src/package-model.cpp
|
||||
src/update-manager.cpp
|
||||
app/main.cpp
|
||||
app/main-window.cpp
|
||||
# Command-line front-end: parsing, then the runner over the logic layer.
|
||||
cli/cli-command.cpp
|
||||
cli/cli-application.cpp
|
||||
providers/pacman-manager.cpp
|
||||
plugins/plugin-manager.cpp
|
||||
history/history-manager.cpp
|
||||
core/package-model.cpp
|
||||
update/update-manager.cpp
|
||||
# Headless pass run at login by the systemd unit the app installs itself.
|
||||
src/startup-check.cpp
|
||||
src/app-logging.cpp
|
||||
# Logic layer: background workers, the plugin shop and the controller the
|
||||
# screens delegate to.
|
||||
src/workers.cpp
|
||||
src/plugin-shop.cpp
|
||||
src/app-core.cpp
|
||||
core/startup-check.cpp
|
||||
logging/app-logging.cpp
|
||||
preferences/app-settings.cpp
|
||||
preferences/language-manager.cpp
|
||||
# Logic layer: background workers, the plugin package installer and the
|
||||
# controller the screens delegate to.
|
||||
core/workers.cpp
|
||||
archive/zip-archive.cpp
|
||||
plugins/plugin-package.cpp
|
||||
core/app-core.cpp
|
||||
# Interface: one file per screen under pages/, on top of the logic layer.
|
||||
pages/page.cpp
|
||||
pages/ui-kit.cpp
|
||||
pages/dashboard-page.cpp
|
||||
pages/browse-page.cpp
|
||||
pages/cleanup-page.cpp
|
||||
pages/history-page.cpp
|
||||
src/log-manager.cpp
|
||||
pages/logs-page.cpp
|
||||
pages/plugins-page.cpp
|
||||
pages/base/page.cpp
|
||||
pages/base/ui-kit.cpp
|
||||
pages/overview/dashboard-page.cpp
|
||||
pages/packages/browse-page.cpp
|
||||
pages/packages/cleanup-page.cpp
|
||||
pages/overview/history-page.cpp
|
||||
logging/log-manager.cpp
|
||||
pages/system/logs-page.cpp
|
||||
pages/extensions/plugins-page.cpp
|
||||
pages/system/settings-page.cpp
|
||||
resources/resources.qrc
|
||||
)
|
||||
|
||||
set(HEADERS
|
||||
include/package-manager.h
|
||||
include/pacman-manager.h
|
||||
include/plugin-manager.h
|
||||
include/provider-plugin.h
|
||||
include/main-window.h
|
||||
include/history-manager.h
|
||||
include/package-model.h
|
||||
include/update-manager.h
|
||||
include/startup-check.h
|
||||
include/app-logging.h
|
||||
include/workers.h
|
||||
include/progress-tracker.h
|
||||
include/plugin-shop.h
|
||||
include/app-core.h
|
||||
include/log-manager.h
|
||||
pages/page.h
|
||||
pages/ui-kit.h
|
||||
pages/dashboard-page.h
|
||||
pages/browse-page.h
|
||||
pages/cleanup-page.h
|
||||
pages/history-page.h
|
||||
pages/logs-page.h
|
||||
pages/plugins-page.h
|
||||
include/sdk/package-manager.h
|
||||
cli/cli-command.h
|
||||
cli/cli-application.h
|
||||
providers/pacman-manager.h
|
||||
plugins/plugin-manager.h
|
||||
include/sdk/provider-plugin.h
|
||||
app/main-window.h
|
||||
history/history-manager.h
|
||||
core/package-model.h
|
||||
update/update-manager.h
|
||||
core/startup-check.h
|
||||
logging/app-logging.h
|
||||
preferences/app-settings.h
|
||||
preferences/language-manager.h
|
||||
core/workers.h
|
||||
include/sdk/progress-tracker.h
|
||||
include/sdk/provider-trace.h
|
||||
archive/zip-archive.h
|
||||
plugins/plugin-package.h
|
||||
core/app-core.h
|
||||
logging/log-manager.h
|
||||
pages/base/page.h
|
||||
pages/base/ui-kit.h
|
||||
pages/overview/dashboard-page.h
|
||||
pages/packages/browse-page.h
|
||||
pages/packages/cleanup-page.h
|
||||
pages/overview/history-page.h
|
||||
pages/system/logs-page.h
|
||||
pages/extensions/plugins-page.h
|
||||
pages/system/settings-page.h
|
||||
)
|
||||
|
||||
add_executable(${PROJECT_NAME} ${SOURCES} ${HEADERS})
|
||||
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE include pages)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE Qt6::Widgets Qt6::Network)
|
||||
# External addons are shared libraries resolved against the running executable,
|
||||
# so its symbols have to be in the dynamic symbol table (ENABLE_EXPORTS adds
|
||||
# -rdynamic). Without it a plugin can implement the IPlugin contract but cannot
|
||||
# call back into AppCore or the pages, which is what a UI addon needs to act.
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES ENABLE_EXPORTS ON)
|
||||
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE
|
||||
include pages pages/base pages/packages pages/overview pages/system pages/extensions include/sdk logging preferences history archive update plugins providers core app cli)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE Qt6::Widgets Qt6::Network ZLIB::ZLIB)
|
||||
target_compile_definitions(${PROJECT_NAME} PRIVATE
|
||||
FWSPACMANAGE_VERSION="${PACMANAGER_VERSION}")
|
||||
FWSPACMANAGE_VERSION="${PACMANAGER_VERSION}"
|
||||
# LanguageManager walks the widgets to retranslate them, which only the
|
||||
# Widgets module provides; the headless test target leaves it out.
|
||||
PACMANAGER_HAS_WIDGETS)
|
||||
|
||||
# Copy the version file next to the executable so UpdateManager can read the
|
||||
# running build's version at runtime.
|
||||
@@ -138,48 +166,50 @@ MimeType=application/vnd.flatpak.ref;application/vnd.flatpak.repo;application/vn
|
||||
StartupNotify=true
|
||||
\")
|
||||
")
|
||||
install(DIRECTORY include/ DESTINATION include/${PROJECT_NAME})
|
||||
install(DIRECTORY include/sdk/ DESTINATION include/${PROJECT_NAME})
|
||||
|
||||
# Tests
|
||||
enable_testing()
|
||||
add_executable(pacman-manager-test tests/pacman-manager.test.cpp src/pacman-manager.cpp)
|
||||
target_include_directories(pacman-manager-test PRIVATE include)
|
||||
add_executable(pacman-manager-test tests/pacman-manager.test.cpp providers/pacman-manager.cpp)
|
||||
target_include_directories(pacman-manager-test PRIVATE include include/sdk logging preferences history archive update plugins providers core app)
|
||||
add_test(NAME pacman-manager-test COMMAND pacman-manager-test)
|
||||
|
||||
add_executable(flatpak-manager-test tests/flatpak-manager.test.cpp
|
||||
plugins/flatpak-provider/flatpak-manager.cpp)
|
||||
target_include_directories(flatpak-manager-test PRIVATE include plugins/flatpak-provider)
|
||||
providers/flatpak-provider/flatpak-manager.cpp)
|
||||
target_include_directories(flatpak-manager-test PRIVATE include include/sdk logging preferences history archive update providers/flatpak-provider)
|
||||
add_test(NAME flatpak-manager-test COMMAND flatpak-manager-test)
|
||||
|
||||
# Real end-to-end test of the Flatpak provider against the live flatpak CLI
|
||||
# (installs and uninstalls a small app). Skipped when flatpak is missing.
|
||||
add_executable(flatpak-integration-test tests/flatpak-integration.test.cpp
|
||||
plugins/flatpak-provider/flatpak-manager.cpp)
|
||||
target_include_directories(flatpak-integration-test PRIVATE include plugins/flatpak-provider)
|
||||
providers/flatpak-provider/flatpak-manager.cpp)
|
||||
target_include_directories(flatpak-integration-test PRIVATE include include/sdk logging preferences history archive update providers/flatpak-provider)
|
||||
add_test(NAME flatpak-integration-test COMMAND flatpak-integration-test)
|
||||
|
||||
add_executable(package-utils-test tests/package-utils.test.cpp)
|
||||
target_include_directories(package-utils-test PRIVATE include)
|
||||
target_include_directories(package-utils-test PRIVATE include include/sdk logging preferences history archive update plugins providers core app)
|
||||
add_test(NAME package-utils-test COMMAND package-utils-test)
|
||||
|
||||
# ProgressTracker is pure logic (it only reads output lines), so it is tested
|
||||
# without a package manager, a display or even Qt.
|
||||
add_executable(progress-tracker-test tests/progress-tracker.test.cpp)
|
||||
target_include_directories(progress-tracker-test PRIVATE include)
|
||||
target_include_directories(progress-tracker-test PRIVATE include include/sdk logging preferences history archive update plugins providers core app)
|
||||
add_test(NAME progress-tracker-test COMMAND progress-tracker-test)
|
||||
|
||||
# PluginShop: catalogue parsing and the install/uninstall bookkeeping. The
|
||||
# network half is exercised through the catalogue parser; the file half runs in
|
||||
# a temporary directory, and the settings go to a temporary INI too.
|
||||
add_executable(plugin-shop-test tests/plugin-shop.test.cpp
|
||||
src/plugin-shop.cpp src/app-logging.cpp include/plugin-shop.h)
|
||||
target_include_directories(plugin-shop-test PRIVATE include)
|
||||
target_link_libraries(plugin-shop-test PRIVATE Qt6::Core Qt6::Network)
|
||||
add_test(NAME plugin-shop-test COMMAND plugin-shop-test)
|
||||
# PluginPackage: the .fwspacm format. The archives are built in the test itself
|
||||
# (a stored and a deflated entry, so both compression methods are exercised),
|
||||
# the file half runs in a temporary directory, and the settings go to a
|
||||
# temporary INI too, so nothing touches the user's real plugin directory.
|
||||
add_executable(plugin-package-test tests/plugin-package.test.cpp
|
||||
plugins/plugin-package.cpp archive/zip-archive.cpp logging/app-logging.cpp
|
||||
plugins/plugin-package.h archive/zip-archive.h)
|
||||
target_include_directories(plugin-package-test PRIVATE include include/sdk logging preferences history archive update plugins providers core app)
|
||||
target_link_libraries(plugin-package-test PRIVATE Qt6::Core ZLIB::ZLIB)
|
||||
add_test(NAME plugin-package-test COMMAND plugin-package-test)
|
||||
|
||||
add_executable(aur-manager-test tests/aur-manager.test.cpp
|
||||
plugins/aur-provider/aur-manager.cpp)
|
||||
target_include_directories(aur-manager-test PRIVATE include plugins/aur-provider)
|
||||
providers/aur-provider/aur-manager.cpp)
|
||||
target_include_directories(aur-manager-test PRIVATE include include/sdk logging preferences history archive update providers/aur-provider)
|
||||
add_test(NAME aur-manager-test COMMAND aur-manager-test)
|
||||
|
||||
# UpdateManager::isNewerVersion is pure logic, but the file also pulls in Qt
|
||||
@@ -189,21 +219,94 @@ add_test(NAME aur-manager-test COMMAND aur-manager-test)
|
||||
# The Q_OBJECT headers are listed explicitly so AUTOMOC generates their moc
|
||||
# file for this target (same reason as update-manager-test below).
|
||||
add_executable(app-core-test tests/app-core.test.cpp
|
||||
src/app-core.cpp src/workers.cpp src/pacman-manager.cpp
|
||||
src/plugin-manager.cpp src/history-manager.cpp src/update-manager.cpp
|
||||
src/plugin-shop.cpp src/startup-check.cpp
|
||||
src/app-logging.cpp src/log-manager.cpp
|
||||
include/app-core.h include/workers.h include/update-manager.h
|
||||
include/startup-check.h include/plugin-shop.h include/log-manager.h)
|
||||
target_include_directories(app-core-test PRIVATE include)
|
||||
target_link_libraries(app-core-test PRIVATE Qt6::Core Qt6::Network)
|
||||
core/app-core.cpp core/workers.cpp providers/pacman-manager.cpp
|
||||
plugins/plugin-manager.cpp history/history-manager.cpp update/update-manager.cpp
|
||||
core/startup-check.cpp
|
||||
plugins/plugin-package.cpp archive/zip-archive.cpp
|
||||
logging/app-logging.cpp logging/log-manager.cpp preferences/app-settings.cpp
|
||||
core/app-core.h core/workers.h update/update-manager.h
|
||||
core/startup-check.h
|
||||
plugins/plugin-package.h archive/zip-archive.h logging/log-manager.h
|
||||
preferences/app-settings.h)
|
||||
target_include_directories(app-core-test PRIVATE include include/sdk logging preferences history archive update plugins providers core app)
|
||||
target_link_libraries(app-core-test PRIVATE Qt6::Core Qt6::Network ZLIB::ZLIB)
|
||||
target_compile_definitions(app-core-test PRIVATE
|
||||
FWSPACMANAGE_VERSION="${PACMANAGER_VERSION}")
|
||||
add_test(NAME app-core-test COMMAND app-core-test)
|
||||
|
||||
# AppSettings: the whole preferences model, exercised against a temporary
|
||||
# settings file. The static policy (what a block lasts, when it is in force, what
|
||||
# a cap or a directory is worth) is pure and needs no clock.
|
||||
add_executable(app-settings-test tests/app-settings.test.cpp
|
||||
preferences/app-settings.cpp logging/log-manager.cpp preferences/app-settings.h
|
||||
logging/log-manager.h)
|
||||
target_include_directories(app-settings-test PRIVATE include include/sdk logging preferences history archive update plugins providers core app)
|
||||
target_link_libraries(app-settings-test PRIVATE Qt6::Core)
|
||||
add_test(NAME app-settings-test COMMAND app-settings-test)
|
||||
|
||||
# LanguageManager: which language the setting resolves to (including the one
|
||||
# an FWS install left in the environment or in /etc/locale.conf), and that a
|
||||
# JSON catalogue read at runtime really translates. The last test walks the
|
||||
# sources and checks translations/en.json covers every string they ask for.
|
||||
add_executable(language-manager-test tests/language-manager.test.cpp
|
||||
preferences/language-manager.cpp preferences/app-settings.cpp
|
||||
preferences/language-manager.h preferences/app-settings.h
|
||||
resources/resources.qrc)
|
||||
target_include_directories(language-manager-test PRIVATE include include/sdk logging preferences history archive update plugins providers core app)
|
||||
target_link_libraries(language-manager-test PRIVATE Qt6::Core)
|
||||
# The resources come along so the test reads the catalogue exactly where the
|
||||
# application does, compiled in, rather than a copy that could drift.
|
||||
target_compile_definitions(language-manager-test PRIVATE
|
||||
PACMANAGER_TRANSLATIONS_DIR="${CMAKE_CURRENT_SOURCE_DIR}/translations")
|
||||
add_test(NAME language-manager-test COMMAND language-manager-test)
|
||||
|
||||
# The command-line grammar: which arguments ask for the command line rather than
|
||||
# the window, and what each keyword parses into. Pure parsing — no package
|
||||
# manager, no display, nothing spawned (the runner is exercised by hand).
|
||||
add_executable(cli-command-test tests/cli-command.test.cpp cli/cli-command.cpp)
|
||||
target_include_directories(cli-command-test PRIVATE include include/sdk logging preferences history archive update plugins providers core app cli)
|
||||
target_link_libraries(cli-command-test PRIVATE Qt6::Core)
|
||||
add_test(NAME cli-command-test COMMAND cli-command-test)
|
||||
|
||||
# ---- Translations ----
|
||||
#
|
||||
# The language setting loads a catalogue named <code>.json out of a
|
||||
# "translations" folder, looked up at runtime next to the settings or next to
|
||||
# the binary (see preferences/language-manager.cpp). A catalogue is read as it is, so
|
||||
# a new language is one text file and no build step: the copy below is a plain
|
||||
# file copy and never fails the build.
|
||||
#
|
||||
# A .qm compiled from a .ts by Qt Linguist is still accepted at runtime, for a
|
||||
# translator who prefers that tool. Compiling one needs Qt Linguist, which is
|
||||
# not always installed, so it stays optional.
|
||||
# The catalogues are compiled into the binary by resources/resources.qrc, so
|
||||
# nothing has to be copied or installed next to it: a language the application
|
||||
# ships with is always there. A catalogue dropped into a "translations" folder
|
||||
# at runtime is still read, and wins over the built-in one.
|
||||
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/translations)
|
||||
message(FATAL_ERROR "translations/ is missing: the catalogues live in "
|
||||
"resources/resources.qrc")
|
||||
endif()
|
||||
|
||||
find_package(Qt6 QUIET COMPONENTS LinguistTools)
|
||||
if(Qt6LinguistTools_FOUND AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/translations)
|
||||
file(GLOB PACMANAGER_TS_FILES ${CMAKE_CURRENT_SOURCE_DIR}/translations/*.ts)
|
||||
if(PACMANAGER_TS_FILES)
|
||||
qt_add_translation(PACMANAGER_QM_FILES ${PACMANAGER_TS_FILES})
|
||||
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory
|
||||
$<TARGET_FILE_DIR:${PROJECT_NAME}>/translations
|
||||
COMMAND ${CMAKE_COMMAND} -E copy
|
||||
${PACMANAGER_QM_FILES}
|
||||
$<TARGET_FILE_DIR:${PROJECT_NAME}>/translations/)
|
||||
install(FILES ${PACMANAGER_QM_FILES}
|
||||
DESTINATION bin/translations)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_executable(update-manager-test tests/update-manager.test.cpp
|
||||
src/update-manager.cpp src/app-logging.cpp include/update-manager.h)
|
||||
target_include_directories(update-manager-test PRIVATE include)
|
||||
update/update-manager.cpp logging/app-logging.cpp update/update-manager.h)
|
||||
target_include_directories(update-manager-test PRIVATE include include/sdk logging preferences history archive update plugins providers core app)
|
||||
target_link_libraries(update-manager-test PRIVATE Qt6::Core Qt6::Network)
|
||||
target_compile_definitions(update-manager-test PRIVATE
|
||||
FWSPACMANAGE_VERSION="${PACMANAGER_VERSION}")
|
||||
@@ -213,9 +316,10 @@ add_test(NAME update-manager-test COMMAND update-manager-test)
|
||||
# notification text) and the autostart files, driven inside a temporary tree so
|
||||
# the user's own ~/.config is never touched.
|
||||
add_executable(startup-check-test tests/startup-check.test.cpp
|
||||
src/startup-check.cpp src/log-manager.cpp src/app-logging.cpp
|
||||
include/startup-check.h include/log-manager.h)
|
||||
target_include_directories(startup-check-test PRIVATE include)
|
||||
core/startup-check.cpp logging/log-manager.cpp logging/app-logging.cpp
|
||||
preferences/app-settings.cpp
|
||||
core/startup-check.h logging/log-manager.h preferences/app-settings.h)
|
||||
target_include_directories(startup-check-test PRIVATE include include/sdk logging preferences history archive update plugins providers core app)
|
||||
target_link_libraries(startup-check-test PRIVATE Qt6::Core)
|
||||
add_test(NAME startup-check-test COMMAND startup-check-test)
|
||||
|
||||
@@ -239,16 +343,16 @@ option(FWS_BUILD_AUR_PLUGIN "Build the AUR provider plugin" ON)
|
||||
option(FWS_BUILD_EXAMPLE_PLUGIN "Build the example external provider plugin" OFF)
|
||||
|
||||
# Optional example addon plugin: a non-provider extension (see
|
||||
# plugins/example-addon) proving that plugins can be anything written in C++,
|
||||
# providers/example-addon) proving that plugins can be anything written in C++,
|
||||
# not just package managers. Built next to the executable like any external
|
||||
# plugin.
|
||||
option(FWS_BUILD_EXAMPLE_ADDON "Build the example addon plugin" OFF)
|
||||
|
||||
if(FWS_BUILD_FLATPAK_PLUGIN)
|
||||
add_library(flatpak-provider-plugin MODULE
|
||||
plugins/flatpak-provider/flatpak-provider.cpp
|
||||
plugins/flatpak-provider/flatpak-manager.cpp)
|
||||
target_include_directories(flatpak-provider-plugin PRIVATE include plugins/flatpak-provider)
|
||||
providers/flatpak-provider/flatpak-provider.cpp
|
||||
providers/flatpak-provider/flatpak-manager.cpp)
|
||||
target_include_directories(flatpak-provider-plugin PRIVATE include include/sdk logging preferences history archive update providers/flatpak-provider)
|
||||
set_target_properties(flatpak-provider-plugin PROPERTIES
|
||||
OUTPUT_NAME "flatpak-provider"
|
||||
CXX_STANDARD 17
|
||||
@@ -261,9 +365,9 @@ endif()
|
||||
|
||||
if(FWS_BUILD_AUR_PLUGIN)
|
||||
add_library(aur-provider-plugin MODULE
|
||||
plugins/aur-provider/aur-provider.cpp
|
||||
plugins/aur-provider/aur-manager.cpp)
|
||||
target_include_directories(aur-provider-plugin PRIVATE include plugins/aur-provider)
|
||||
providers/aur-provider/aur-provider.cpp
|
||||
providers/aur-provider/aur-manager.cpp)
|
||||
target_include_directories(aur-provider-plugin PRIVATE include include/sdk logging preferences history archive update providers/aur-provider)
|
||||
set_target_properties(aur-provider-plugin PROPERTIES
|
||||
OUTPUT_NAME "aur-provider"
|
||||
CXX_STANDARD 17
|
||||
@@ -275,8 +379,8 @@ if(FWS_BUILD_AUR_PLUGIN)
|
||||
endif()
|
||||
|
||||
if(FWS_BUILD_EXAMPLE_PLUGIN)
|
||||
add_library(example-provider-plugin MODULE plugins/example-provider/example-provider.cpp)
|
||||
target_include_directories(example-provider-plugin PRIVATE include)
|
||||
add_library(example-provider-plugin MODULE providers/example-provider/example-provider.cpp)
|
||||
target_include_directories(example-provider-plugin PRIVATE include include/sdk logging preferences history archive update plugins providers core app)
|
||||
set_target_properties(example-provider-plugin PROPERTIES
|
||||
OUTPUT_NAME "sample-provider"
|
||||
CXX_STANDARD 17
|
||||
@@ -288,8 +392,8 @@ if(FWS_BUILD_EXAMPLE_PLUGIN)
|
||||
endif()
|
||||
|
||||
if(FWS_BUILD_EXAMPLE_ADDON)
|
||||
add_library(example-addon-plugin MODULE plugins/example-addon/example-addon.cpp)
|
||||
target_include_directories(example-addon-plugin PRIVATE include)
|
||||
add_library(example-addon-plugin MODULE providers/example-addon/example-addon.cpp)
|
||||
target_include_directories(example-addon-plugin PRIVATE include include/sdk logging preferences history archive update plugins providers core app)
|
||||
# The demo addon attaches Qt widgets, so it links the widget module like
|
||||
# the host application.
|
||||
target_link_libraries(example-addon-plugin PRIVATE Qt6::Widgets)
|
||||
@@ -308,9 +412,9 @@ endif()
|
||||
# options.
|
||||
if(FWS_BUILD_EXAMPLE_PLUGIN AND FWS_BUILD_EXAMPLE_ADDON)
|
||||
add_executable(plugin-manager-test tests/plugin-manager.test.cpp
|
||||
src/plugin-manager.cpp src/pacman-manager.cpp src/app-logging.cpp
|
||||
plugins/flatpak-provider/flatpak-manager.cpp)
|
||||
target_include_directories(plugin-manager-test PRIVATE include plugins/flatpak-provider)
|
||||
plugins/plugin-manager.cpp providers/pacman-manager.cpp logging/app-logging.cpp
|
||||
providers/flatpak-provider/flatpak-manager.cpp)
|
||||
target_include_directories(plugin-manager-test PRIVATE include include/sdk logging preferences history archive update providers/flatpak-provider)
|
||||
# Qt6::Widgets is linked so the process can load the example addon, which
|
||||
# itself links the widget module.
|
||||
target_link_libraries(plugin-manager-test PRIVATE Qt6::Core Qt6::Widgets)
|
||||
|
||||
Reference in new issue
Block a user