2017-08-11 13:37:09 +00:00
|
|
|
backend_files = files(
|
2017-08-30 18:30:47 +00:00
|
|
|
'backend.c',
|
|
|
|
'session/direct-ipc.c',
|
|
|
|
'session/session.c',
|
2017-10-02 08:44:33 +00:00
|
|
|
'drm/atomic.c',
|
2017-08-30 18:30:47 +00:00
|
|
|
'drm/backend.c',
|
|
|
|
'drm/drm.c',
|
2017-10-02 08:44:33 +00:00
|
|
|
'drm/legacy.c',
|
2017-09-30 06:03:34 +00:00
|
|
|
'drm/properties.c',
|
2017-09-30 07:52:58 +00:00
|
|
|
'drm/renderer.c',
|
2017-09-30 06:03:34 +00:00
|
|
|
'drm/util.c',
|
2017-12-17 11:56:42 +00:00
|
|
|
'headless/backend.c',
|
|
|
|
'headless/output.c',
|
2017-12-17 17:49:20 +00:00
|
|
|
'headless/input_device.c',
|
2017-08-30 18:30:47 +00:00
|
|
|
'libinput/backend.c',
|
|
|
|
'libinput/events.c',
|
|
|
|
'libinput/keyboard.c',
|
|
|
|
'libinput/pointer.c',
|
|
|
|
'libinput/tablet_pad.c',
|
|
|
|
'libinput/tablet_tool.c',
|
|
|
|
'libinput/touch.c',
|
|
|
|
'multi/backend.c',
|
|
|
|
'wayland/backend.c',
|
|
|
|
'wayland/output.c',
|
|
|
|
'wayland/registry.c',
|
|
|
|
'wayland/wl_seat.c',
|
2017-09-22 02:58:41 +00:00
|
|
|
'x11/backend.c',
|
2017-07-17 18:38:28 +00:00
|
|
|
)
|
2017-08-06 01:30:18 +00:00
|
|
|
|
2017-10-09 22:23:43 +00:00
|
|
|
if host_machine.system().startswith('freebsd')
|
|
|
|
backend_files += files('session/direct-freebsd.c')
|
|
|
|
else
|
|
|
|
backend_files += files('session/direct.c')
|
|
|
|
endif
|
|
|
|
|
2018-01-28 16:10:53 +00:00
|
|
|
if systemd.found() and get_option('enable_systemd')
|
2017-08-30 18:30:47 +00:00
|
|
|
backend_files += files('session/logind.c')
|
2017-08-06 01:30:18 +00:00
|
|
|
endif
|
2017-08-11 13:37:09 +00:00
|
|
|
|
2018-01-28 16:10:53 +00:00
|
|
|
if elogind.found() and get_option('enable_elogind')
|
2017-09-22 17:02:55 +00:00
|
|
|
backend_files += files('session/logind.c')
|
|
|
|
endif
|
|
|
|
|
2017-08-30 18:30:47 +00:00
|
|
|
lib_wlr_backend = static_library(
|
|
|
|
'wlr_backend',
|
|
|
|
backend_files,
|
|
|
|
include_directories: wlr_inc,
|
2018-01-18 18:47:21 +00:00
|
|
|
dependencies: [
|
|
|
|
wayland_server,
|
|
|
|
egl,
|
|
|
|
gbm,
|
|
|
|
libinput,
|
|
|
|
systemd,
|
|
|
|
elogind,
|
|
|
|
wlr_render,
|
|
|
|
wlr_protos,
|
|
|
|
drm,
|
|
|
|
pixman,
|
|
|
|
],
|
2017-08-30 18:30:47 +00:00
|
|
|
)
|