aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-08-11 09:37:09 -0400
committerDrew DeVault <sir@cmpwn.com>2017-08-11 09:37:09 -0400
commit62d8b252c093b3bd71362b1c76cb70b16a6cd63a (patch)
treeff109926a2e2e9f4ce8c445cbd8c07e4e9da59ef /backend
parenta6efb9038219562f65c20c997996b74dffed3910 (diff)
Refactor meson and move xdg-shell into wlroots
Diffstat (limited to 'backend')
-rw-r--r--backend/meson.build56
1 files changed, 30 insertions, 26 deletions
diff --git a/backend/meson.build b/backend/meson.build
index 9c6b70df..7fcf00b8 100644
--- a/backend/meson.build
+++ b/backend/meson.build
@@ -1,29 +1,33 @@
-wlr_files += files(
- 'backend.c',
- 'udev.c',
- 'session/direct-ipc.c',
- 'session/direct.c',
- 'session/session.c',
- 'drm/backend.c',
- 'drm/drm.c',
- 'drm/drm-atomic.c',
- 'drm/drm-legacy.c',
- 'drm/drm-properties.c',
- 'drm/drm-util.c',
- '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',
+backend_files = files(
+ 'backend.c',
+ 'udev.c',
+ 'session/direct-ipc.c',
+ 'session/direct.c',
+ 'session/session.c',
+ 'drm/backend.c',
+ 'drm/drm.c',
+ 'drm/drm-atomic.c',
+ 'drm/drm-legacy.c',
+ 'drm/drm-properties.c',
+ 'drm/drm-util.c',
+ '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',
)
-if dep_systemd.found()
- wlr_files += files('session/logind.c')
+if systemd.found()
+ wlr_files += files('session/logind.c')
endif
+
+lib_wlr_backend = static_library('wlr_backend', backend_files,
+ include_directories: wlr_inc,
+ dependencies: [wayland_server, egl, gbm, libinput, systemd])