From 767720c1f7bb558dfee8df73dfb982496fd387bd Mon Sep 17 00:00:00 2001 From: Grissiom Date: Tue, 18 Nov 2014 17:04:35 +0800 Subject: [PATCH] SCons: allow set object files in DefineGroup The source files can be the raw file names end with .c or .o. So return the raw file names is more flexible than wrap them with Object. --- tools/building.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/building.py b/tools/building.py index 79e6fd1a4..0bdaa8696 100644 --- a/tools/building.py +++ b/tools/building.py @@ -364,9 +364,10 @@ def DefineGroup(name, src, depend, **parameters): if group.has_key('LIBPATH'): Env.Append(LIBPATH = group['LIBPATH']) - objs = Env.Object(group['src']) if group.has_key('LIBRARY'): - objs = Env.Library(name, objs) + objs = Env.Library(name, group['src']) + else: + objs = group['src'] # merge group for g in Projects: -- GitLab