diff options
author | David Robillard <d@drobilla.net> | 2012-08-08 21:09:03 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-08 21:09:03 +0000 |
commit | 5b066db0735824a531c74e4a0eedd830fdced13a (patch) | |
tree | 96161dda3809d61d1d9365eece448ce555eeafd2 | |
parent | e8e6c94ebe95d6d7fd48cea1c383d749272e7662 (diff) | |
download | ingen-5b066db0735824a531c74e4a0eedd830fdced13a.tar.gz ingen-5b066db0735824a531c74e4a0eedd830fdced13a.tar.bz2 ingen-5b066db0735824a531c74e4a0eedd830fdced13a.zip |
Clean up wscript files.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4624 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/gui/wscript | 2 | ||||
-rw-r--r-- | src/serialisation/wscript | 6 | ||||
-rw-r--r-- | src/server/wscript | 6 | ||||
-rw-r--r-- | src/wscript | 6 | ||||
-rw-r--r-- | wscript | 36 |
5 files changed, 28 insertions, 28 deletions
diff --git a/src/gui/wscript b/src/gui/wscript index 5b5ae362..7702bd4f 100644 --- a/src/gui/wscript +++ b/src/gui/wscript @@ -64,7 +64,7 @@ def build(bld): target = '../../ingen_gui.ui', install_path = '${DATADIR}/ingen', chmod = Utils.O755, - INGEN_VERSION = bld.env['INGEN_VERSION']) + INGEN_VERSION = bld.env.INGEN_VERSION) # LV2 UI obj = bld(features = 'cxx cxxshlib', diff --git a/src/serialisation/wscript b/src/serialisation/wscript index 190b1aee..c362f29e 100644 --- a/src/serialisation/wscript +++ b/src/serialisation/wscript @@ -14,7 +14,7 @@ def build(bld): use = 'libingen') autowaf.use_lib(bld, obj, 'GLIBMM LV2 LILV RAUL SORD SRATOM') - if bld.env['BUILD_TESTS']: + if bld.env.BUILD_TESTS: obj = bld(features = 'c cshlib cxx cxxshlib', source = ['Parser.cpp', 'Serialiser.cpp', @@ -25,6 +25,6 @@ def build(bld): target = 'ingen_serialisation_profiled', install_path = '', use = 'libingen_profiled', - lib = bld.env['INGEN_TEST_LIBS'], - cxxflags = bld.env['INGEN_TEST_CXXFLAGS']) + lib = bld.env.INGEN_TEST_LIBS, + cxxflags = bld.env.INGEN_TEST_CXXFLAGS) autowaf.use_lib(bld, obj, 'GLIBMM LV2 LILV RAUL SORD SRATOM') diff --git a/src/server/wscript b/src/server/wscript index c333250a..a0c26bff 100644 --- a/src/server/wscript +++ b/src/server/wscript @@ -58,7 +58,7 @@ def build(bld): core_libs = 'GLIBMM GTHREAD LV2 LILV RAUL SORD' autowaf.use_lib(bld, obj, core_libs) - if bld.env['BUILD_TESTS']: + if bld.env.BUILD_TESTS: obj = bld(features = 'cxx cxxshlib', source = core_source, export_includes = ['../..'], @@ -67,8 +67,8 @@ def build(bld): target = 'ingen_server_profiled', install_path = '${LIBDIR}', use = 'libingen_profiled', - lib = bld.env['INGEN_TEST_LIBS'], - cxxflags = bld.env['INGEN_TEST_CXXFLAGS']) + lib = bld.env.INGEN_TEST_LIBS, + cxxflags = bld.env.INGEN_TEST_CXXFLAGS) autowaf.use_lib(bld, obj, core_libs) if bld.is_defined('HAVE_JACK'): diff --git a/src/wscript b/src/wscript index 243e9fa2..a65cfdbd 100644 --- a/src/wscript +++ b/src/wscript @@ -29,7 +29,7 @@ def build(bld): lib = ['dl']) autowaf.use_lib(bld, obj, 'GLIBMM LV2 LILV RAUL SORD LV2_MIDI') - if bld.env['BUILD_TESTS']: + if bld.env.BUILD_TESTS: obj = bld(features = 'cxx cxxshlib', source = sources, export_includes = ['..'], @@ -37,7 +37,7 @@ def build(bld): name = 'libingen_profiled', target = 'ingen_profiled', install_path = '', - lib = ['dl'] + bld.env['INGEN_TEST_LIBS'], - cxxflags = bld.env['INGEN_TEST_CXXFLAGS']) + lib = ['dl'] + bld.env.INGEN_TEST_LIBS, + cxxflags = bld.env.INGEN_TEST_CXXFLAGS) autowaf.use_lib(bld, obj, 'GLIBMM LV2 LILV RAUL SORD LV2_MIDI') @@ -79,18 +79,18 @@ def configure(conf): if conf.is_defined('HAVE_NEW_JACK'): autowaf.define(conf, 'INGEN_JACK_SESSION', 1) - conf.env['BUILD_TESTS'] = Options.options.build_tests - if conf.env['BUILD_TESTS']: + conf.env.BUILD_TESTS = Options.options.build_tests + if conf.env.BUILD_TESTS: conf.check_cxx(lib='gcov', define_name='HAVE_GCOV', mandatory=False) if conf.is_defined('HAVE_GCOV'): - conf.env['INGEN_TEST_LIBS'] = ['gcov'] - conf.env['INGEN_TEST_CXXFLAGS'] = ['-fprofile-arcs', '-ftest-coverage'] + conf.env.INGEN_TEST_LIBS = ['gcov'] + conf.env.INGEN_TEST_CXXFLAGS = ['-fprofile-arcs', '-ftest-coverage'] else: - conf.env['INGEN_TEST_LIBS'] = [] - conf.env['INGEN_TEST_CXXFLAGS'] = [] + 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', @@ -110,11 +110,11 @@ def configure(conf): autowaf.define(conf, 'HAVE_JACK_MIDI', 1) autowaf.define(conf, 'INGEN_DATA_DIR', - os.path.join(conf.env['DATADIR'], 'ingen')) + os.path.join(conf.env.DATADIR, 'ingen')) autowaf.define(conf, 'INGEN_MODULE_DIR', - conf.env['LIBDIR']) + conf.env.LIBDIR) autowaf.define(conf, 'INGEN_BUNDLE_DIR', - os.path.join(conf.env['LV2DIR'], 'ingen.lv2')) + os.path.join(conf.env.LV2DIR, 'ingen.lv2')) if Options.options.log_debug: autowaf.define(conf, 'RAUL_LOG_DEBUG', 1) @@ -126,16 +126,16 @@ def configure(conf): conf.is_defined('INGEN_JACK_SESSION')) autowaf.display_msg(conf, "Socket interface", conf.is_defined('HAVE_SOCKET')) autowaf.display_msg(conf, "LV2", conf.is_defined('HAVE_LILV')) - autowaf.display_msg(conf, "GUI", str(conf.env['INGEN_BUILD_GUI'] == 1)) - autowaf.display_msg(conf, "LV2 bundle", conf.env['INGEN_BUNDLE_DIR']) + autowaf.display_msg(conf, "GUI", str(conf.env.INGEN_BUILD_GUI == 1)) + autowaf.display_msg(conf, "LV2 bundle", conf.env.INGEN_BUNDLE_DIR) autowaf.display_msg(conf, "HTML plugin documentation support", conf.is_defined('HAVE_WEBKIT')) print('') def build(bld): opts = Options.options - opts.datadir = opts.datadir or bld.env['PREFIX'] + 'share' - opts.moduledir = opts.moduledir or bld.env['PREFIX'] + 'lib/ingen' + opts.datadir = opts.datadir or bld.env.PREFIX + 'share' + opts.moduledir = opts.moduledir or bld.env.PREFIX + 'lib/ingen' # Headers for i in ['', 'client', 'serialisation']: @@ -162,15 +162,15 @@ def build(bld): autowaf.use_lib(bld, obj, 'GTHREAD GLIBMM SORD RAUL LILV INGEN LV2') # Test program - if bld.env['BUILD_TESTS']: + if bld.env.BUILD_TESTS: obj = bld(features = 'cxx cxxprogram', source = 'tests/ingen_test.cpp', target = 'tests/ingen_test', includes = ['.'], use = 'libingen_profiled', install_path = '', - lib = bld.env['INGEN_TEST_LIBS'], - cxxflags = bld.env['INGEN_TEST_CXXFLAGS']) + lib = bld.env.INGEN_TEST_LIBS, + cxxflags = bld.env.INGEN_TEST_CXXFLAGS) autowaf.use_lib(bld, obj, 'GTHREAD GLIBMM SORD RAUL LILV INGEN LV2 SRATOM') bld.install_files('${DATADIR}/applications', 'src/ingen/ingen.desktop') @@ -183,7 +183,7 @@ def build(bld): icon_sizes = ['16x16', '22x22', '24x24', '32x32', '48x48'] for s in icon_sizes: bld.install_as( - os.path.join(bld.env['DATADIR'], 'icons', 'hicolor', s, 'apps', 'ingen.png'), + os.path.join(bld.env.DATADIR, 'icons', 'hicolor', s, 'apps', 'ingen.png'), 'icons/' + s + '/ingen.png') bld.install_files('${LV2DIR}/ingen.lv2/', @@ -193,7 +193,7 @@ def build(bld): bld.install_files('${LV2DIR}/%s/' % str(i), bld.path.ant_glob('bundles/%s/*' % str(i))) bld.symlink_as('${LV2DIR}/%s/libingen_lv2.so' % str(i), - bld.env['LV2DIR'] + '/ingen.lv2/libingen_lv2.so') + bld.env.LV2DIR + '/ingen.lv2/libingen_lv2.so') bld.add_post_fun(autowaf.run_ldconfig) |