wlroots-hyprland/backend/meson.build

83 lines
1.4 KiB
Meson
Raw Normal View History

backend_parts = []
backend_files = files(
'backend.c',
2017-10-02 10:44:33 +02:00
'drm/atomic.c',
'drm/backend.c',
'drm/cvt.c',
'drm/drm.c',
2017-10-02 10:44:33 +02:00
'drm/legacy.c',
'drm/properties.c',
2017-09-30 09:52:58 +02:00
'drm/renderer.c',
'drm/util.c',
2017-12-17 12:56:42 +01:00
'headless/backend.c',
2017-12-17 18:49:20 +01:00
'headless/input_device.c',
2018-02-12 21:29:23 +01:00
'headless/output.c',
'libinput/backend.c',
'libinput/events.c',
'libinput/keyboard.c',
'libinput/pointer.c',
'libinput/switch.c',
'libinput/tablet_pad.c',
'libinput/tablet_tool.c',
'libinput/touch.c',
'multi/backend.c',
'noop/backend.c',
'noop/output.c',
2018-02-12 21:29:23 +01:00
'session/direct-ipc.c',
'session/noop.c',
2018-02-12 21:29:23 +01:00
'session/session.c',
'wayland/backend.c',
'wayland/output.c',
'wayland/wl_seat.c',
'wayland/tablet_v2.c',
2017-07-17 20:38:28 +02:00
)
2017-08-06 03:30:18 +02:00
backend_deps = [
2018-02-14 19:27:31 +01:00
drm,
egl,
gbm,
libinput,
pixman,
2018-02-14 19:27:31 +01:00
xkbcommon,
wayland_server,
wlr_protos,
wlr_render,
]
2017-10-10 00:23:43 +02:00
if host_machine.system().startswith('freebsd')
backend_files += files('session/direct-freebsd.c')
else
backend_files += files('session/direct.c')
endif
if logind.found()
backend_files += files('session/logind.c')
backend_deps += logind
2017-08-06 03:30:18 +02:00
endif
if freerdp.found() and winpr2.found()
backend_files += files(
'rdp/backend.c',
'rdp/keyboard.c',
'rdp/listener.c',
'rdp/output.c',
'rdp/peer.c',
'rdp/pointer.c',
)
backend_deps += [
freerdp,
winpr2
]
conf_data.set10('WLR_HAS_RDP_BACKEND', true)
endif
subdir('x11')
lib_wlr_backend = static_library(
'wlr_backend',
backend_files,
include_directories: wlr_inc,
link_whole: backend_parts,
dependencies: backend_deps,
)