forked from waffle-gl/waffle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOptions.cmake
44 lines (37 loc) · 1.43 KB
/
Options.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
if(waffle_on_linux)
if(gl_FOUND AND x11-xcb_FOUND)
set(glx_default ON)
else()
set(glx_default OFF)
endif()
if(wayland-client_FOUND AND wayland-egl_FOUND AND egl_FOUND)
set(wayland_default ON)
else()
set(wayland_default OFF)
endif()
if(x11-xcb_FOUND AND egl_FOUND)
set(x11_egl_default ON)
else()
set(x11_egl_default OFF)
endif()
if(gbm_FOUND AND libudev_FOUND AND egl_FOUND)
set(gbm_default ON)
else()
set(gbm_default OFF)
endif()
# On Linux, you must enable at least one of the below options.
option(waffle_has_glx "Build support for GLX" ${glx_default})
option(waffle_has_wayland "Build support for Wayland" ${wayland_default})
option(waffle_has_x11_egl "Build support for X11/EGL" ${x11_egl_default})
option(waffle_has_gbm "Build support for GBM" ${gbm_default})
option(waffle_has_nacl "Build support for NaCl" OFF)
# NaCl specific settings.
set(nacl_sdk_path "" CACHE STRING "Set nacl_sdk path here")
set(nacl_version "pepper_39" CACHE STRING "Set NaCl bundle here")
endif()
option(waffle_build_tests "Build tests" ON)
option(waffle_build_manpages "Build manpages" OFF)
option(waffle_build_htmldocs "Build html documentation" OFF)
option(waffle_build_examples "Build example programs" ON)
set(waffle_xsltproc "xsltproc"
CACHE STRING "Program for processing XSLT stylesheets. Used for building docs.")