diff options
| author | Eric Anholt <eric@anholt.net> | 2013-12-06 12:09:57 -0800 |
|---|---|---|
| committer | Eric Anholt <eric@anholt.net> | 2013-12-06 15:50:01 -0800 |
| commit | 0d7d26537d8d8309ed462fcc5852c7bae9244fee (patch) | |
| tree | c8fe3d51e19ebef7a206b74d8112aedbbe205253 /src/Makefile.am | |
| parent | 19053c4d6ffa391f51657e267e35db9e99b205e4 (diff) | |
| download | libepoxy-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 'src/Makefile.am')
| -rw-r--r-- | src/Makefile.am | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 36c1704..d28eb0f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -30,10 +30,18 @@ lib_LTLIBRARIES = libepoxy.la epoxyinclude_DATA = \ $(GENERATED_GL_INCLUDES) \ - $(GENERATED_GLX_INCLUDES) \ - $(GENERATED_EGL_INCLUDES) \ + $(INSTALL_GLX_INCLUDES) \ + $(INSTALL_EGL_INCLUDES) \ $() +if BUILD_EGL +INSTALL_EGL_INCLUDES = $(GENERATED_EGL_INCLUDES) +endif + +if BUILD_GLX +INSTALL_GLX_INCLUDES = $(GENERATED_GLX_INCLUDES) +endif + GENERATED_GL_INCLUDES = \ $(builddir)/../include/epoxy/gl_generated.h \ $(builddir)/../include/epoxy/gl_generated_vtable_defines.h \ |
