Mercurial > minori
diff CMakeLists.txt @ 351:c844f8bb87ce
gui/theme: add xsettings backend
this also adds newly-necessary endianness methods in core/endian.h
which just so happen to be constexpr as well
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Sun, 14 Jul 2024 23:23:56 -0400 |
parents | e65b89bcc528 |
children | 373f92c35bec |
line wrap: on
line diff
--- a/CMakeLists.txt Sun Jul 14 19:12:40 2024 -0400 +++ b/CMakeLists.txt Sun Jul 14 23:23:56 2024 -0400 @@ -238,7 +238,15 @@ list(APPEND SRC_FILES src/sys/glib/dark_theme.cc) list(APPEND INCLUDE ${GLIB_INCLUDE_DIRS}) list(APPEND LIBRARIES ${GLIB_LINK_LIBRARIES}) - list(APPEND DEFINES GLIB) + list(APPEND DEFINES GLIB) # XXX rename HAVE_GLIB or something + endif() + + pkg_check_modules(XCB xcb) + if (XCB_FOUND) + list(APPEND SRC_FILES src/sys/x11/settings.cc src/sys/x11/dark_theme.cc) + list(APPEND INCLUDE ${XCB_INCLUDE_DIRS}) + list(APPEND LIBRARIES ${XCB_LINK_LIBRARIES}) + list(APPEND DEFINES HAVE_XCB) endif() endif() endif()