summaryrefslogtreecommitdiffstats
path: root/rules/mesalib.in
blob: 430c94e8deecf33ce6c45cc9106063ece37f8b39 (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
## SECTION=multimedia_libs

menuconfig MESALIB
	tristate
	prompt "mesa                          "
	select HOST_MESALIB
	select HOST_MAKEDEPEND
	select HOST_SYSTEM_PYTHON
	select HOST_SYSTEM_PYTHON_XML2
	select GCCLIBS
	select GCCLIBS_CXX
	select LIBDRM
	select UDEV			if MESALIB_UDEV
	select UDEV_LIBUDEV		if MESALIB_UDEV
	select WAYLAND			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_FREEDRENO		if MESALIB_DRI_FREEDRENO
	select XORG_PROTO_DRI2		if MESALIB_GLX
	select XORG_LIB_X11		if MESALIB_GLX
	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 XORG_PROTO_GL		if MESALIB_GLX
	select EXPAT
	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

config MESALIB_GLX
	prompt "GLX library"
	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_FREEDRENO
	bool
	prompt "Freedreno"

config MESALIB_DRI_VC4
	bool
	prompt "vc4"

comment "API Support"

config MESALIB_OPENGL
	bool
	prompt "OpenGL"

config MESALIB_GLES1
	bool
	prompt "OpenGL ES1"

config MESALIB_GLES2
	bool
	select MESALIB_OPENGL
	prompt "OpenGL ES2"

if MESALIB_OPENGL || MESALIB_GLES1 || MESALIB_GLES2
config MESALIB_EGL
	bool
	select MESALIB_UDEV
	prompt "EGL"

config MESALIB_GBM
	bool
	select MESALIB_UDEV
	prompt "GBM"
endif

if MESALIB_EGL

comment "EGL Platforms"

config MESALIB_EGL_X11
	bool
	default MESALIB_GLX

config MESALIB_EGL_DRM
	bool
	select MESALIB_GBM
	prompt "DRM"

config MESALIB_EGL_WAYLAND
	bool
	prompt "Wayland"

endif
endif