Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile
and SConscript share it.
LIBNAME = i915drm
-C_SOURCES = \
- i915_drm_batchbuffer.c \
- i915_drm_buffer.c \
- i915_drm_fence.c \
- i915_drm_winsys.c
+# get C_SOURCES
+include Makefile.sources
LIBRARY_INCLUDES = $(shell pkg-config libdrm --cflags-only-I)
--- /dev/null
+C_SOURCES := \
+ i915_drm_batchbuffer.c \
+ i915_drm_buffer.c \
+ i915_drm_fence.c \
+ i915_drm_winsys.c
env.PkgUseModules('DRM')
-i915drm_sources = [
- 'i915_drm_batchbuffer.c',
- 'i915_drm_buffer.c',
- 'i915_drm_fence.c',
- 'i915_drm_winsys.c',
-]
+i915drm_sources = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
i915drm = env.ConvenienceLibrary(
target ='i915drm',