diff options
author | David Robillard <d@drobilla.net> | 2012-09-12 14:43:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-09-12 14:43:14 +0000 |
commit | 7d20a2d8787ee0424c95264bcc4f3f0d22cffe93 (patch) | |
tree | 9fc12cf89ee4c931149c8efc9e61507d13f15fb1 | |
parent | 92a91a9cefc5dac8dc55ba47b6819213eaa8bf83 (diff) | |
download | ingen-7d20a2d8787ee0424c95264bcc4f3f0d22cffe93.tar.gz ingen-7d20a2d8787ee0424c95264bcc4f3f0d22cffe93.tar.bz2 ingen-7d20a2d8787ee0424c95264bcc4f3f0d22cffe93.zip |
Clean up wscripts.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4771 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | wscript | 52 |
1 files changed, 24 insertions, 28 deletions
@@ -1,44 +1,43 @@ #!/usr/bin/env python import os import subprocess - import waflib.Options as Options import waflib.Utils as Utils -from waflib.extras import autowaf as autowaf +import waflib.extras.autowaf as autowaf -# Version of this package (even if built as a child) +# Package version INGEN_VERSION = '0.5.1' -# Variables for 'waf dist' -APPNAME = 'ingen' -VERSION = INGEN_VERSION - -# Mandatory variables -top = '.' -out = 'build' +# Mandatory waf variables +APPNAME = 'ingen' # Package name for waf dist +VERSION = INGEN_VERSION # Package version for waf dist +top = '.' # Source directory +out = 'build' # Build directory def options(opt): opt.load('compiler_cxx') autowaf.set_options(opt) opt.add_option('--data-dir', type='string', dest='datadir', - help="Ingen data install directory [Default: PREFIX/share/ingen]") + help='Ingen data install directory [Default: PREFIX/share/ingen]') opt.add_option('--module-dir', type='string', dest='moduledir', - help="Ingen module install directory [Default: PREFIX/lib/ingen]") - opt.add_option('--no-gui', action='store_true', default=False, dest='no_gui', - help="Do not build GUI") + help='Ingen module install directory [Default: PREFIX/lib/ingen]') + opt.add_option('--no-gui', action='store_true', dest='no_gui', + help='Do not build GUI') opt.add_option('--no-jack-session', action='store_true', default=False, - dest='no_jack_session', - help="Do not build JACK session support") - opt.add_option('--no-socket', action='store_true', default=False, dest='no_socket', - help="Do not build Socket interface") - opt.add_option('--test', action='store_true', default=False, dest='build_tests', - help="Build unit tests") + dest='no_jack_session', + help='Do not build JACK session support') + opt.add_option('--no-socket', action='store_true', dest='no_socket', + help='Do not build Socket interface') + opt.add_option('--test', action='store_true', dest='build_tests', + help='Build unit tests') def configure(conf): conf.load('compiler_cxx') autowaf.configure(conf) autowaf.display_header('Ingen Configuration') + autowaf.check_pkg(conf, 'lv2', uselib_store='LV2', + atleast_version='1.0.13', mandatory=True) autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.14.0', mandatory=True) autowaf.check_pkg(conf, 'gthread-2.0', uselib_store='GTHREAD', @@ -90,14 +89,11 @@ def configure(conf): conf.env.INGEN_TEST_LIBS = [] conf.env.INGEN_TEST_CXXFLAGS = [] - # Check for posix_memalign (OSX, amazingly, doesn't have it) - conf.check(function_name='posix_memalign', - defines='_POSIX_SOURCE=1', - header_name='stdlib.h', - define_name='HAVE_POSIX_MEMALIGN', - mandatory=False) - - autowaf.check_pkg(conf, 'lv2', atleast_version='1.0.13', uselib_store='LV2') + conf.check(function_name = 'posix_memalign', + defines = '_POSIX_SOURCE=1', + header_name = 'stdlib.h', + define_name = 'HAVE_POSIX_MEMALIGN', + mandatory = False) autowaf.define(conf, 'INGEN_VERSION', INGEN_VERSION) |