mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
pipe-loader: add preliminary scons support
Add a 'static' pipe-loader build, which will be used with follow-up commits. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
parent
7999e6ddba
commit
234b03cc23
3 changed files with 37 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ Import('env')
|
|||
#
|
||||
|
||||
SConscript('auxiliary/SConscript')
|
||||
SConscript('auxiliary/pipe-loader/SConscript')
|
||||
|
||||
#
|
||||
# Drivers
|
||||
|
|
|
|||
|
|
@ -44,3 +44,5 @@ libpipe_loader_dynamic_la_LIBADD = \
|
|||
$(top_builddir)/src/loader/libloader.la
|
||||
|
||||
endif
|
||||
|
||||
EXTRA_DIST = SConscript
|
||||
|
|
|
|||
34
src/gallium/auxiliary/pipe-loader/SConscript
Normal file
34
src/gallium/auxiliary/pipe-loader/SConscript
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
Import('*')
|
||||
|
||||
env = env.Clone()
|
||||
|
||||
env.MSVC2008Compat()
|
||||
|
||||
env.Append(CPPPATH = [
|
||||
'#/src/loader',
|
||||
'#/src/gallium/winsys',
|
||||
])
|
||||
|
||||
env.Append(CPPDEFINES = [
|
||||
('HAVE_PIPE_LOADER_DRI', '1'),
|
||||
('DROP_PIPE_LOADER_MISC', '1'),
|
||||
('GALLIUM_STATIC_TARGETS', '1'),
|
||||
])
|
||||
|
||||
source = env.ParseSourceList('Makefile.sources', 'COMMON_SOURCES')
|
||||
|
||||
#if HAVE_LIBDRM
|
||||
source += env.ParseSourceList('Makefile.sources', 'DRM_SOURCES')
|
||||
|
||||
env.PkgUseModules('DRM')
|
||||
env.Append(LIBS = [libloader])
|
||||
#endif
|
||||
|
||||
pipe_loader = env.ConvenienceLibrary(
|
||||
target = 'pipe_loader',
|
||||
source = source,
|
||||
)
|
||||
|
||||
env.Alias('pipe_loader', pipe_loader)
|
||||
|
||||
Export('pipe_loader')
|
||||
Loading…
Add table
Reference in a new issue