trace: consolidate C sources list into Makefile.sources
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 8 May 2013 22:44:15 +0000 (23:44 +0100)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 1 Oct 2013 14:29:50 +0000 (07:29 -0700)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/trace/Makefile.am
src/gallium/drivers/trace/Makefile.sources [new file with mode: 0644]
src/gallium/drivers/trace/SConscript

index 984ead4d7abb51ef273368f124201174ecdb5418..db5904d23e6f491bf9cbb0d5733333eca95f08f6 100644 (file)
@@ -1,3 +1,4 @@
+include Makefile.sources
 include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CFLAGS = \
@@ -6,9 +7,4 @@ AM_CFLAGS = \
 
 noinst_LTLIBRARIES = libtrace.la
 
-libtrace_la_SOURCES = \
-       tr_context.c \
-       tr_dump.c \
-       tr_dump_state.c \
-       tr_screen.c \
-       tr_texture.c
+libtrace_la_SOURCES = $(C_SOURCES)
diff --git a/src/gallium/drivers/trace/Makefile.sources b/src/gallium/drivers/trace/Makefile.sources
new file mode 100644 (file)
index 0000000..d325739
--- /dev/null
@@ -0,0 +1,6 @@
+C_SOURCES := \
+       tr_context.c \
+       tr_dump.c \
+       tr_dump_state.c \
+       tr_screen.c \
+       tr_texture.c
index 1384fe33d72074b9c3635a5239516830f097693e..7341d1c1c1d69cc6da3f6c4eef79083f92dd11ab 100644 (file)
@@ -4,13 +4,8 @@ env = env.Clone()
 
 trace = env.ConvenienceLibrary(
     target = 'trace',
-    source = [
-        'tr_context.c',
-        'tr_dump.c',
-        'tr_dump_state.c',
-        'tr_screen.c',
-        'tr_texture.c',
-    ])
+    source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
+    )
 
 env.Alias('trace', trace)