cmake: pull in wlr-layer-shell-unstable-v1 from wlroots git submodule

This commit is contained in:
Daniel Eklöf 2019-02-03 19:12:58 +01:00
parent 73c62e9797
commit 578c76326d
3 changed files with 6 additions and 2 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "external/wlroots"]
path = external/wlroots
url = https://github.com/swaywm/wlroots.git

View file

@ -51,9 +51,9 @@ target_link_libraries(bar-xcb xcb-stuff ${XCB_LIBRARIES} ${XCB_ERRORS_LIBRARIES}
add_custom_command(
OUTPUT wlr-layer-shell-unstable-v1.c
COMMAND wayland-scanner private-code < /home/daniel/AUR/wlroots-git/src/wlroots-git/protocol/wlr-layer-shell-unstable-v1.xml > wlr-layer-shell-unstable-v1.c
COMMAND wayland-scanner private-code < ${PROJECT_SOURCE_DIR}/external/wlroots/protocol/wlr-layer-shell-unstable-v1.xml > wlr-layer-shell-unstable-v1.c
VERBATIM
MAIN_DEPENDENCY /home/daniel/AUR/wlroots-git/src/wlroots-git/protocol/wlr-layer-shell-unstable-v1.xml
MAIN_DEPENDENCY ${PROJECT_SOURCE_DIR}/external/wlroots/protocol/wlr-layer-shell-unstable-v1.xml
)
add_custom_command(
OUTPUT wlr-layer-shell-unstable-v1-client.h

1
external/wlroots vendored Submodule

@ -0,0 +1 @@
Subproject commit 59d1b6790dd187c2e110e98a2fa17c1fbfee40ca