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