[scons] Add the library to the group when used buildlib building

This commit is contained in:
bernard 2014-02-23 00:08:38 +08:00
parent 0468f0c87e
commit 5ce39b8ad8
1 changed files with 4 additions and 2 deletions

View File

@ -327,9 +327,11 @@ def DefineGroup(name, src, depend, **parameters):
# check whether exist group library
if not GetOption('buildlib') and os.path.exists(os.path.join(group['path'], GroupLibFullName(name, Env))):
Env.Append(LIBS = [GroupLibName(name, Env)])
group['src'] = []
Env.Append(LIBPATH = [GetCurrentDir()])
if group.has_key('LIBS'): group['LIBS'] = group['LIBS'] + [GroupLibName(name, Env)]
else : group['LIBS'] = [GroupLibName(name, Env)]
if group.has_key('LIBPATH'): group['LIBPATH'] = group['LIBPATH'] + [GetCurrentDir()]
else : group['LIBPATH'] = [GetCurrentDir()]
if group.has_key('LIBS'):
Env.Append(LIBS = group['LIBS'])