summaryrefslogtreecommitdiffstats
path: root/src/compiler/SConscript
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2016-01-18 10:47:13 +0200
committerEmil Velikov <[email protected]>2016-01-26 16:08:20 +0000
commit1a882fd2ee84ae28a06cf07902dc4645d8ad4a6d (patch)
treedc85ad30ac20db8eecc658e7efcb3b0d7de898af /src/compiler/SConscript
parent2f86383091bde24a2a0b90a43c11a13165f8c397 (diff)
nir: move shader_enums.[ch] to compiler
This way one can reuse it in glsl, nir or other infrastructure without pulling nir as dependency. Signed-off-by: Emil Velikov <[email protected]> Acked-by: Matt Turner <[email protected]> Acked-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/compiler/SConscript')
-rw-r--r--src/compiler/SConscript22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/compiler/SConscript b/src/compiler/SConscript
new file mode 100644
index 00000000000..412da0e62bd
--- /dev/null
+++ b/src/compiler/SConscript
@@ -0,0 +1,22 @@
+Import('*')
+
+env = env.Clone()
+
+env.MSVC2013Compat()
+
+env.Prepend(CPPPATH = [
+ '#include',
+ '#src',
+ '#src/mapi',
+ '#src/mesa',
+ '#src/gallium/include',
+ '#src/gallium/auxiliary',
+])
+
+sources = env.ParseSourceList('Makefile.sources', 'LIBCOMPILER_FILES')
+
+compiler = env.ConvenienceLibrary(
+ target = 'compiler',
+ source = sources
+)
+Export('compiler')