diff options
author | David Robillard <d@drobilla.net> | 2015-01-09 20:06:44 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-01-09 20:06:44 +0000 |
commit | 362d1d663bd0d6160293b240e1ed85a1ae662ef2 (patch) | |
tree | f6c94bf52ab97b5b0295aa7ce1a79e0843b5455d /wscript | |
parent | 88103d9fc6c5ab22aab264d7bd6ad6865d5f7719 (diff) | |
download | ganv-362d1d663bd0d6160293b240e1ed85a1ae662ef2.tar.gz ganv-362d1d663bd0d6160293b240e1ed85a1ae662ef2.tar.bz2 ganv-362d1d663bd0d6160293b240e1ed85a1ae662ef2.zip |
Fix OSX compilation.
git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5505 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 26 |
1 files changed, 16 insertions, 10 deletions
@@ -63,7 +63,11 @@ def configure(conf): autowaf.define(conf, 'GANV_FDGL', 1) if not Options.options.no_nls: - autowaf.check_header(conf, 'c', 'libintl.h', 'ENABLE_NLS', mandatory=False) + conf.check(function_name = 'dgettext', + header_name = 'libintl.h', + lib = 'intl', + define_name = 'ENABLE_NLS', + mandatory = False) conf.env.LIB_GANV = ['ganv-%s' % GANV_MAJOR_VERSION] @@ -124,15 +128,17 @@ def build(bld): target = 'src/ganv-marshal.c') # Library - bld(features = 'c cshlib cxx cxxshlib', - export_includes = ['.'], - source = ganv_source, - includes = ['.', './src'], - name = 'libganv', - target = 'ganv-%s' % GANV_MAJOR_VERSION, - uselib = 'GTKMM AGRAPH_2_20 AGRAPH_2_30', - vnum = GANV_VERSION, - install_path = '${LIBDIR}') + lib = bld(features = 'c cshlib cxx cxxshlib', + export_includes = ['.'], + source = ganv_source, + includes = ['.', './src'], + name = 'libganv', + target = 'ganv-%s' % GANV_MAJOR_VERSION, + uselib = 'GTKMM AGRAPH_2_20 AGRAPH_2_30', + vnum = GANV_VERSION, + install_path = '${LIBDIR}') + if bld.is_defined('ENABLE_NLS'): + lib.lib = ['intl'] # Benchmark program (C++) bld(features = 'cxx cxxprogram', |