summaryrefslogtreecommitdiffstats
path: root/src/compiler/SConscript.glsl
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-05-14 11:59:26 -0400
committerRob Clark <[email protected]>2016-05-25 16:31:15 -0400
commit0f982bb67d64673f73096f7c536a5e29756c5c6f (patch)
tree8ad48ef10dd666b090a5298dbe3e2cf5021a93a7 /src/compiler/SConscript.glsl
parentec434d940d9ade664ed9ddf74760ce1dcc432718 (diff)
glsl: split out libstandalone
Split standalone glsl_compiler into a libstandalone.la and a thin main.cpp. This way drivers can re-use the glsl standalone frontend in their own standalone compilers. Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/compiler/SConscript.glsl')
-rw-r--r--src/compiler/SConscript.glsl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/SConscript.glsl b/src/compiler/SConscript.glsl
index 73abaf13acf..474df11d566 100644
--- a/src/compiler/SConscript.glsl
+++ b/src/compiler/SConscript.glsl
@@ -109,6 +109,8 @@ if env['platform'] == 'windows':
env.Prepend(LIBS = [compiler, glsl])
+compiler_objs += env.StaticObject("glsl/main.cpp")
+
glsl_compiler = env.Program(
target = 'glsl_compiler',
source = compiler_objs,