mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 16:10:09 +01:00
winsys/i915: share the source list
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it.
This commit is contained in:
parent
f9b55e23af
commit
0cc0889007
3 changed files with 8 additions and 11 deletions
|
|
@ -3,11 +3,8 @@ include $(TOP)/configs/current
|
|||
|
||||
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)
|
||||
|
||||
|
|
|
|||
5
src/gallium/winsys/i915/drm/Makefile.sources
Normal file
5
src/gallium/winsys/i915/drm/Makefile.sources
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
C_SOURCES := \
|
||||
i915_drm_batchbuffer.c \
|
||||
i915_drm_buffer.c \
|
||||
i915_drm_fence.c \
|
||||
i915_drm_winsys.c
|
||||
|
|
@ -4,12 +4,7 @@ env = env.Clone()
|
|||
|
||||
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',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue