pipe-loader/swrast: add soft/llvmpipe defines
authorJoakim Sindholt <opensource@zhasha.com>
Tue, 11 Mar 2014 01:46:55 +0000 (01:46 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 31 Mar 2014 11:22:08 +0000 (12:22 +0100)
Or it compiles them in, but pretends they don't exist

v2: Rebase (Emil)

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/gallium/targets/pipe-loader/Makefile.am

index ff549e5a89f378207d36f5a5c6586e6e3a2a2c03..e0f05c1a9773dba946915140c031386e1f028c80 100644 (file)
@@ -167,13 +167,18 @@ endif
 endif
 
 if HAVE_GALLIUM_SOFTPIPE
+AM_CPPFLAGS += -DGALLIUM_SOFTPIPE
+
 pipe_LTLIBRARIES += pipe_swrast.la
 pipe_swrast_la_SOURCES = pipe_swrast.c
 pipe_swrast_la_LIBADD = \
        $(PIPE_LIBS) \
        $(top_builddir)/src/gallium/drivers/softpipe/libsoftpipe.la
 pipe_swrast_la_LDFLAGS = -no-undefined -avoid-version -module
+
 if HAVE_GALLIUM_LLVMPIPE
+AM_CPPFLAGS += -DGALLIUM_LLVMPIPE
+
 nodist_EXTRA_pipe_swrast_la_SOURCES = dummy.cpp
 
 pipe_swrast_la_LIBADD += \