summaryrefslogtreecommitdiff
path: root/test/headerguards.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-12-06 12:09:57 -0800
committerEric Anholt <eric@anholt.net>2013-12-06 15:50:01 -0800
commit0d7d26537d8d8309ed462fcc5852c7bae9244fee (patch)
treec8fe3d51e19ebef7a206b74d8112aedbbe205253 /test/headerguards.c
parent19053c4d6ffa391f51657e267e35db9e99b205e4 (diff)
downloadlibepoxy-0d7d26537d8d8309ed462fcc5852c7bae9244fee.tar.gz
Conditionalize building GLX and EGL tests and headers.
Note that the generated code is still generated, they just aren't built and installed. The goal with that is that someone could take the built .c and .h files and drop it into their own project, if they want to avoid shared libs.
Diffstat (limited to 'test/headerguards.c')
-rw-r--r--test/headerguards.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/headerguards.c b/test/headerguards.c
index a270b53..d3e4445 100644
--- a/test/headerguards.c
+++ b/test/headerguards.c
@@ -21,16 +21,29 @@
* IN THE SOFTWARE.
*/
+#include <config.h>
+
#include <epoxy/gl.h>
+
+#ifdef BUILD_EGL
#include <epoxy/egl.h>
+#endif
+
+#ifdef BUILD_GLX
#include <epoxy/glx.h>
+#endif
+#ifdef BUILD_EGL
#include <EGL/egl.h>
#include <EGL/eglext.h>
+#endif
+
+#ifdef BUILD_GLX
#include <GL/gl.h>
#include <GL/glext.h>
#include <GL/glx.h>
#include <GL/glxext.h>
+#endif
int main(int argc, char **argv)
{