14
building.py
14
building.py
@@ -764,10 +764,7 @@ def DoBuilding(target, objects, is_rtt = False, build_lib = False):
|
||||
|
||||
program = None
|
||||
# check whether special buildlib option
|
||||
if build_lib:
|
||||
lib_name = target
|
||||
else:
|
||||
lib_name = GetOption('buildlib')
|
||||
lib_name = GetOption('buildlib')
|
||||
|
||||
if lib_name:
|
||||
objects = [] # remove all of objects
|
||||
@@ -795,8 +792,13 @@ def DoBuilding(target, objects, is_rtt = False, build_lib = False):
|
||||
# re-add the source files to the objects
|
||||
for group in Projects:
|
||||
local_group(group, objects)
|
||||
|
||||
program = Env.Program(target, objects)
|
||||
|
||||
if build_lib:
|
||||
program = Env.Library(target, objects)
|
||||
# add library copy action
|
||||
Env.BuildLib(target, program)
|
||||
else:
|
||||
program = Env.Program(target, objects)
|
||||
|
||||
EndBuilding(target, program, is_rtt)
|
||||
|
||||
|
Reference in New Issue
Block a user