summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/noop
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2013-06-05 23:33:38 +0100
committerTom Stellard <thomas.stellard@amd.com>2013-10-01 07:29:50 -0700
commit38d80c01d0a00148989f84631707ade9dc52e8e3 (patch)
tree02770828e778077dd64b054d11915a663b60484a /src/gallium/drivers/noop
parentd7c66ff59ef07abe85a2867f82326376f94386e3 (diff)
noop: consolidate C sources list into Makefile.sources
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Diffstat (limited to 'src/gallium/drivers/noop')
-rw-r--r--src/gallium/drivers/noop/Makefile.am16
-rw-r--r--src/gallium/drivers/noop/Makefile.sources3
-rw-r--r--src/gallium/drivers/noop/SConscript8
3 files changed, 22 insertions, 5 deletions
diff --git a/src/gallium/drivers/noop/Makefile.am b/src/gallium/drivers/noop/Makefile.am
new file mode 100644
index 0000000000..1f4ba028f7
--- /dev/null
+++ b/src/gallium/drivers/noop/Makefile.am
@@ -0,0 +1,16 @@
+################################################################################
+
+# Meta-driver which combines whichever software rasterizers have been
+# built into a single convenience library.
+
+include Makefile.sources
+include $(top_srcdir)/src/gallium/Automake.inc
+
+AM_CFLAGS = \
+ -I$(top_srcdir)/src/gallium/drivers \
+ $(GALLIUM_CFLAGS) \
+ $(VISIBILITY_CFLAGS)
+
+noinst_LTLIBRARIES = libnoop.la
+
+libnoop_la_SOURCES = $(C_SOURCES)
diff --git a/src/gallium/drivers/noop/Makefile.sources b/src/gallium/drivers/noop/Makefile.sources
new file mode 100644
index 0000000000..916385e2d2
--- /dev/null
+++ b/src/gallium/drivers/noop/Makefile.sources
@@ -0,0 +1,3 @@
+C_SOURCES := \
+ noop_pipe.c \
+ noop_state.c
diff --git a/src/gallium/drivers/noop/SConscript b/src/gallium/drivers/noop/SConscript
index a4d0dcaf27..9cb2e29cbe 100644
--- a/src/gallium/drivers/noop/SConscript
+++ b/src/gallium/drivers/noop/SConscript
@@ -7,9 +7,7 @@ env = env.Clone()
noop = env.ConvenienceLibrary(
target = 'noop',
- source = [
- 'noop_pipe.c',
- 'noop_state.c'
- ]
- ) + extra
+ source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
+ ) + extra
+
Export('noop')