diff options
author | David Robillard <d@drobilla.net> | 2009-02-25 19:36:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-02-25 19:36:16 +0000 |
commit | 5fe34018143a49d084a8fcdabf7e66e4fac85026 (patch) | |
tree | 1eb1a0cd8f2b194609aff5236a5dc2eb38f4da57 /autowaf.py | |
parent | 5b9433f42f3646086d31b69f30ddcd8d8bd9f22f (diff) |
Waf building of taglib and vamp-sdk.
git-svn-id: svn://localhost/ardour2/branches/3.0@4660 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'autowaf.py')
-rw-r--r-- | autowaf.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/autowaf.py b/autowaf.py index c821ee8cc2..df6b43beff 100644 --- a/autowaf.py +++ b/autowaf.py @@ -89,9 +89,12 @@ def check_tool(conf, name): conf.check_tool(name) checked[name] = True +def nameify(name): + return name.replace('/', '_').replace('++', 'PP').replace('-', '_') + def check_pkg(conf, name, **args): "Check for a package iff it hasn't been checked for yet" - var_name = 'HAVE_' + args['uselib_store'].replace('/', '_').replace('++', 'PP') + var_name = 'HAVE_' + nameify(args['uselib_store']) check = not var_name in conf.env if not check and 'atleast_version' in args: # Re-check if version is newer than previous check @@ -198,7 +201,7 @@ def configure(conf): g_step = 2 def set_local_lib(conf, name, has_objects): - conf.define('HAVE_' + name.upper().replace('/', '_').replace('++', 'PP'), 1) + conf.define('HAVE_' + nameify(name.upper()), 1) if has_objects: if type(conf.env['AUTOWAF_LOCAL_LIBS']) != dict: conf.env['AUTOWAF_LOCAL_LIBS'] = {} |