1 option(waffle_enable_deprecated_build "Enable the deprecated cmake build" OFF)
4 if(gl_FOUND AND x11-xcb_FOUND)
10 if(wayland-client_FOUND AND wayland-egl_FOUND AND egl_FOUND)
11 set(wayland_default ON)
13 set(wayland_default OFF)
16 if(x11-xcb_FOUND AND egl_FOUND)
17 set(x11_egl_default ON)
19 set(x11_egl_default OFF)
22 if(gbm_FOUND AND libdrm_FOUND AND egl_FOUND)
28 set(surfaceless_egl_default ${egl_FOUND})
30 # On Linux, you must enable at least one of the below options.
31 option(waffle_has_glx "Build support for GLX" ${glx_default})
32 option(waffle_has_wayland "Build support for Wayland" ${wayland_default})
33 option(waffle_has_x11_egl "Build support for X11/EGL" ${x11_egl_default})
34 option(waffle_has_gbm "Build support for GBM" ${gbm_default})
35 option(waffle_has_surfaceless_egl "Build support for EGL_MESA_platform_surfaceless" ${surfaceless_egl_default})
36 option(waffle_has_nacl "Build support for NaCl" OFF)
39 option(waffle_build_tests "Build tests" ON)
40 option(waffle_build_manpages "Build manpages" OFF)
41 option(waffle_build_htmldocs "Build html documentation" OFF)
42 option(waffle_build_examples "Build example programs" ON)
44 set(waffle_xsltproc "xsltproc"
45 CACHE STRING "Program for processing XSLT stylesheets. Used for building docs.")