scancpan: fix detection of native module
[buildroot-gz.git] / package / mesa3d / Config.in
bloba658986593a6be4e3c87890e52c53839965c225e
1 menuconfig BR2_PACKAGE_MESA3D
2         bool "mesa3d"
3         select BR2_PACKAGE_LIBDRM
4         select BR2_PACKAGE_EXPAT
5         select BR2_PACKAGE_XPROTO_DRI2PROTO if BR2_PACKAGE_XORG7
6         select BR2_PACKAGE_XPROTO_XF86DRIPROTO if BR2_PACKAGE_XORG7
7         select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7
8         select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7
9         select BR2_PACKAGE_XLIB_LIBXDAMAGE if BR2_PACKAGE_XORG7
10         select BR2_PACKAGE_XLIB_LIBXFIXES if BR2_PACKAGE_XORG7
11         select BR2_PACKAGE_LIBXCB if BR2_PACKAGE_XORG7
12         depends on BR2_INSTALL_LIBSTDCPP
13         depends on !BR2_STATIC_LIBS
14         depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
15         # Triggers the _gp link issue in nios2
16         depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305
17         depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201405
18         help
19           Mesa 3D, an open-source implementation of the OpenGL specification.
21           http://mesa3d.org
23 if BR2_PACKAGE_MESA3D
25 # inform the .mk file of gallium or dri driver selection
26 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
27         select BR2_PACKAGE_MESA3D_DRIVER
28         bool
30 config BR2_PACKAGE_MESA3D_DRI_DRIVER
31         select BR2_PACKAGE_MESA3D_DRIVER
32         select BR2_PACKAGE_HAS_LIBGL
33         bool
35 config BR2_PACKAGE_PROVIDES_LIBGL
36         default "mesa3d" if BR2_PACKAGE_MESA3D_DRI_DRIVER
38 config BR2_PACKAGE_MESA3D_DRIVER
39         bool
41 config BR2_PACKAGE_MESA3D_NEEDS_XA
42         bool
44 comment "Gallium drivers"
46 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU
47         bool "Gallium nouveau driver"
48         depends on BR2_i386 || BR2_x86_64
49         select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
50         select BR2_PACKAGE_LIBDRM_NOUVEAU
51         select BR2_PACKAGE_MESA3D_NEEDS_XA
52         help
53           Supports all Nvidia GPUs.
55 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600
56         bool "Gallium Radeon R600 driver"
57         depends on BR2_i386 || BR2_x86_64
58         select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
59         select BR2_PACKAGE_LIBDRM_RADEON
60         select BR2_PACKAGE_MESA3D_NEEDS_XA
61         help
62           Driver for ATI/AMD Radeon R600/R700/HD5000/HD6000 GPUs.
64 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA
65         bool "Gallium vmware svga driver"
66         depends on BR2_i386 || BR2_x86_64
67         select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
68         select BR2_PACKAGE_LIBDRM_VMWGFX
69         select BR2_PACKAGE_MESA3D_NEEDS_XA
70         help
71           This is a virtual GPU driver for VMWare virtual machines.
73 config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST
74         bool "Gallium swrast driver"
75         select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER
76         help
77           This is a software opengl implementation using the Gallium3D
78           infrastructure.
80 comment "DRI drivers need X.Org"
81         depends on !BR2_PACKAGE_XORG7
83 if BR2_PACKAGE_XORG7
85 comment "DRI drivers"
87 config BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST
88         bool "DRI swrast driver"
89         select BR2_PACKAGE_MESA3D_DRI_DRIVER
90         help
91           This is a software opengl implementation using the DRI
92           infrastructure.
94 config BR2_PACKAGE_MESA3D_DRI_DRIVER_I915
95         bool "DRI i915 driver"
96         depends on BR2_i386 || BR2_x86_64
97         select BR2_PACKAGE_MESA3D_DRI_DRIVER
98         select BR2_PACKAGE_LIBDRM_INTEL
99         help
100           Support for i915-based Intel GPUs.
102 config BR2_PACKAGE_MESA3D_DRI_DRIVER_I965
103         bool "DRI i965 driver"
104         depends on BR2_i386 || BR2_x86_64
105         select BR2_PACKAGE_MESA3D_DRI_DRIVER
106         select BR2_PACKAGE_LIBDRM_INTEL
107         help
108           Support for i965-based Intel GPUs.
110 config BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON
111         bool "DRI radeon driver"
112         depends on BR2_i386 || BR2_x86_64
113         select BR2_PACKAGE_MESA3D_DRI_DRIVER
114         select BR2_PACKAGE_LIBDRM_RADEON
115         help
116           Legacy Radeon driver for R100 series GPUs.
118 endif # BR2_PACKAGE_XORG7
120 if BR2_PACKAGE_MESA3D_DRIVER
122 comment "Additional API Support"
124 config BR2_PACKAGE_MESA3D_OPENGL_EGL
125         bool "OpenGL EGL"
126         select BR2_PACKAGE_HAS_LIBEGL
127         help
128           Use the Khronos EGL APIs. EGL is a window manager for OpenGL applications
129           similar to GLX, for X, and WGL, for Windows.
131 config BR2_PACKAGE_MESA3D_OPENGL_ES
132         bool "OpenGL ES"
133         select BR2_PACKAGE_HAS_LIBGLES
134         help
135           Use the Khronos OpenGL ES APIs. This is commonly used on embedded
136           systems and represents a subset of the OpenGL API.
138 endif # BR2_PACKAGE_MESA3D_DRIVER
140 config BR2_PACKAGE_PROVIDES_LIBEGL
141         default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_EGL
143 config BR2_PACKAGE_PROVIDES_LIBGLES
144         default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_ES
146 endif # BR2_PACKAGE_MESA3D
148 comment "mesa3d needs a toolchain w/ C++, NPTL, dynamic library"
149         depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201305
150         depends on !BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_NIOSII201405
151         depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
152                 BR2_STATIC_LIBS