Move example -> examples

And the compositor example into its own directory
This commit is contained in:
Drew DeVault 2017-06-28 18:23:49 -04:00
parent 18e6ddc1c5
commit 28736c5787
12 changed files with 2 additions and 5 deletions

View file

@ -63,4 +63,4 @@ add_subdirectory(session)
add_subdirectory(render)
add_subdirectory(util)
add_subdirectory(example)
add_subdirectory(examples)

View file

@ -67,7 +67,7 @@ target_link_libraries(tablet
)
add_executable(compositor
compositor
compositor/main.c
shared.c
)
@ -75,6 +75,5 @@ target_link_libraries(compositor
wlr-backend
wlr-session
wlr-render
wlr-wayland
${XKBCOMMON_LIBRARIES}
)

View file

@ -10,7 +10,6 @@
#include <wlr/render.h>
#include <wlr/render/gles2.h>
#include <wlr/types/wlr_output.h>
#include <wlr/wayland/wlr_compositor.h>
#include <xkbcommon/xkbcommon.h>
#include "shared.h"
@ -38,7 +37,6 @@ int main() {
state.renderer = wlr_gles2_renderer_init();
wl_display_init_shm(compositor.display);
wlr_compositor_init(compositor.display);
compositor_run(&compositor);
}