mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
make gdk-pixbuf dependency really optional
This commit is contained in:
parent
66554698a0
commit
21014e606b
9 changed files with 62 additions and 13 deletions
|
|
@ -2,7 +2,6 @@ include_directories(
|
|||
${PROTOCOLS_INCLUDE_DIRS}
|
||||
${WAYLAND_CLIENT_INCLUDE_DIR}
|
||||
${CAIRO_INCLUDE_DIRS}
|
||||
${GDK_PIXBUF_INCLUDE_DIRS}
|
||||
${PANGO_INCLUDE_DIRS}
|
||||
${PAM_INCLUDE_DIRS}
|
||||
)
|
||||
|
|
@ -17,12 +16,20 @@ target_link_libraries(swaylock
|
|||
${WAYLAND_CLIENT_LIBRARIES}
|
||||
${WAYLAND_CURSOR_LIBRARIES}
|
||||
${CAIRO_LIBRARIES}
|
||||
${GDK_PIXBUF_LIBRARIES}
|
||||
${PANGO_LIBRARIES}
|
||||
${PAM_LIBRARIES}
|
||||
m
|
||||
)
|
||||
|
||||
if (WITH_GDK_PIXBUF)
|
||||
include_directories(
|
||||
${GDK_PIXBUF_INCLUDE_DIRS}
|
||||
)
|
||||
target_link_libraries(swaylock
|
||||
${GDK_PIXBUF_LIBRARIES}
|
||||
)
|
||||
endif()
|
||||
|
||||
install(
|
||||
TARGETS swaylock
|
||||
RUNTIME
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue