mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
winsys/r600: share the source list
Factor out C_SOURCES from Makefile to Makefile.sources, and let Makefile and SConscript share it. Reviewed-by: Marek Olšák <maraeo@gmail.com>
This commit is contained in:
parent
8dda3f2bcb
commit
027a45e5cf
3 changed files with 10 additions and 13 deletions
|
|
@ -4,12 +4,8 @@ include $(TOP)/configs/current
|
|||
|
||||
LIBNAME = r600winsys
|
||||
|
||||
C_SOURCES = \
|
||||
evergreen_hw_context.c \
|
||||
radeon_pciid.c \
|
||||
r600_bo.c \
|
||||
r600_drm.c \
|
||||
r600_hw_context.c
|
||||
# get C_SOURCES
|
||||
include Makefile.sources
|
||||
|
||||
LIBRARY_INCLUDES = -I$(TOP)/src/gallium/drivers/r600 \
|
||||
-I$(TOP)/include \
|
||||
|
|
|
|||
7
src/gallium/winsys/r600/drm/Makefile.sources
Normal file
7
src/gallium/winsys/r600/drm/Makefile.sources
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
C_SOURCES := \
|
||||
evergreen_hw_context.c \
|
||||
radeon_pciid.c \
|
||||
r600_bo.c \
|
||||
r600_drm.c \
|
||||
r600_hw_context.c
|
||||
|
||||
|
|
@ -2,13 +2,7 @@ Import('*')
|
|||
|
||||
env = env.Clone()
|
||||
|
||||
r600_sources = [
|
||||
'evergreen_hw_context.c',
|
||||
'radeon_pciid.c',
|
||||
'r600_bo.c',
|
||||
'r600_drm.c',
|
||||
'r600_hw_context.c',
|
||||
]
|
||||
r600_sources = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
|
||||
|
||||
env.PkgUseModules('DRM_RADEON')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue