Init Xwayland
[src/agl-compositor.git] / meson.build
index 388f785..d10c337 100644 (file)
@@ -237,6 +237,13 @@ if dep_libsmack.found()
   deps_libweston += dep_libsmack
 endif
 
+if get_option('xwayland')
+        config_h.set('BUILD_XWAYLAND', '1')
+
+        srcs_agl_compositor += 'src/xwayland.c'
+        config_h.set_quoted('XSERVER_PATH', get_option('xwayland-path'))
+endif
+
 dir_module_agl_compositor = join_paths(join_paths(prefix_path, get_option('libdir')), 'agl-compositor')
 
 libexec_compositor = shared_library(