comparison 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
comparison
equal deleted inserted replaced
350:daa03aa2262d 351:c844f8bb87ce
236 pkg_check_modules(GLIB gio-2.0 glib-2.0) 236 pkg_check_modules(GLIB gio-2.0 glib-2.0)
237 if (GLIB_FOUND) 237 if (GLIB_FOUND)
238 list(APPEND SRC_FILES src/sys/glib/dark_theme.cc) 238 list(APPEND SRC_FILES src/sys/glib/dark_theme.cc)
239 list(APPEND INCLUDE ${GLIB_INCLUDE_DIRS}) 239 list(APPEND INCLUDE ${GLIB_INCLUDE_DIRS})
240 list(APPEND LIBRARIES ${GLIB_LINK_LIBRARIES}) 240 list(APPEND LIBRARIES ${GLIB_LINK_LIBRARIES})
241 list(APPEND DEFINES GLIB) 241 list(APPEND DEFINES GLIB) # XXX rename HAVE_GLIB or something
242 endif()
243
244 pkg_check_modules(XCB xcb)
245 if (XCB_FOUND)
246 list(APPEND SRC_FILES src/sys/x11/settings.cc src/sys/x11/dark_theme.cc)
247 list(APPEND INCLUDE ${XCB_INCLUDE_DIRS})
248 list(APPEND LIBRARIES ${XCB_LINK_LIBRARIES})
249 list(APPEND DEFINES HAVE_XCB)
242 endif() 250 endif()
243 endif() 251 endif()
244 endif() 252 endif()
245 253
246 ########################################################################### 254 ###########################################################################