xref: /OK3568_Linux_fs/buildroot/package/waffle/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunconfig BR2_PACKAGE_WAFFLE_SUPPORTS_GLX
2*4882a593Smuzhiyun	bool
3*4882a593Smuzhiyun	default y if BR2_PACKAGE_HAS_LIBGL && BR2_PACKAGE_XORG7
4*4882a593Smuzhiyun
5*4882a593Smuzhiyunconfig BR2_PACKAGE_WAFFLE_SUPPORTS_WAYLAND
6*4882a593Smuzhiyun	bool
7*4882a593Smuzhiyun	default y if BR2_PACKAGE_WAYLAND && BR2_PACKAGE_HAS_LIBEGL_WAYLAND
8*4882a593Smuzhiyun
9*4882a593Smuzhiyunconfig BR2_PACKAGE_WAFFLE_SUPPORTS_X11_EGL
10*4882a593Smuzhiyun	bool
11*4882a593Smuzhiyun	default y if BR2_PACKAGE_HAS_LIBEGL && BR2_PACKAGE_XORG7
12*4882a593Smuzhiyun
13*4882a593Smuzhiyunconfig BR2_PACKAGE_WAFFLE_SUPPORTS_GBM
14*4882a593Smuzhiyun	bool
15*4882a593Smuzhiyun	# mesa3d is for now the only GBM provider, and it is enabled
16*4882a593Smuzhiyun	# together with its EGL support
17*4882a593Smuzhiyun	default y if BR2_PACKAGE_HAS_LIBEGL && BR2_PACKAGE_MESA3D_OPENGL_EGL && BR2_PACKAGE_HAS_UDEV
18*4882a593Smuzhiyun
19*4882a593Smuzhiyunconfig BR2_PACKAGE_WAFFLE
20*4882a593Smuzhiyun	bool "waffle"
21*4882a593Smuzhiyun	depends on BR2_PACKAGE_WAFFLE_SUPPORTS_GLX || \
22*4882a593Smuzhiyun		BR2_PACKAGE_WAFFLE_SUPPORTS_WAYLAND || \
23*4882a593Smuzhiyun		BR2_PACKAGE_WAFFLE_SUPPORTS_X11_EGL || \
24*4882a593Smuzhiyun		BR2_PACKAGE_WAFFLE_SUPPORTS_GBM
25*4882a593Smuzhiyun	select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_WAFFLE_SUPPORTS_GLX || BR2_PACKAGE_WAFFLE_SUPPORTS_X11_EGL
26*4882a593Smuzhiyun	select BR2_PACKAGE_LIBXCB if BR2_PACKAGE_WAFFLE_SUPPORTS_GLX || BR2_PACKAGE_WAFFLE_SUPPORTS_X11_EGL
27*4882a593Smuzhiyun	help
28*4882a593Smuzhiyun	  Waffle is a cross-platform library that allows one to defer
29*4882a593Smuzhiyun	  selection of an OpenGL API and of window system until
30*4882a593Smuzhiyun	  runtime. For example, on Linux, Waffle enables an application
31*4882a593Smuzhiyun	  to select X11/EGL with an OpenGL 3.3 core profile, Wayland
32*4882a593Smuzhiyun	  with OpenGL ES2, and other window system / API combinations.
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun	  Waffle's immediate goal is to enable Piglit [1] to test
35*4882a593Smuzhiyun	  multiple OpenGL flavors in a cross-platform way, and to allow
36*4882a593Smuzhiyun	  each Piglit test to choose its OpenGL API and window system
37*4882a593Smuzhiyun	  at runtime. A future goal is to enable the ability to record
38*4882a593Smuzhiyun	  (with another tool such APITrace [2]) an application's OpenGL
39*4882a593Smuzhiyun	  calls on one operating system or window system, and then
40*4882a593Smuzhiyun	  replay that trace on a different system.
41*4882a593Smuzhiyun
42*4882a593Smuzhiyun	  For more information, visit to Waffle's website.
43*4882a593Smuzhiyun
44*4882a593Smuzhiyun	  [1] http://piglit.freedesktop.org
45*4882a593Smuzhiyun	  [2] http://github.com/apitrace/apitrace#readme
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun	  http://www.waffle-gl.org
48