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