diff options
Diffstat (limited to 'x11-misc/xsettingsd/files/xsettingsd-1.0.0-add-cmake-buildsystem.patch')
-rw-r--r-- | x11-misc/xsettingsd/files/xsettingsd-1.0.0-add-cmake-buildsystem.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/x11-misc/xsettingsd/files/xsettingsd-1.0.0-add-cmake-buildsystem.patch b/x11-misc/xsettingsd/files/xsettingsd-1.0.0-add-cmake-buildsystem.patch new file mode 100644 index 000000000000..bb46f5e37b93 --- /dev/null +++ b/x11-misc/xsettingsd/files/xsettingsd-1.0.0-add-cmake-buildsystem.patch @@ -0,0 +1,51 @@ +From 7ddb3b8dec442fd1bd502dc7b97841bb07526cae Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <asturm@gentoo.org> +Date: Sun, 26 Jul 2020 16:47:22 +0200 +Subject: [PATCH] Add cmake buildsystem + +--- + CMakeLists.txt | 32 ++++++++++++++++++++++++++++++++ + 1 file changed, 32 insertions(+) + create mode 100644 CMakeLists.txt + +diff --git a/CMakeLists.txt b/CMakeLists.txt +new file mode 100644 +index 0000000..42dca7d +--- /dev/null ++++ b/CMakeLists.txt +@@ -0,0 +1,32 @@ ++cmake_minimum_required(VERSION 3.15) ++ ++project(xsettingsd VERSION 1.0.0) ++ ++include(GNUInstallDirs) ++ ++find_package(X11 REQUIRED) ++ ++set(libxsettingsd_SRCS ++ common.cc ++ config_parser.cc ++ data_reader.cc ++ data_writer.cc ++ setting.cc ++ settings_manager.cc ++) ++ ++add_library(libxsettingsd STATIC ${libxsettingsd_SRCS}) ++ ++add_executable(xsettingsd xsettingsd.cc) ++add_executable(dump_xsettings dump_xsettings.cc) ++ ++target_include_directories(xsettingsd PUBLIC "${PROJECT_BINARY_DIR}") ++target_include_directories(dump_xsettings PUBLIC "${PROJECT_BINARY_DIR}") ++ ++target_link_libraries(xsettingsd PUBLIC libxsettingsd X11::X11) ++target_link_libraries(dump_xsettings PUBLIC libxsettingsd X11::X11) ++ ++install(TARGETS xsettingsd DESTINATION ${CMAKE_INSTALL_BINDIR}) ++install(TARGETS dump_xsettings DESTINATION ${CMAKE_INSTALL_BINDIR}) ++ ++install(FILES xsettingsd.1 dump_xsettings.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) +-- +2.27.0 + |