aboutsummaryrefslogtreecommitdiff
path: root/SConscript
diff options
context:
space:
mode:
authorcarmen rocco <ix9@users.sourceforge.net>2005-04-14 04:59:36 +0000
committercarmen rocco <ix9@users.sourceforge.net>2005-04-14 04:59:36 +0000
commitaa199b744d2c6a3dc74b5407857d3bab279fa1cf (patch)
tree03c2d89b0e5798455dc6d64fbbf5469f79083000 /SConscript
parent1de4e4c4f19954a4baa35faad5979231136a7902 (diff)
OSCx
svn path=/trunk/externals/OSCx/; revision=2765
Diffstat (limited to 'SConscript')
-rw-r--r--SConscript17
1 files changed, 17 insertions, 0 deletions
diff --git a/SConscript b/SConscript
new file mode 100644
index 0000000..4f395a6
--- /dev/null
+++ b/SConscript
@@ -0,0 +1,17 @@
+import glob
+import os
+import re
+Import('env prefix')
+
+libOSC = glob.glob('libOSC/OSC*.c')
+miscOSC = Split('src/htmsocket.c src/OSC-pattern-match.c src/OSC-system-dependent.c')
+
+for OSCexternal in Split('dumpOSC sendOSC OSC OSCroute'):
+ src = ["src/" + OSCexternal + ".c", libOSC, miscOSC]
+ if (OSCexternal == 'OSC'):
+ src.extend(Split('src/dumpOSC.c src/sendOSC.c src/OSCroute.c'))
+ OSCx = env.SharedLibrary(target = re.sub("\.c$","",os.path.basename(OSCexternal)), source = src, CPPPATH = ['$CPPPATH', 'libOSC'])
+ env.Alias('install', env.Install(os.path.join(prefix, 'extra'), OSCx))
+ Default(OSCx)
+
+env.Alias('install', env.Install(os.path.join(prefix, 'doc/5.reference'), glob.glob('doc/*.pd')))