1xcb_dep = dependency('xcb', required: false) 2xcb_sync_dep = dependency('xcb-sync', required: false) 3 4if get_option('xvfb') 5 if xcb_dep.found() and xcb_sync_dep.found() 6 sync = executable('sync', 'sync.c', dependencies: [xcb_dep, xcb_sync_dep]) 7 test('sync', simple_xinit, args: [sync, '--', xvfb_server]) 8 endif 9endif 10