- 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>
# 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 = \
noinst_LTLIBRARIES = libswdri.la
-libswdri_la_SOURCES = dri_sw_winsys.c
+libswdri_la_SOURCES = $(C_SOURCES)
--- /dev/null
+C_SOURCES := \
+ dri_sw_winsys.c \
+ dri_sw_winsys.h
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')
# 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 = \
noinst_LTLIBRARIES = libfbdev.la
-libfbdev_la_SOURCES = fbdev_sw_winsys.c
+libfbdev_la_SOURCES = $(C_SOURCES)
--- /dev/null
+C_SOURCES := \
+ fbdev_sw_winsys.c \
+ fbdev_sw_winsys.h
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')
# 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 = \
noinst_LTLIBRARIES = libswkmsdri.la
-libswkmsdri_la_SOURCES = kms_dri_sw_winsys.c
+libswkmsdri_la_SOURCES = $(C_SOURCES)
--- /dev/null
+C_SOURCES := \
+ kms_dri_sw_winsys.c \
+ kms_dri_sw_winsys.h
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')
# 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 = \
noinst_LTLIBRARIES = libws_null.la
-libws_null_la_SOURCES = null_sw_winsys.c
+libws_null_la_SOURCES = $(C_SOURCES)
--- /dev/null
+C_SOURCES := \
+ null_sw_winsys.c \
+ null_sw_winsys.h
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')
# 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 = \
noinst_LTLIBRARIES = libws_wayland.la
-libws_wayland_la_SOURCES = wayland_sw_winsys.c
+libws_wayland_la_SOURCES = $(C_SOURCES)
--- /dev/null
+C_SOURCES := \
+ wayland_sw_winsys.c \
+ wayland_sw_winsys.h
# 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 = \
noinst_LTLIBRARIES = libwsw.la
-libwsw_la_SOURCES = wrapper_sw_winsys.c
+libwsw_la_SOURCES = $(C_SOURCES)
--- /dev/null
+C_SOURCES := \
+ wrapper_sw_winsys.c \
+ wrapper_sw_winsys.h
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')
# 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 = \
noinst_LTLIBRARIES = libws_xlib.la
-libws_xlib_la_SOURCES = xlib_sw_winsys.c
+libws_xlib_la_SOURCES = $(C_SOURCES)
--- /dev/null
+C_SOURCES := \
+ xlib_sw_winsys.c \
+ xlib_sw_winsys.h
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')