Move lib environment methods to the lib tool

This commit is contained in:
Eryn Wells 2015-10-16 23:50:48 -07:00
parent 9031c61ad7
commit c9e28a2bff
2 changed files with 11 additions and 13 deletions

View file

@ -154,10 +154,6 @@ class Environment(SCons.Environment.Environment):
continue
yield (lib, lib_dir)
#
# Library processing
#
def process_lib_dirs(self):
self.log('Processing libs in #{} ...'.format(self.lib_root.path))
for name, lib in self.lib_dirs:
@ -170,14 +166,6 @@ class Environment(SCons.Environment.Environment):
# do_sconscript(env, env.source_root, src_out_dir)
self.Append(CPPPATH=[self.src_root])
def lib(self, name):
return self['LIBS'].get(name)
def register_lib(self, name, lib):
if name in self['LIBS']:
self.log_error('Library has already been built: {}'.format(name))
self['LIBS'][name] = lib
#
# Test processing
#