|
|
@ -49,79 +49,23 @@ all_deps = [
|
|
|
|
dep_math,
|
|
|
|
dep_math,
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
wlr_src = [
|
|
|
|
|
|
|
|
'backend/wayland/backend.c',
|
|
|
|
|
|
|
|
'backend/wayland/registry.c',
|
|
|
|
|
|
|
|
'backend/wayland/wl_seat.c',
|
|
|
|
|
|
|
|
'backend/wayland/output.c',
|
|
|
|
|
|
|
|
'backend/drm/backend.c',
|
|
|
|
|
|
|
|
'backend/drm/drm.c',
|
|
|
|
|
|
|
|
'backend/backend.c',
|
|
|
|
|
|
|
|
'backend/libinput/backend.c',
|
|
|
|
|
|
|
|
'backend/libinput/events.c',
|
|
|
|
|
|
|
|
'backend/libinput/keyboard.c',
|
|
|
|
|
|
|
|
'backend/libinput/pointer.c',
|
|
|
|
|
|
|
|
'backend/libinput/tablet_pad.c',
|
|
|
|
|
|
|
|
'backend/libinput/tablet_tool.c',
|
|
|
|
|
|
|
|
'backend/libinput/touch.c',
|
|
|
|
|
|
|
|
'backend/multi/backend.c',
|
|
|
|
|
|
|
|
'backend/udev.c',
|
|
|
|
|
|
|
|
'backend/egl.c',
|
|
|
|
|
|
|
|
'session/direct-ipc.c',
|
|
|
|
|
|
|
|
'session/direct.c',
|
|
|
|
|
|
|
|
'session/session.c',
|
|
|
|
|
|
|
|
'types/wlr_input_device.c',
|
|
|
|
|
|
|
|
'types/wlr_keyboard.c',
|
|
|
|
|
|
|
|
'types/wlr_pointer.c',
|
|
|
|
|
|
|
|
'types/wlr_tablet_pad.c',
|
|
|
|
|
|
|
|
'types/wlr_tablet_tool.c',
|
|
|
|
|
|
|
|
'types/wlr_touch.c',
|
|
|
|
|
|
|
|
'types/wlr_output.c',
|
|
|
|
|
|
|
|
'render/matrix.c',
|
|
|
|
|
|
|
|
'render/gles2/pixel_format.c',
|
|
|
|
|
|
|
|
'render/gles2/renderer.c',
|
|
|
|
|
|
|
|
'render/gles2/shaders.c',
|
|
|
|
|
|
|
|
'render/gles2/surface.c',
|
|
|
|
|
|
|
|
'render/gles2/util.c',
|
|
|
|
|
|
|
|
'render/wlr_renderer.c',
|
|
|
|
|
|
|
|
'render/wlr_surface.c',
|
|
|
|
|
|
|
|
'util/list.c',
|
|
|
|
|
|
|
|
'util/log.c',
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if dep_libcap.found()
|
|
|
|
if dep_libcap.found()
|
|
|
|
add_project_arguments('-DHAS_LIBCAP', language: 'c')
|
|
|
|
add_project_arguments('-DHAS_LIBCAP', language: 'c')
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
if dep_systemd.found()
|
|
|
|
if dep_systemd.found()
|
|
|
|
wlr_src = wlr_src + ['session/logind.c']
|
|
|
|
|
|
|
|
add_project_arguments('-DHAS_SYSTEMD', language: 'c')
|
|
|
|
add_project_arguments('-DHAS_SYSTEMD', language: 'c')
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
lib_wlr = library('wlroots', wlr_src,
|
|
|
|
wlr_files = []
|
|
|
|
dependencies: all_deps)
|
|
|
|
|
|
|
|
dep_wlr = declare_dependency(link_with: lib_wlr,
|
|
|
|
|
|
|
|
dependencies: all_deps)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib_shared = static_library('shared',
|
|
|
|
|
|
|
|
['examples/shared.c', 'examples/cat.c'],
|
|
|
|
|
|
|
|
dependencies: dep_wlr)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
all_libs = [
|
|
|
|
subdir('backend')
|
|
|
|
lib_shared,
|
|
|
|
subdir('render')
|
|
|
|
lib_wlr,
|
|
|
|
subdir('session')
|
|
|
|
]
|
|
|
|
subdir('types')
|
|
|
|
|
|
|
|
subdir('util')
|
|
|
|
executable('simple', 'examples/simple.c', link_with: all_libs)
|
|
|
|
|
|
|
|
executable('rotation', 'examples/rotation.c', link_with: all_libs)
|
|
|
|
|
|
|
|
executable('pointer', 'examples/pointer.c', link_with: all_libs)
|
|
|
|
|
|
|
|
executable('touch', 'examples/touch.c', link_with: all_libs)
|
|
|
|
|
|
|
|
executable('tablet', 'examples/tablet.c', link_with: all_libs)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
compositor_src = [
|
|
|
|
lib_wlr = library('wlroots', wlr_files, dependencies: all_deps)
|
|
|
|
'examples/compositor/main.c',
|
|
|
|
dep_wlr = declare_dependency(link_with: lib_wlr, dependencies: all_deps)
|
|
|
|
'examples/compositor/wl_compositor.c',
|
|
|
|
|
|
|
|
'examples/compositor/wl_shell.c',
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
executable('compositor', compositor_src, link_with: all_libs)
|
|
|
|
subdir('examples')
|
|
|
|