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