summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets/osmesa/SConscript
diff options
context:
space:
mode:
authorOlivier Pena <[email protected]>2015-04-22 15:36:28 +0000
committerJose Fonseca <[email protected]>2015-04-27 15:18:36 +0100
commitf9965347dc0cac8822c44faf7bade09093076c74 (patch)
treeee94936826c1ac39b1fefbe23ca740379a071ece /src/gallium/targets/osmesa/SConscript
parentdb2415189a04fd64106a739c635b1433192ef969 (diff)
scons: add target osmesa using gallium state tracker.
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/targets/osmesa/SConscript')
-rw-r--r--src/gallium/targets/osmesa/SConscript43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/gallium/targets/osmesa/SConscript b/src/gallium/targets/osmesa/SConscript
new file mode 100644
index 00000000000..4a9115ba1cf
--- /dev/null
+++ b/src/gallium/targets/osmesa/SConscript
@@ -0,0 +1,43 @@
+Import('*')
+
+env = env.Clone()
+
+env.Prepend(CPPPATH = [
+ '#src/mapi',
+ '#src/mesa',
+ #Dir('../../../mapi'), # src/mapi build path for python-generated GL API files/headers
+])
+
+env.Prepend(LIBS = [
+ st_osmesa,
+ ws_null,
+ glapi,
+ mesa,
+ gallium,
+ trace,
+ glsl,
+ mesautil,
+ softpipe
+])
+
+env.Append(CPPDEFINES = ['GALLIUM_TRACE', 'GALLIUM_SOFTPIPE'])
+
+sources = ['target.c']
+
+if env['llvm']:
+ env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
+ env.Prepend(LIBS = [llvmpipe])
+
+if env['platform'] == 'windows':
+ if env['gcc'] and env['machine'] != 'x86_64':
+ sources += ['osmesa.mingw.def']
+ else:
+ sources += ['osmesa.def']
+
+gallium_osmesa = env.SharedLibrary(
+ target ='osmesa',
+ source = sources,
+ LIBS = env['LIBS'],
+)
+
+env.Alias('osmesa', gallium_osmesa)