aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-02-27 17:22:00 +0000
committerDavid Robillard <d@drobilla.net>2009-02-27 17:22:00 +0000
commit35fe71915bb073f73f0717443546f47f6fcc79ba (patch)
tree3f0e0ae235b855cc57ee08a66cc52171dc9f9464 /wscript
parent2907c71054069302ecf8b29cf62bedf2dcccfa98 (diff)
downloadmachina-35fe71915bb073f73f0717443546f47f6fcc79ba.tar.gz
machina-35fe71915bb073f73f0717443546f47f6fcc79ba.tar.bz2
machina-35fe71915bb073f73f0717443546f47f6fcc79ba.zip
Build without eugene.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@1944 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript44
1 files changed, 26 insertions, 18 deletions
diff --git a/wscript b/wscript
index 0f9bd59..a8634a0 100644
--- a/wscript
+++ b/wscript
@@ -19,33 +19,41 @@ def set_options(opt):
def configure(conf):
autowaf.configure(conf)
autowaf.check_tool(conf, 'compiler_cxx')
- 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', atleast_version='2.14.0', mandatory=True)
- autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM', atleast_version='2.11.12', mandatory=False)
- autowaf.check_pkg(conf, 'jack', uselib_store='JACK', atleast_version='0.109.0', mandatory=True)
- autowaf.check_pkg(conf, 'raul', uselib_store='RAUL', atleast_version='0.5.1', mandatory=True)
- autowaf.check_pkg(conf, 'flowcanvas', uselib_store='FLOWCANVAS', atleast_version='0.5.1', mandatory=False)
- autowaf.check_pkg(conf, 'libglademm-2.4', uselib_store='GLADEMM', atleast_version='2.6.0', mandatory=False)
- autowaf.check_pkg(conf, 'redlandmm', uselib_store='REDLANDMM', atleast_version='0.0.0', mandatory=False)
- autowaf.check_pkg(conf, 'eugene', uselib_store='EUGENE', atleast_version='0.0.0', 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',
+ atleast_version='2.14.0', mandatory=True)
+ autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='GTKMM',
+ atleast_version='2.11.12', mandatory=False)
+ autowaf.check_pkg(conf, 'jack', uselib_store='JACK',
+ atleast_version='0.109.0', mandatory=True)
+ autowaf.check_pkg(conf, 'raul', uselib_store='RAUL',
+ atleast_version='0.5.1', mandatory=True)
+ autowaf.check_pkg(conf, 'flowcanvas', uselib_store='FLOWCANVAS',
+ atleast_version='0.5.1', mandatory=False)
+ autowaf.check_pkg(conf, 'libglademm-2.4', uselib_store='GLADEMM',
+ atleast_version='2.6.0', mandatory=False)
+ autowaf.check_pkg(conf, 'redlandmm', uselib_store='REDLANDMM',
+ atleast_version='0.0.0', mandatory=False)
+ autowaf.check_pkg(conf, 'eugene', uselib_store='EUGENE',
+ atleast_version='0.0.0', mandatory=False)
# Check for posix_memalign (OSX, amazingly, doesn't have it)
- fe = conf.create_function_enumerator()
- fe.headers = ['stdlib.h']
- fe.function = 'posix_memalign'
- fe.define = 'HAVE_POSIX_MEMALIGN'
- fe.run()
+ conf.check(
+ function_name='posix_memalign',
+ header_name='stdlib.h',
+ define_name='HAVE_POSIX_MEMALIGN')
build_gui = conf.env['HAVE_GLADEMM'] == 1 and conf.env['HAVE_FLOWCANVAS'] == 1
+
+ conf.define('MACHINA_PPQN', 19200)
conf.define('MACHINA_VERSION', MACHINA_VERSION)
conf.define('BUILD_MACHINA_GUI', int(build_gui))
if conf.env['BUNDLE']:
- conf.define('MACHINA_DATA_DIR', os.path.normpath(
- conf.env['DATADIRNAME'] + 'machina'))
+ conf.define('MACHINA_DATA_DIR', os.path.join(conf.env['DATADIRNAME'] + 'machina'))
else:
- conf.define('MACHINA_DATA_DIR', os.path.normpath(
- conf.env['DATADIR'] + 'machina'))
+ conf.define('MACHINA_DATA_DIR', os.path.join(conf.env['DATADIR'], 'machina'))
conf.write_config_header('wafconfig.h')