2 if(gl_FOUND AND x11-xcb_FOUND)
8 if(wayland-client_FOUND AND wayland-egl_FOUND AND egl_FOUND)
9 set(wayland_default ON)
11 set(wayland_default OFF)
14 if(x11-xcb_FOUND AND egl_FOUND)
15 set(x11_egl_default ON)
17 set(x11_egl_default OFF)
20 if(gbm_FOUND AND libudev_FOUND AND egl_FOUND)
26 # On Linux, you must enable at least one of the below options.
27 option(waffle_has_glx "Build support for GLX" ${glx_default})
28 option(waffle_has_wayland "Build support for Wayland" ${wayland_default})
29 option(waffle_has_x11_egl "Build support for X11/EGL" ${x11_egl_default})
30 option(waffle_has_gbm "Build support for GBM" ${gbm_default})
31 option(waffle_has_nacl "Build support for NaCl" OFF)
33 # NaCl specific settings.
34 set(nacl_sdk_path "" CACHE STRING "Set nacl_sdk path here")
35 set(nacl_version "pepper_39" CACHE STRING "Set NaCl bundle here")
38 option(waffle_build_tests "Build tests" ON)
39 option(waffle_build_manpages "Build manpages" OFF)
40 option(waffle_build_htmldocs "Build html documentation" OFF)
41 option(waffle_build_examples "Build example programs" ON)
43 set(waffle_xsltproc "xsltproc"
44 CACHE STRING "Program for processing XSLT stylesheets. Used for building docs.")