2015-12-02 07:57:53 +02:00
|
|
|
include(Wayland)
|
|
|
|
|
|
|
|
|
|
WAYLAND_ADD_PROTOCOL_CLIENT(proto-client-xdg-shell
|
|
|
|
|
xdg-shell.xml
|
|
|
|
|
xdg-shell
|
|
|
|
|
)
|
|
|
|
|
WAYLAND_ADD_PROTOCOL_CLIENT(proto-client-desktop-shell
|
|
|
|
|
desktop-shell.xml
|
|
|
|
|
desktop-shell
|
|
|
|
|
)
|
|
|
|
|
WAYLAND_ADD_PROTOCOL_SERVER(proto-server-desktop-shell
|
|
|
|
|
desktop-shell.xml
|
|
|
|
|
desktop-shell
|
|
|
|
|
)
|
|
|
|
|
|
2015-12-03 08:35:22 -05:00
|
|
|
WAYLAND_ADD_PROTOCOL_CLIENT(proto-client-swaylock
|
|
|
|
|
swaylock.xml
|
|
|
|
|
swaylock
|
|
|
|
|
)
|
|
|
|
|
WAYLAND_ADD_PROTOCOL_SERVER(proto-server-swaylock
|
|
|
|
|
swaylock.xml
|
|
|
|
|
swaylock
|
|
|
|
|
)
|
|
|
|
|
|
2016-05-07 12:19:45 +02:00
|
|
|
pkg_check_modules(WLC_NOTIFICATION_AREA "wayland-notification-area >= 3")
|
|
|
|
|
pkg_get_variable(WAYLAND_NOTIFICATION_AREA_PKGDATADIR wayland-notification-area pkgdatadir)
|
|
|
|
|
WAYLAND_ADD_PROTOCOL_SERVER(proto-server-wayland-notification-area
|
|
|
|
|
${WAYLAND_NOTIFICATION_AREA_PKGDATADIR}/notification-area-unstable-v2.xml
|
|
|
|
|
notification-area-unstable-v2
|
|
|
|
|
)
|
|
|
|
|
|
2016-04-28 20:13:26 +02:00
|
|
|
add_library(sway-protocols STATIC
|
2015-12-02 07:57:53 +02:00
|
|
|
${proto-client-xdg-shell}
|
|
|
|
|
${proto-client-desktop-shell}
|
|
|
|
|
${proto-server-desktop-shell}
|
2015-12-03 08:35:22 -05:00
|
|
|
${proto-client-swaylock}
|
|
|
|
|
${proto-server-swaylock}
|
2016-05-07 12:19:45 +02:00
|
|
|
${proto-server-wayland-notification-area}
|
2015-12-02 07:57:53 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
set(PROTOCOLS_INCLUDE_DIRS ${CMAKE_BINARY_DIR}/protocols PARENT_SCOPE)
|
2016-04-28 20:08:41 +02:00
|
|
|
INCLUDE_DIRECTORIES(${WAYLAND_INCLUDE_DIR} ${XKBCOMMON_INCLUDE_DIRS})
|