summaryrefslogtreecommitdiffstats
path: root/rules/mesalib.in
blob: 12e6f1d9edeb774b74809c520bad065b6a89fe25 (plain) (blame)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
## SECTION=multimedia_libs

menuconfig MESALIB
	tristate
	prompt "mesa                          "
	select HOST_MESALIB
	select HOST_MESON
	select HOST_MAKEDEPEND
	select HOST_SYSTEM_PYTHON3
	select HOST_SYSTEM_PYTHON3_MAKO
	select GCCLIBS
	select GCCLIBS_CXX
	select LIBDRM
	select LIBDRM_INTEL		if MESALIB_DRI_I915 || MESALIB_DRI_I965
	select UDEV			if MESALIB_UDEV
	select UDEV_LIBUDEV		if MESALIB_UDEV
	select WAYLAND			if MESALIB_EGL_WAYLAND
	select WAYLAND_PROTOCOLS	if MESALIB_EGL_WAYLAND
	select LIBDRM_RADEON		if MESALIB_DRI_R200
	select LIBDRM_RADEON		if MESALIB_DRI_R300
	select LIBDRM_RADEON		if MESALIB_DRI_R600
	select LIBDRM_RADEON		if MESALIB_DRI_RADEONSI
	select LIBDRM_NOUVEAU		if MESALIB_DRI_NOUVEAU || MESALIB_DRI_NOUVEAU_VIEUX
	select LIBDRM_ETNAVIV		if MESALIB_DRI_ETNAVIV
	select LM_SENSORS		if MESALIB_LMSENSORS
	select XORGPROTO		if MESALIB_GLX
	select XORG_LIB_X11		if MESALIB_GLX || MESALIB_EGL_X11 && MESALIB_EGL_DRM
	select XORG_LIB_XEXT		if MESALIB_GLX
	select XORG_LIB_XXF86VM		if MESALIB_GLX
	select XORG_LIB_XDAMAGE		if MESALIB_GLX
	select XORG_LIB_XFIXES		if MESALIB_GLX
	select EXPAT
	select ZLIB
	help
	  Mesa is a 3-D graphics library with an API which is very
	  similar to that of OpenGL. See the project homepage for
	  details:

		http://www.mesa3d.org/

if MESALIB

config MESALIB_UDEV
	bool

comment "Drivers"

config MESALIB_DRI_SWRAST
	bool
	prompt "Software Rasterizer"

config MESALIB_DRI_I915
	bool
	select MESALIB_OPENGL
	prompt "Intel i915"

config MESALIB_DRI_I965
	bool
	select MESALIB_OPENGL
	prompt "Intel i965"

config MESALIB_DRI_R200
	bool
	select MESALIB_OPENGL
	prompt "AMD R200"

config MESALIB_DRI_R300
	bool
	prompt "AMD R300"

config MESALIB_DRI_R600
	bool
	prompt "AMD R600"

config MESALIB_DRI_RADEONSI
	bool
	# needs LLVM
	depends on BROKEN
	prompt "AMD RadeonSI"

config MESALIB_DRI_NOUVEAU_VIEUX
	bool
	select MESALIB_OPENGL
	prompt "Nvidia <= GForce4"

config MESALIB_DRI_NOUVEAU
	bool
	prompt "Nvidia > GForce4"

config MESALIB_DRI_KMSRO
	bool
	prompt "KMS renderonly"

config MESALIB_DRI_FREEDRENO
	bool
	prompt "Freedreno"

config MESALIB_DRI_ETNAVIV
	bool
	prompt "Etnaviv"

config MESALIB_DRI_V3D
	bool
	# needs v3dv3
	depends on BROKEN
	prompt "v3d"

config MESALIB_DRI_VC4
	bool
	prompt "vc4"

config MESALIB_DRI_PANFROST
	bool
	prompt "panfrost"

config MESALIB_DRI_IRIS
	bool
	prompt "iris"

config MESALIB_DRI_LIMA
	bool
	prompt "lima"

comment "API Support"

config MESALIB_OPENGL
	bool
	prompt "OpenGL"

config MESALIB_GLES1
	bool
	select MESALIB_OPENGL
	prompt "OpenGL ES1"

config MESALIB_GLES2
	bool
	select MESALIB_OPENGL
	prompt "OpenGL ES2"

config MESALIB_GLX
	select MESALIB_EGL_X11
	select MESALIB_OPENGL
	prompt "GLX"
	bool

config MESALIB_EGL
	bool
	select MESALIB_UDEV
	prompt "EGL"

config MESALIB_GBM
	bool
	select MESALIB_UDEV
	prompt "GBM"

comment "Platforms"

config MESALIB_EGL_X11
	bool
	prompt "X11"

config MESALIB_EGL_DRM
	bool
	select MESALIB_GBM
	select MESALIB_EGL
	prompt "DRM"

config MESALIB_EGL_WAYLAND
	bool
	select MESALIB_EGL
	prompt "Wayland"

comment "Gallium HUD options"

config MESALIB_EXTENDED_HUD
	prompt "Extended Gallium HUD options"
	bool

config MESALIB_LMSENSORS
	prompt "LMsensors support"
	depends on MESALIB_EXTENDED_HUD
	bool

endif