waf: set lib as output dir for static libraries

This commit is contained in:
Gustavo Jose de Sousa 2016-05-20 16:44:41 -03:00 committed by Lucas De Marchi
parent 236a62f4b9
commit 64b8ec61c7
1 changed files with 7 additions and 0 deletions

View File

@ -198,6 +198,13 @@ def ap_create_program_dir(self):
self.bld.bldnode.make_node(self.program_dir).mkdir()
_created_program_dirs.add(self.program_dir)
@feature('cxxstlib')
@before_method('process_rule')
def ap_stlib_target(self):
if self.target.startswith('#'):
self.target = self.target[1:]
self.target = '#%s' % os.path.join('lib', self.target)
@conf
def ap_find_tests(bld, use=[]):
if not bld.env.HAS_GTEST: