LIBNAME = i915
-C_SOURCES = \
- i915_blit.c \
- i915_clear.c \
- i915_flush.c \
- i915_context.c \
- i915_debug.c \
- i915_debug_fp.c \
- i915_state.c \
- i915_state_immediate.c \
- i915_state_dynamic.c \
- i915_state_derived.c \
- i915_state_emit.c \
- i915_state_fpc.c \
- i915_state_sampler.c \
- i915_state_static.c \
- i915_screen.c \
- i915_prim_emit.c \
- i915_prim_vbuf.c \
- i915_query.c \
- i915_resource.c \
- i915_resource_texture.c \
- i915_resource_buffer.c \
- i915_fpc_emit.c \
- i915_fpc_translate.c \
- i915_fpc_optimize.c \
- i915_surface.c
+# get C_SOURCES
+include Makefile.sources
include ../../Makefile.template
--- /dev/null
+C_SOURCES := \
+ i915_blit.c \
+ i915_clear.c \
+ i915_flush.c \
+ i915_context.c \
+ i915_debug.c \
+ i915_debug_fp.c \
+ i915_state.c \
+ i915_state_immediate.c \
+ i915_state_dynamic.c \
+ i915_state_derived.c \
+ i915_state_emit.c \
+ i915_state_fpc.c \
+ i915_state_sampler.c \
+ i915_state_static.c \
+ i915_screen.c \
+ i915_prim_emit.c \
+ i915_prim_vbuf.c \
+ i915_query.c \
+ i915_resource.c \
+ i915_resource_texture.c \
+ i915_resource_buffer.c \
+ i915_fpc_emit.c \
+ i915_fpc_translate.c \
+ i915_fpc_optimize.c \
+ i915_surface.c
i915 = env.ConvenienceLibrary(
target = 'i915',
- source = [
- 'i915_blit.c',
- 'i915_resource_buffer.c',
- 'i915_clear.c',
- 'i915_context.c',
- 'i915_debug.c',
- 'i915_debug_fp.c',
- 'i915_flush.c',
- 'i915_fpc_emit.c',
- 'i915_fpc_translate.c',
- 'i915_fpc_optimize.c',
- 'i915_prim_emit.c',
- 'i915_prim_vbuf.c',
- 'i915_query.c',
- 'i915_screen.c',
- 'i915_state.c',
- 'i915_state_derived.c',
- 'i915_state_dynamic.c',
- 'i915_state_fpc.c',
- 'i915_state_emit.c',
- 'i915_state_immediate.c',
- 'i915_state_sampler.c',
- 'i915_state_static.c',
- 'i915_surface.c',
- 'i915_resource.c',
- 'i915_resource_texture.c',
- ])
+ source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
+ )
env.Alias('i915', i915)