summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/Makefile.am28
-rw-r--r--src/glx/tests/Makefile.am6
2 files changed, 27 insertions, 7 deletions
diff --git a/src/glx/Makefile.am b/src/glx/Makefile.am
index 0cf65e50732..4553de01a17 100644
--- a/src/glx/Makefile.am
+++ b/src/glx/Makefile.am
@@ -82,24 +82,40 @@ libglx_la_SOURCES = \
single2.c \
singlepix.c \
vertarr.c \
- xfont.c \
glx_pbuffer.c \
glx_query.c \
- drisw_glx.c \
- dri_common.c \
+ glxhash.c
+
+if HAVE_DRISW
+libglx_la_SOURCES += \
+ drisw_glx.c
+endif
+
+if HAVE_DRICOMMON
+libglx_la_SOURCES += \
+ xfont.c \
+ dri_common.c
+endif
+
+if HAVE_DRI2
+libglx_la_SOURCES += \
dri_glx.c \
XF86dri.c \
- glxhash.c \
dri2_glx.c \
dri2.c \
- dri2_query_renderer.c \
- applegl_glx.c
+ dri2_query_renderer.c
+endif
if HAVE_DRI3
libglx_la_SOURCES += \
dri3_glx.c
endif
+if HAVE_APPLEDRI
+libglx_la_SOURCES += \
+ applegl_glx.c
+endif
+
libglx_la_LIBADD = $(top_builddir)/src/loader/libloader.la
GL_LIBS = \
diff --git a/src/glx/tests/Makefile.am b/src/glx/tests/Makefile.am
index 4dc358c3261..3599b3d55e8 100644
--- a/src/glx/tests/Makefile.am
+++ b/src/glx/tests/Makefile.am
@@ -20,9 +20,13 @@ glx_test_SOURCES = \
enum_sizes.cpp \
fake_glx_screen.cpp \
indirect_api.cpp \
- query_renderer_implementation_unittest.cpp \
query_renderer_unittest.cpp
+if HAVE_DRI2
+glx_test_SOURCES += \
+ query_renderer_implementation_unittest.cpp
+endif
+
glx_test_LDADD = \
$(top_builddir)/src/glx/libglx.la \
$(top_builddir)/src/gtest/libgtest.la \