提交 5ce39b8a 编写于 作者: B bernard

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

上级 0468f0c8
...@@ -327,9 +327,11 @@ def DefineGroup(name, src, depend, **parameters): ...@@ -327,9 +327,11 @@ def DefineGroup(name, src, depend, **parameters):
# check whether exist group library # check whether exist group library
if not GetOption('buildlib') and os.path.exists(os.path.join(group['path'], GroupLibFullName(name, Env))): if not GetOption('buildlib') and os.path.exists(os.path.join(group['path'], GroupLibFullName(name, Env))):
Env.Append(LIBS = [GroupLibName(name, Env)])
group['src'] = [] 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'): if group.has_key('LIBS'):
Env.Append(LIBS = group['LIBS']) Env.Append(LIBS = group['LIBS'])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册