mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
This gathers macros that have been included across components into util so that the include chain can be more vertical. In particular, this makes util stand on its own without any dependence whatsoever on the rest of mesa. Signed-off-by: "Jason Ekstrand" <jason.ekstrand@intel.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
36 lines
888 B
Python
36 lines
888 B
Python
#######################################################################
|
|
# SConscript for dri state_tracker
|
|
|
|
Import('*')
|
|
|
|
env = env.Clone()
|
|
|
|
# XXX: If HAVE_DRI2
|
|
env.PkgUseModules(['DRM'])
|
|
# else
|
|
#env.Append(CPPDEFINES = [('__NOT_HAVE_DRM_H', '1')])
|
|
|
|
env.Append(CPPPATH = [
|
|
'#/src',
|
|
'#/src/mapi',
|
|
'#/src/mesa',
|
|
'#/src/gallium/state_trackers/dri/common',
|
|
'#/src/mesa/drivers/dri/common',
|
|
xmlpool_options.dir.dir, # Dir to generated xmlpool/options.h
|
|
])
|
|
|
|
env.Append(CPPDEFINES = [('GALLIUM_STATIC_TARGETS', '1')])
|
|
|
|
sources = env.ParseSourceList('Makefile.sources', 'common_SOURCES')
|
|
|
|
# XXX: if HAVE_DRISW
|
|
sources.append(env.ParseSourceList('Makefile.sources', 'drisw_SOURCES'))
|
|
|
|
# XXX: if HAVE_DRI2
|
|
sources.append(env.ParseSourceList('Makefile.sources', 'dri2_SOURCES'))
|
|
|
|
st_dri = env.ConvenienceLibrary(
|
|
target = 'st_dri',
|
|
source = sources
|
|
)
|
|
Export('st_dri')
|