diff options
author | David Robillard <d@drobilla.net> | 2019-04-15 11:30:57 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-15 11:30:57 +0200 |
commit | dca1019e9dcf7685f6ef32dd170ef4e8ee390c15 (patch) | |
tree | 7bacfe02fb08c6597879aff9d171f2eb9a7ec828 /waflib/extras | |
parent | e12717942cf5295d2a10bf1fd8330ef10eabc345 (diff) | |
parent | 121d786100429762f2b70c3ba2e6472ce84a4b2d (diff) | |
download | lv2-dca1019e9dcf7685f6ef32dd170ef4e8ee390c15.tar.xz |
Update autowaf
Diffstat (limited to 'waflib/extras')
-rw-r--r-- | waflib/extras/autowaf.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/waflib/extras/autowaf.py b/waflib/extras/autowaf.py index 5feef03..8c6e258 100644 --- a/waflib/extras/autowaf.py +++ b/waflib/extras/autowaf.py @@ -174,7 +174,8 @@ def define(conf, var_name, value): def check_pkg(conf, name, **args): "Check for a package iff it hasn't been checked for yet" - if args['uselib_store'].lower() in conf.env['AUTOWAF_LOCAL_LIBS']: + if (args['uselib_store'].lower() in conf.env['AUTOWAF_LOCAL_LIBS'] or + args['uselib_store'].lower() in conf.env['AUTOWAF_LOCAL_HEADERS']): return class CheckType: @@ -483,7 +484,7 @@ def version_lib(self): if [x for x in applicable if x in self.features]: self.target = self.target + 'D' -def set_lib_env(conf, name, version): +def set_lib_env(conf, name, version, has_objects=True): "Set up environment for local library as if found via pkg-config." NAME = name.upper() major_ver = version.split('.')[0] @@ -495,7 +496,8 @@ def set_lib_env(conf, name, version): conf.env[pkg_var_name] = lib_name conf.env['INCLUDES_' + NAME] = ['${INCLUDEDIR}/%s-%s' % (name, major_ver)] conf.env['LIBPATH_' + NAME] = lib_path - conf.env['LIB_' + NAME] = [lib_name] + if has_objects: + conf.env['LIB_' + NAME] = [lib_name] conf.run_env.append_unique(lib_path_name, lib_path) conf.define(NAME + '_VERSION', version) |