st/dri: consolidate C sources list into Makefile.sources
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 5 Jun 2013 22:57:23 +0000 (23:57 +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/state_trackers/dri/drm/Makefile.am
src/gallium/state_trackers/dri/drm/Makefile.sources [new file with mode: 0644]
src/gallium/state_trackers/dri/drm/SConscript

index f8916b1b554bfde5656d598420fcdb4cc8bc82e9..c90c4634e0b57c6da9091fe60feaccc837aec0c5 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
 
 AM_CPPFLAGS = \
@@ -34,8 +35,4 @@ AM_CPPFLAGS = \
 
 noinst_LTLIBRARIES = libdridrm.la
 
-libdridrm_la_SOURCES = \
-       dri_context.c \
-       dri_screen.c \
-       dri_drawable.c \
-       dri2.c
+libdridrm_la_SOURCES = $(C_SOURCES)
diff --git a/src/gallium/state_trackers/dri/drm/Makefile.sources b/src/gallium/state_trackers/dri/drm/Makefile.sources
new file mode 100644 (file)
index 0000000..b9b93a2
--- /dev/null
@@ -0,0 +1,5 @@
+C_SOURCES := \
+       dri_context.c \
+       dri_screen.c \
+       dri_drawable.c \
+       dri2.c
index a996f50bf2d4e54669df3845bdaedb9ac925e5c1..07eaa0ae1b5081b8c2a1512ea64861bfc64dc429 100644 (file)
@@ -15,15 +15,8 @@ env.Append(CPPPATH = [
     xmlpool_options.dir.dir, # Dir to generated xmlpool/options.h
 ])
 
-sources = [
-    'dri_context.c',
-    'dri_drawable.c',
-    'dri_screen.c',
-    'dri2.c',
-]
-
 st_dri = env.ConvenienceLibrary(
     target = 'st_dri',
-    source = sources,
+    source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
 )
 Export('st_dri')