openxr = dependency('openxr', required: false) openxr_headers = openxr.partial_dependency(compile_args: true, includes: true) openxr_args = openxr.found() ? ['-DC8_HAVE_OPENXR'] : [] executable( 'c8', files( 'chrome.c', 'config.c', 'im.c', 'drag.c', 'glasses.c', 'hologram.c', 'slatebar.c', 'placement.c', 'imu.c', 'input.c', 'layer.c', 'lock.c', 'main.c', 'nightlight.c', 'output.c', 'pointer.c', 'protocols.c', 'screenshot.c', 'snip.c', 'session.c', 'settings.c', 'shell.c', 'lease.c', 'stereo.c', 'touch.c', 'tween.c', 'tracker.c', 'util.c', 'view.c', 'xdgoutput.c', 'xwayland.c', 'glassesmode.c', 'xrclient.c', 'xrruntime.c', ), server_protos_src, dependencies: [ wayland_server, wlroots, xkbcommon, libinput, pixman, libdrm, cairo, pangocairo, fontconfig, c8ui_core, dependency('c8-base'), # stealth mode's scrubbing of titles xcb, math, dependency('threads'), dependency('glesv2'), dependency('egl'), # Only OpenXR's headers: the loader is dlopened when Monado is # used (xrclient.c), so c8 runs without it. Built by # build.sh --xr (xr/) into the prefix. openxr_headers, cc.find_library('dl', required: false), ], c_args: openxr_args, install: true, ) # Decodes [glasses] background for c8 (see panorama.c) executable( 'c8-panorama', 'panorama.c', dependencies: [dependency('gdk-pixbuf-2.0'), math], install: true, install_dir: get_option('libexecdir'), )