st/dri/sw: consolidate C sources list into Makefile.sources
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 5 Jun 2013 23:02:35 +0000 (00:02 +0100)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 1 Oct 2013 14:29:51 +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/sw/Makefile.am
src/gallium/state_trackers/dri/sw/Makefile.sources [new file with mode: 0644]
src/gallium/state_trackers/dri/sw/SConscript

index b62161a4c1a5eefc0edf1567da394100330467b2..f0377a8ede3a7ae27f62e60aed6147fa6e3f9173 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 = libdrisw.la
 
-libdrisw_la_SOURCES = \
-       dri_context.c \
-       dri_screen.c \
-       dri_drawable.c \
-       drisw.c
+libdrisw_la_SOURCES =  $(C_SOURCES)
diff --git a/src/gallium/state_trackers/dri/sw/Makefile.sources b/src/gallium/state_trackers/dri/sw/Makefile.sources
new file mode 100644 (file)
index 0000000..1255934
--- /dev/null
@@ -0,0 +1,5 @@
+C_SOURCES := \
+       dri_context.c \
+       dri_screen.c \
+       dri_drawable.c \
+       drisw.c
index 287733eea62ad4e3583e282663bf764ca675616c..6d482a5bc947070139e9f6dcabc5af533341e0d3 100644 (file)
@@ -15,15 +15,8 @@ env.Append(CPPPATH = [
 
 env.Append(CPPDEFINES = [('__NOT_HAVE_DRM_H', '1')])
 
-sources = [
-    'dri_context.c',
-    'dri_drawable.c',
-    'dri_screen.c',
-    'drisw.c',
-]
-
 st_drisw = env.ConvenienceLibrary(
     target = 'st_drisw',
-    source = sources,
+    source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
 )
 Export('st_drisw')