winsys/sw: automake: consistently use Makefile.sources
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 17 Aug 2014 19:15:07 +0000 (20:15 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 28 Aug 2014 20:24:39 +0000 (21:24 +0100)
 - Include the headers within.
 - Update scons to use them.
 - Drop useless include (gallium/drivers) from scons.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
20 files changed:
src/gallium/winsys/sw/dri/Makefile.am
src/gallium/winsys/sw/dri/Makefile.sources [new file with mode: 0644]
src/gallium/winsys/sw/dri/SConscript
src/gallium/winsys/sw/fbdev/Makefile.am
src/gallium/winsys/sw/fbdev/Makefile.sources [new file with mode: 0644]
src/gallium/winsys/sw/fbdev/SConscript
src/gallium/winsys/sw/kms-dri/Makefile.am
src/gallium/winsys/sw/kms-dri/Makefile.sources [new file with mode: 0644]
src/gallium/winsys/sw/kms-dri/SConscript
src/gallium/winsys/sw/null/Makefile.am
src/gallium/winsys/sw/null/Makefile.sources [new file with mode: 0644]
src/gallium/winsys/sw/null/SConscript
src/gallium/winsys/sw/wayland/Makefile.am
src/gallium/winsys/sw/wayland/Makefile.sources [new file with mode: 0644]
src/gallium/winsys/sw/wrapper/Makefile.am
src/gallium/winsys/sw/wrapper/Makefile.sources [new file with mode: 0644]
src/gallium/winsys/sw/wrapper/SConscript
src/gallium/winsys/sw/xlib/Makefile.am
src/gallium/winsys/sw/xlib/Makefile.sources [new file with mode: 0644]
src/gallium/winsys/sw/xlib/SConscript

index 182825e6695c365a1d1e48aff8a1b2356aeff567..1917b00ca8ec061d67b897377f72e654a502a62f 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_CFLAGS = \
@@ -27,4 +28,4 @@ AM_CFLAGS = \
 
 noinst_LTLIBRARIES = libswdri.la
 
-libswdri_la_SOURCES = dri_sw_winsys.c
+libswdri_la_SOURCES = $(C_SOURCES)
diff --git a/src/gallium/winsys/sw/dri/Makefile.sources b/src/gallium/winsys/sw/dri/Makefile.sources
new file mode 100644 (file)
index 0000000..5f9178f
--- /dev/null
@@ -0,0 +1,3 @@
+C_SOURCES := \
+       dri_sw_winsys.c \
+       dri_sw_winsys.h
index f8e1fa6cfd87171959d0e7e4e6ff4afe990d7a4e..434d13bd6f8c65ed252ae6e6d0ae5ce714296d05 100644 (file)
@@ -11,13 +11,10 @@ if env['platform'] in ('linux', 'sunos'):
     env.Append(CPPPATH = [
         '#/src/gallium/include',
         '#/src/gallium/auxiliary',
-        '#/src/gallium/drivers',
     ])
 
     ws_dri = env.ConvenienceLibrary(
         target = 'ws_dri',
-        source = [
-           'dri_sw_winsys.c',
-        ]
+        source = env.ParseSourceList('Makefile.sources', 'C_SOURCES'),
     )
     Export('ws_dri')
index 93abe816185431c760c990ac8e6294398a5b50f4..2953376d288745f92a7f688561d0fc78bb6b3273 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_CFLAGS = \
@@ -27,4 +28,4 @@ AM_CFLAGS = \
 
 noinst_LTLIBRARIES = libfbdev.la
 
-libfbdev_la_SOURCES = fbdev_sw_winsys.c
+libfbdev_la_SOURCES = $(C_SOURCES)
diff --git a/src/gallium/winsys/sw/fbdev/Makefile.sources b/src/gallium/winsys/sw/fbdev/Makefile.sources
new file mode 100644 (file)
index 0000000..dd48051
--- /dev/null
@@ -0,0 +1,3 @@
+C_SOURCES := \
+       fbdev_sw_winsys.c \
+       fbdev_sw_winsys.h
index 3b5b4ff1c07446aa094eaa608f9c5dcef09cb8fa..bf504ad28d8bc2cd0ce8fb6bd984d850c5cac77d 100644 (file)
@@ -11,13 +11,10 @@ if env['platform'] == 'linux':
     env.Append(CPPPATH = [
         '#/src/gallium/include',
         '#/src/gallium/auxiliary',
-        '#/src/gallium/drivers',
     ])
 
     ws_fbdev = env.ConvenienceLibrary(
         target = 'ws_fbdev',
-        source = [
-           'fbdev_sw_winsys.c',
-        ]
+        source = env.ParseSourceList('Makefile.sources', 'C_SOURCES'),
     )
     Export('ws_fbdev')
index cb3b61deea619713cfe974b971d135bec3aa5369..8162553289d4c3c4fd113de5a596152b137173ed 100644 (file)
@@ -21,6 +21,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_CFLAGS = \
@@ -29,4 +30,4 @@ AM_CFLAGS = \
 
 noinst_LTLIBRARIES = libswkmsdri.la
 
-libswkmsdri_la_SOURCES = kms_dri_sw_winsys.c
+libswkmsdri_la_SOURCES = $(C_SOURCES)
diff --git a/src/gallium/winsys/sw/kms-dri/Makefile.sources b/src/gallium/winsys/sw/kms-dri/Makefile.sources
new file mode 100644 (file)
index 0000000..4bf832b
--- /dev/null
@@ -0,0 +1,3 @@
+C_SOURCES := \
+       kms_dri_sw_winsys.c \
+       kms_dri_sw_winsys.h
index 0a6c335cbd7b5d70e58c64e99f23deded31605b5..e7dd721dd13ef611bad2621000271915f24dac2d 100644 (file)
@@ -12,15 +12,12 @@ env = env.Clone()
 env.PkgUseModules('DRM')
 
 env.Append(CPPPATH = [
-#    'include',
     '#/src/gallium/include',
     '#/src/gallium/auxiliary',
 ])
 
 ws_kms_dri = env.ConvenienceLibrary(
     target = 'ws_kms_dri',
-    source = [
-       'kms_dri_sw_winsys.c',
-    ]
+    source = env.ParseSourceList('Makefile.sources', 'C_SOURCES'),
 )
 Export('ws_kms_dri')
index 17b52ccd617cb97d0f9f7034f9812baa8484a255..5446623c61b89d0803bfd5a17f6fc16e924a5a29 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_CFLAGS = \
@@ -27,4 +28,4 @@ AM_CFLAGS = \
 
 noinst_LTLIBRARIES = libws_null.la
 
-libws_null_la_SOURCES = null_sw_winsys.c
+libws_null_la_SOURCES = $(C_SOURCES)
diff --git a/src/gallium/winsys/sw/null/Makefile.sources b/src/gallium/winsys/sw/null/Makefile.sources
new file mode 100644 (file)
index 0000000..b72310b
--- /dev/null
@@ -0,0 +1,3 @@
+C_SOURCES := \
+       null_sw_winsys.c \
+       null_sw_winsys.h
index b7176e0bbb8fca4279f0294b6e92bc376c23ffe7..6236498af2e67df9244dc7fd3dda7254ace83c36 100644 (file)
@@ -9,14 +9,11 @@ env = env.Clone()
 env.Append(CPPPATH = [
     '#/src/gallium/include',
     '#/src/gallium/auxiliary',
-    '#/src/gallium/drivers',
 ])
 
 ws_null = env.ConvenienceLibrary(
     target = 'ws_null',
-    source = [
-       'null_sw_winsys.c',
-    ]
+    source = env.ParseSourceList('Makefile.sources', 'C_SOURCES'),
 )
 env.Alias('ws_null', ws_null)
 Export('ws_null')
index 0cb47a17343e904e9cb53cc4f49a5dcb70e7203e..443ff192c6ab79e1eb7ee909297e60cbbe3da016 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_CFLAGS = \
@@ -28,4 +29,4 @@ AM_CFLAGS = \
 
 noinst_LTLIBRARIES = libws_wayland.la
 
-libws_wayland_la_SOURCES = wayland_sw_winsys.c
+libws_wayland_la_SOURCES = $(C_SOURCES)
diff --git a/src/gallium/winsys/sw/wayland/Makefile.sources b/src/gallium/winsys/sw/wayland/Makefile.sources
new file mode 100644 (file)
index 0000000..570ccc6
--- /dev/null
@@ -0,0 +1,3 @@
+C_SOURCES := \
+       wayland_sw_winsys.c \
+       wayland_sw_winsys.h
index d8bbd9e097dd2c2d42e82adbd72bd12a7d5c88f3..4b30c4456e8f712ff43a062d03f309bb23d7c2bf 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_CFLAGS = \
@@ -27,4 +28,4 @@ AM_CFLAGS = \
 
 noinst_LTLIBRARIES = libwsw.la
 
-libwsw_la_SOURCES = wrapper_sw_winsys.c
+libwsw_la_SOURCES = $(C_SOURCES)
diff --git a/src/gallium/winsys/sw/wrapper/Makefile.sources b/src/gallium/winsys/sw/wrapper/Makefile.sources
new file mode 100644 (file)
index 0000000..742e49b
--- /dev/null
@@ -0,0 +1,3 @@
+C_SOURCES := \
+       wrapper_sw_winsys.c \
+       wrapper_sw_winsys.h
index 4c60488df0b320de735e344b19391b818b193b32..9ff9bf6d1fa132eb5f74c3a0d4bfa32d8814f739 100644 (file)
@@ -9,13 +9,10 @@ env = env.Clone()
 env.Append(CPPPATH = [
     '#/src/gallium/include',
     '#/src/gallium/auxiliary',
-    '#/src/gallium/drivers',
 ])
 
 ws_wrapper = env.ConvenienceLibrary(
     target = 'ws_wrapper',
-    source = [
-       'wrapper_sw_winsys.c',
-    ]
+    source = env.ParseSourceList('Makefile.sources', 'C_SOURCES'),
 )
 Export('ws_wrapper')
index a38189c0feee05e30ee5c4998f4aae39526342b3..825a8fdb5e1df5b3d129241128be0d5d8b307b34 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_CFLAGS = \
@@ -28,4 +29,4 @@ AM_CFLAGS = \
 
 noinst_LTLIBRARIES = libws_xlib.la
 
-libws_xlib_la_SOURCES = xlib_sw_winsys.c
+libws_xlib_la_SOURCES = $(C_SOURCES)
diff --git a/src/gallium/winsys/sw/xlib/Makefile.sources b/src/gallium/winsys/sw/xlib/Makefile.sources
new file mode 100644 (file)
index 0000000..fc6a56d
--- /dev/null
@@ -0,0 +1,3 @@
+C_SOURCES := \
+       xlib_sw_winsys.c \
+       xlib_sw_winsys.h
index 3a8c75dfdaf709fcaa8e1529457420df4317dcd9..64db20139367b624b44f6ca574d70addfcb3de41 100644 (file)
@@ -11,14 +11,11 @@ if env['platform'] in ('cygwin', 'darwin', 'freebsd', 'linux', 'sunos'):
     env.Append(CPPPATH = [
         '#/src/gallium/include',
         '#/src/gallium/auxiliary',
-        '#/src/gallium/drivers',
     ])
 
     ws_xlib = env.ConvenienceLibrary(
         target = 'ws_xlib',
-        source = [
-           'xlib_sw_winsys.c',
-        ]
+        source = env.ParseSourceList('Makefile.sources', 'C_SOURCES'),
     )
     env.Alias('ws_xlib', ws_xlib)
     Export('ws_xlib')