We required GL headers for shl_gl.h. Even though the linker strips all the
GL dependencies if it's disabled during compilation, we still require it
as build-time dependency. Avoid that by not including shl_gl in any non-GL
builds.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
src/shl_hook.h \
src/shl_misc.h \
src/shl_register.h \
- src/shl_flagset.h \
- src/shl_gl.h \
- src/shl_gl_math.c
+ src/shl_flagset.h
libshl_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
$(XKBCOMMON_CFLAGS) \
$(XKBCOMMON_LIBS)
if BUILD_HAVE_GLES2
-libshl_la_SOURCES += src/shl_gl_shader.c
+libshl_la_SOURCES += src/shl_gl.h src/shl_gl_shader.c src/shl_gl_math.c
libshl_la_CPPFLAGS += $(GLES2_CFLAGS)
libshl_la_LIBADD += $(GLES2_LIBS)
endif