+if deps_remoting.length() == depnames.length()
+ config_h.set('HAVE_REMOTING', 1)
+ message('Found remoting depends, enabling remoting')
+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(
+ 'exec_compositor',
+ sources: srcs_agl_compositor,
+ dependencies: deps_libweston,
+ install_dir: dir_module_agl_compositor,
+ install: true,
+ version: meson.project_version(),
+ soversion: 0
+)
+
+dep_libexec_compositor = declare_dependency(
+ link_with: libexec_compositor,
+ include_directories: [ include_directories('.') ],
+ dependencies: deps_libweston,
+)
+