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

[dnf5] config-manager plugin #907

Merged
merged 3 commits into from
Nov 13, 2023
Merged
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
1 change: 1 addition & 0 deletions dnf5-plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-z,undefs")

add_subdirectory("builddep_plugin")
add_subdirectory("changelog_plugin")
add_subdirectory("config-manager_plugin")
add_subdirectory("copr_plugin")
add_subdirectory("repoclosure_plugin")
19 changes: 19 additions & 0 deletions dnf5-plugins/config-manager_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# set gettext domain for translations
add_definitions(-DGETTEXT_DOMAIN=\"dnf5_cmd_config-manager\")

file(GLOB CONFIG_MANAGER_SOURCES *.cpp)
add_library(config-manager_cmd_plugin MODULE ${CONFIG_MANAGER_SOURCES})

# disable the 'lib' prefix in order to create changelog_cmd_plugin.so
set_target_properties(config-manager_cmd_plugin PROPERTIES PREFIX "")

pkg_check_modules(LIBFMT REQUIRED fmt)
target_link_libraries(libdnf5-cli PUBLIC ${LIBFMT_LIBRARIES})

find_package(CURL 7.62.0 REQUIRED)
include_directories(${CURL_INCLUDE_DIR})

target_link_libraries(config-manager_cmd_plugin PRIVATE libdnf5 libdnf5-cli)
target_link_libraries(config-manager_cmd_plugin PRIVATE dnf5)

install(TARGETS config-manager_cmd_plugin LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}/dnf5/plugins/)
Loading
Loading