summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-08 19:11:13 +0000
committerDavid Robillard <d@drobilla.net>2011-01-08 19:11:13 +0000
commita7b46a0695acfa55d591b0e5ce585d9f92fdad3e (patch)
tree30d7e670c77568684df23a1e02fcc9a0e271a76c /wscript
parentd95f3e089619d35873acdad4b79e3f7e0f6ccf15 (diff)
downloadingen-a7b46a0695acfa55d591b0e5ce585d9f92fdad3e.tar.gz
ingen-a7b46a0695acfa55d591b0e5ce585d9f92fdad3e.tar.bz2
ingen-a7b46a0695acfa55d591b0e5ce585d9f92fdad3e.zip
Support via waf for running from the build directory.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2799 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript11
1 files changed, 10 insertions, 1 deletions
diff --git a/wscript b/wscript
index e79e44db..d2855702 100644
--- a/wscript
+++ b/wscript
@@ -129,7 +129,16 @@ def build(bld):
bld.add_subdirs('src/gui')
# Program
- bld.add_subdirs('src/ingen')
+ obj = bld(features = 'c cxx cxxprogram')
+ obj.target = 'ingen'
+ obj.source = 'src/ingen/main.cpp'
+ obj.includes = ['.', 'src', 'src/common']
+ obj.defines = 'VERSION="' + bld.env['INGEN_VERSION'] + '"'
+ obj.use = 'libingen_module libingen_shared'
+ obj.install_path = '${BINDIR}'
+ autowaf.use_lib(bld, obj, 'GTHREAD GLIBMM REDLANDMM RAUL LV2CORE SLV2 INGEN LIBLO SOUP')
+
+ bld.install_files('${DATADIR}/applications', 'src/ingen/ingen.desktop')
# Documentation
autowaf.build_dox(bld, 'INGEN', INGEN_VERSION, top, out)