rbug: consolidate C sources list into Makefile.sources
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 8 May 2013 22:34:36 +0000 (23:34 +0100)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 1 Oct 2013 14:29:49 +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/rbug/Makefile.am
src/gallium/drivers/rbug/Makefile.sources [new file with mode: 0644]
src/gallium/drivers/rbug/SConscript

index 3c1a8b5f875cd0d938e92b85388362e4b5d027a7..1aa65214100c7ea0353610e73a297d7e352ab407 100644 (file)
@@ -20,6 +20,7 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 # DEALINGS IN THE SOFTWARE.
 
+include Makefile.sources
 include $(top_srcdir)/src/gallium/Automake.inc
 
 noinst_LTLIBRARIES = librbug.la
@@ -34,8 +35,4 @@ AM_CFLAGS = \
        -I$(top_srcdir)/src/gallium/drivers \
        -I$(top_srcdir)/include
 
-librbug_la_SOURCES = \
-       rbug_core.c \
-       rbug_context.c \
-       rbug_objects.c \
-       rbug_screen.c
+librbug_la_SOURCES = $(C_SOURCES)
diff --git a/src/gallium/drivers/rbug/Makefile.sources b/src/gallium/drivers/rbug/Makefile.sources
new file mode 100644 (file)
index 0000000..32a18f6
--- /dev/null
@@ -0,0 +1,5 @@
+C_SOURCES := \
+       rbug_core.c \
+       rbug_context.c \
+       rbug_objects.c \
+       rbug_screen.c
index 169c2718dc35005a761e07399ec0b5a82c830840..63209abac2e83102b1caa93a787ae9578adf538e 100644 (file)
@@ -4,12 +4,8 @@ env = env.Clone()
 
 rbug = env.ConvenienceLibrary(
        target = 'rbug',
-       source = [
-               'rbug_context.c',
-               'rbug_core.c',
-               'rbug_objects.c',
-               'rbug_screen.c',
-       ])
+       source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
+       )
 
 env.Alias('rbug', rbug)