[client] x11: xi is now a required library for the x11 backend

This commit is contained in:
Geoffrey McRae 2021-01-20 15:33:34 +11:00
parent ab79dae0b8
commit d6f39d66bf

View File

@ -4,21 +4,17 @@ project(displayserver_X11 LANGUAGES C)
find_package(PkgConfig) find_package(PkgConfig)
pkg_check_modules(DISPLAYSERVER_X11_PKGCONFIG REQUIRED pkg_check_modules(DISPLAYSERVER_X11_PKGCONFIG REQUIRED
x11 x11
xi
xfixes xfixes
xscrnsaver xscrnsaver
) )
pkg_check_modules(DISPLAYSERVER_X11_OPT_PKGCONFIG
xi
)
add_library(displayserver_X11 STATIC add_library(displayserver_X11 STATIC
x11.c x11.c
) )
target_link_libraries(displayserver_X11 target_link_libraries(displayserver_X11
${DISPLAYSERVER_X11_PKGCONFIG_LIBRARIES} ${DISPLAYSERVER_X11_PKGCONFIG_LIBRARIES}
${DISPLAYSERVER_X11_OPT_PKGCONFIG_LIBRARIES}
lg_common lg_common
) )
@ -26,5 +22,4 @@ target_include_directories(displayserver_X11
PRIVATE PRIVATE
src src
${DISPLAYSERVER_X11_PKGCONFIG_INCLUDE_DIRS} ${DISPLAYSERVER_X11_PKGCONFIG_INCLUDE_DIRS}
${DISPLAYSERVER_X11_OPT_PKGCONFIG_INCLUDE_DIRS}
) )