aboutsummaryrefslogtreecommitdiff
path: root/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'SConscript')
-rw-r--r--SConscript20
1 files changed, 20 insertions, 0 deletions
diff --git a/SConscript b/SConscript
new file mode 100644
index 0000000..12aa22c
--- /dev/null
+++ b/SConscript
@@ -0,0 +1,20 @@
+import glob
+import os
+import re
+Import('env prefix')
+env.Append(CPPPATH = '/usr/include/speex')
+
+for tk in glob.glob('*/*.tk'):
+ (dir, file) = os.path.split(tk)
+ filename = re.sub("\.tk$","",file)
+ cmd = "./tk2c.bash < " + dir + "/" + file + " > " + dir + "/" + filename + ".tk2c"
+ os.popen(cmd)
+
+for extra in glob.glob('*/*.c'):
+ unauthorized = env.SharedLibrary(target = re.sub("\.c$","",os.path.basename(extra)), source = extra)
+ env.Alias('install', env.Install(os.path.join(prefix, 'extra'), unauthorized))
+ Default(unauthorized)
+
+env.Alias('install', env.Install(os.path.join(prefix, 'doc/5.reference'), glob.glob('*/*.pd')))
+
+