Move example -> examples
And the compositor example into its own directory
This commit is contained in:
parent
18e6ddc1c5
commit
28736c5787
|
@ -63,4 +63,4 @@ add_subdirectory(session)
|
||||||
add_subdirectory(render)
|
add_subdirectory(render)
|
||||||
add_subdirectory(util)
|
add_subdirectory(util)
|
||||||
|
|
||||||
add_subdirectory(example)
|
add_subdirectory(examples)
|
||||||
|
|
|
@ -67,7 +67,7 @@ target_link_libraries(tablet
|
||||||
)
|
)
|
||||||
|
|
||||||
add_executable(compositor
|
add_executable(compositor
|
||||||
compositor
|
compositor/main.c
|
||||||
shared.c
|
shared.c
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -75,6 +75,5 @@ target_link_libraries(compositor
|
||||||
wlr-backend
|
wlr-backend
|
||||||
wlr-session
|
wlr-session
|
||||||
wlr-render
|
wlr-render
|
||||||
wlr-wayland
|
|
||||||
${XKBCOMMON_LIBRARIES}
|
${XKBCOMMON_LIBRARIES}
|
||||||
)
|
)
|
|
@ -10,7 +10,6 @@
|
||||||
#include <wlr/render.h>
|
#include <wlr/render.h>
|
||||||
#include <wlr/render/gles2.h>
|
#include <wlr/render/gles2.h>
|
||||||
#include <wlr/types/wlr_output.h>
|
#include <wlr/types/wlr_output.h>
|
||||||
#include <wlr/wayland/wlr_compositor.h>
|
|
||||||
#include <xkbcommon/xkbcommon.h>
|
#include <xkbcommon/xkbcommon.h>
|
||||||
#include "shared.h"
|
#include "shared.h"
|
||||||
|
|
||||||
|
@ -38,7 +37,6 @@ int main() {
|
||||||
|
|
||||||
state.renderer = wlr_gles2_renderer_init();
|
state.renderer = wlr_gles2_renderer_init();
|
||||||
wl_display_init_shm(compositor.display);
|
wl_display_init_shm(compositor.display);
|
||||||
wlr_compositor_init(compositor.display);
|
|
||||||
|
|
||||||
compositor_run(&compositor);
|
compositor_run(&compositor);
|
||||||
}
|
}
|
Loading…
Reference in New Issue