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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
|
From f687e1297c9a26b219fc8b5a1faa6c1e3d1d6d16 Mon Sep 17 00:00:00 2001
From: Matt Turner <mattst88@gmail.com>
Date: Fri, 27 Jan 2023 06:40:05 -0800
Subject: [PATCH] Disable things we don't want
v2: Enable libglad to satisfy egl dependencies
v3: Enable most of libutil to fix undefined references in es2gears
---
meson.build | 13 +++----------
src/egl/opengl/meson.build | 33 --------------------------------
src/egl/opengles2/meson.build | 5 -----
src/meson.build | 2 --
src/util/gl_wrap.h | 2 --
src/util/meson.build | 7 +------
src/xdemos/meson.build | 36 -----------------------------------
7 files changed, 4 insertions(+), 94 deletions(-)
diff --git a/meson.build b/meson.build
index 6ad6ea7a..1c46da4f 100644
--- a/meson.build
+++ b/meson.build
@@ -87,16 +87,7 @@ endif
dep_threads = dependency('threads')
-dep_glu = dependency('glu', required : false)
-# GLU is part of OpenGL.Framework
-if not dep_glu.found() and host_machine.system() != 'darwin'
- _glu_name = 'GLU'
- if host_machine.system() == 'windows'
- _glu_name = 'glu32'
- endif
- dep_glu = cc.find_library(_glu_name, has_headers: 'GL/glu.h',
- required : dep_x11.found())
-endif
+dep_glu = disabler()
# GBM is needed for EGL on KMS
dep_gbm = dependency('gbm', required : false, disabler : true)
@@ -135,6 +126,8 @@ else
dep_glut = dependency('', required : false)
endif
+dep_glut = disabler()
+
if dep_glut.found() and cc.has_function('glutInitContextProfile',
dependencies: [dep_glut],
prefix : '#include <GL/freeglut.h>')
diff --git a/src/egl/opengl/meson.build b/src/egl/opengl/meson.build
index 434adf21..e4b0c83a 100644
--- a/src/egl/opengl/meson.build
+++ b/src/egl/opengl/meson.build
@@ -25,38 +25,12 @@ executable(
dependencies: [_deps, dep_glu, idep_eglut_x11],
install: true
)
-executable(
- 'egltri_x11', files('egltri.c'),
- dependencies: [_deps, dep_glu, idep_eglut_x11],
- install: true
-)
-executable(
- 'xeglgears', files('xeglgears.c'),
- dependencies: [_deps, dep_glu, dep_egl, dep_x11],
- install: true
-)
-executable(
- 'xeglthreads', files('xeglthreads.c'),
- dependencies: [_deps, dep_x11],
- install: true
-)
executable(
'eglgears_wayland', files('eglgears.c'),
dependencies: [_deps, dep_glu, idep_eglut_wayland],
install: true
)
-executable(
- 'egltri_wayland', files('egltri.c'),
- dependencies: [_deps, dep_glu, idep_eglut_wayland],
- install: true
-)
-
-executable(
- 'eglkms', 'eglkms.c',
- dependencies: [_deps, dep_drm, dep_gbm, dep_egl],
- install: true
-)
executable(
'eglinfo', 'eglinfo.c',
@@ -64,10 +38,3 @@ executable(
include_directories: [inc_glad, '../../xdemos'],
install: true
)
-
-executable(
- 'peglgears', 'peglgears.c',
- dependencies: [dep_gl, dep_glu, dep_egl, dep_m, idep_util],
- install: true
-)
-
diff --git a/src/egl/opengles2/meson.build b/src/egl/opengles2/meson.build
index da083cf2..59b35d66 100644
--- a/src/egl/opengles2/meson.build
+++ b/src/egl/opengles2/meson.build
@@ -29,11 +29,6 @@ executable(
dependencies: [dep_gles2, idep_eglut_x11, idep_util],
install: true
)
-executable(
- 'es2tri', files('es2tri.c'),
- dependencies: [_deps_x11, dep_m],
- install: true
-)
executable(
'es2gears_wayland', files('es2gears.c'),
dependencies: [dep_gles2, idep_eglut_wayland, idep_util],
diff --git a/src/meson.build b/src/meson.build
index fd4a1673..cea622a6 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -57,5 +57,3 @@ endif
if host_machine.system() == 'windows'
subdir('wgl')
endif
-
-subdir('data')
diff --git a/src/util/gl_wrap.h b/src/util/gl_wrap.h
index b2ff9c8f..f482df5e 100644
--- a/src/util/gl_wrap.h
+++ b/src/util/gl_wrap.h
@@ -7,10 +7,8 @@
#ifdef __APPLE__
# include <OpenGL/gl.h>
-# include <OpenGL/glu.h>
#else
# include <GL/gl.h>
-# include <GL/glu.h>
#endif
#ifndef GLAPIENTRY
diff --git a/src/util/meson.build b/src/util/meson.build
index ddcd4834..72e9480d 100644
--- a/src/util/meson.build
+++ b/src/util/meson.build
@@ -21,17 +21,12 @@
inc_util = include_directories('.')
files_libutil = files(
- 'readtex.c',
'showbuffer.c',
'trackball.c',
'matrix.c',
)
-_deps = [dep_glu, dep_m]
-if dep_glut.found()
- files_libutil += files('shaderutil.c')
- _deps += dep_glut
-endif
+_deps = [dep_m]
_libutil = static_library(
'util',
diff --git a/src/xdemos/meson.build b/src/xdemos/meson.build
index d6d5d5d5..ce26699f 100644
--- a/src/xdemos/meson.build
+++ b/src/xdemos/meson.build
@@ -21,25 +21,7 @@
glx_deps = [dep_gl, dep_x11, dep_m]
progs = [
- 'glsync',
- 'glxdemo',
'glxgears',
- 'glxgears_pixmap',
- 'glxcontexts',
- 'glxheads',
- 'glxpixmap',
- 'glxpbdemo',
- 'glxsnoop',
- 'glxswapcontrol',
- 'manywin',
- 'multictx',
- 'offset',
- 'overlay',
- 'shape',
- 'sharedtex',
- 'texture_from_pixmap',
- 'wincopy',
- 'xfont',
]
foreach p : progs
executable(
@@ -56,23 +38,7 @@ executable(
install: true
)
-executable(
- 'xrotfontdemo',
- files('xrotfontdemo.c', 'xuserotfont.c'),
- dependencies: glx_deps,
- install: true
-)
-
-_libpbutil = static_library(
- 'pbutil',
- files('pbutil.c'),
- dependencies: glx_deps
-)
-
pbutil_progs = [
- 'glxgears_fbconfig',
- 'pbinfo',
- 'pbdemo',
]
foreach p : pbutil_progs
executable(
@@ -84,8 +50,6 @@ foreach p : pbutil_progs
endforeach
thread_progs = [
- 'glthreads',
- 'sharedtex_mt',
]
foreach p : thread_progs
executable(
|