summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-02-19 10:50:39 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-02-19 14:01:49 +0900
commite773a813cf475e2a7ad79ea1ec698bf2530d0433 (patch)
tree0678d21df2276069a588399e3becf1689030ed39 /src
parente279b1c57ac8d17703d80f1b644fd1d4f115101b (diff)
Initial scons support to build gallivm.
Not yet complete.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/SConscript6
-rw-r--r--src/gallium/auxiliary/gallivm/SConscript16
2 files changed, 21 insertions, 1 deletions
diff --git a/src/gallium/SConscript b/src/gallium/SConscript
index ea55ed2ed5..c505eee792 100644
--- a/src/gallium/SConscript
+++ b/src/gallium/SConscript
@@ -13,9 +13,13 @@ SConscript([
'auxiliary/tgsi/SConscript',
'auxiliary/cso_cache/SConscript',
'auxiliary/draw/SConscript',
- #'auxiliary/gallivm/SConscript',
'auxiliary/pipebuffer/SConscript',
+])
+
+if llvm:
+ SConscript(['auxiliary/gallivm/SConscript'])
+SConscript([
'drivers/softpipe/SConscript',
'drivers/i915simple/SConscript',
'drivers/i965simple/SConscript',
diff --git a/src/gallium/auxiliary/gallivm/SConscript b/src/gallium/auxiliary/gallivm/SConscript
new file mode 100644
index 0000000000..c0aa51b90a
--- /dev/null
+++ b/src/gallium/auxiliary/gallivm/SConscript
@@ -0,0 +1,16 @@
+Import('*')
+
+gallivm = env.ConvenienceLibrary(
+ target = 'gallivm',
+ source = [
+ 'gallivm.cpp',
+ 'gallivm_cpu.cpp',
+ 'instructions.cpp',
+ 'loweringpass.cpp',
+ 'tgsitollvm.cpp',
+ 'storage.cpp',
+ 'storagesoa.cpp',
+ 'instructionssoa.cpp',
+ ])
+
+auxiliaries.insert(0, gallivm)