1if not get_option('kmscube') 2 kmscube_enabled = false 3 subdir_done() 4endif 5 6if not get_option('libutils') 7 error('"kmscube" option requires "libutils" option enabled') 8endif 9 10kmscube_enabled = true 11 12kmscube_sources = files([ 13 'cube.cpp', 14 'cube-egl.cpp', 15 'cube-gbm.cpp', 16 'cube-gles2.cpp', 17 'cube-null.cpp', 18 'cube-wl.cpp', 19 'cube-x11.cpp', 20 'esTransform.cpp', 21]) 22 23kmscube_deps = [ 24 libdrm_dep, libkmsxx_dep, libkmsxxutil_dep, libfmt_dep, 25 dependency('x11'), 26 dependency('xcb'), 27 dependency('x11-xcb'), 28 dependency('gbm'), 29 dependency('wayland-client'), 30 dependency('wayland-egl'), 31 dependency('glesv2'), 32 dependency('egl'), 33] 34 35executable('kmscube', kmscube_sources, dependencies : kmscube_deps) 36