diff options
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 84 |
1 files changed, 42 insertions, 42 deletions
@@ -15,54 +15,54 @@ top = '.' out = 'build' def options(opt): - autowaf.set_options(opt) + autowaf.set_options(opt) def configure(conf): - autowaf.configure(conf) - autowaf.display_header('Machina Configuration') - conf.load('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, 'sord', uselib_store='SORD', - atleast_version='0.1.0', mandatory=False) - #autowaf.check_pkg(conf, 'eugene', uselib_store='EUGENE', - # atleast_version='0.0.0', mandatory=False) + autowaf.configure(conf) + autowaf.display_header('Machina Configuration') + conf.load('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, 'sord', uselib_store='SORD', + atleast_version='0.1.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) - conf.check(function_name='posix_memalign', - header_name='stdlib.h', - define_name='HAVE_POSIX_MEMALIGN', - mandatory=False) + # Check for posix_memalign (OSX, amazingly, doesn't have it) + conf.check(function_name='posix_memalign', + header_name='stdlib.h', + define_name='HAVE_POSIX_MEMALIGN', + mandatory=False) - if conf.is_defined('HAVE_GLADEMM') and conf.is_defined('HAVE_FLOWCANVAS'): - autowaf.define(conf, 'MACHINA_BUILD_GUI', 1) - - autowaf.define(conf, 'MACHINA_PPQN', 19200) - autowaf.define(conf, 'MACHINA_VERSION', MACHINA_VERSION) - autowaf.define(conf, 'MACHINA_DATA_DIR', os.path.join( - conf.env['DATADIR'], 'machina')) + if conf.is_defined('HAVE_GLADEMM') and conf.is_defined('HAVE_FLOWCANVAS'): + autowaf.define(conf, 'MACHINA_BUILD_GUI', 1) - conf.write_config_header('machina-config.h', remove=False) + autowaf.define(conf, 'MACHINA_PPQN', 19200) + autowaf.define(conf, 'MACHINA_VERSION', MACHINA_VERSION) + autowaf.define(conf, 'MACHINA_DATA_DIR', os.path.join( + conf.env['DATADIR'], 'machina')) - autowaf.display_msg(conf, "Jack", conf.is_defined('HAVE_JACK')) - autowaf.display_msg(conf, "GUI", conf.is_defined('MACHINA_BUILD_GUI')) - print('') + conf.write_config_header('machina-config.h', remove=False) + + autowaf.display_msg(conf, "Jack", conf.is_defined('HAVE_JACK')) + autowaf.display_msg(conf, "GUI", conf.is_defined('MACHINA_BUILD_GUI')) + print('') def build(bld): - bld.recurse('src/engine') - bld.recurse('src/client') + bld.recurse('src/engine') + bld.recurse('src/client') - if bld.is_defined('MACHINA_BUILD_GUI'): - bld.recurse('src/gui') + if bld.is_defined('MACHINA_BUILD_GUI'): + bld.recurse('src/gui') |