summaryrefslogtreecommitdiff
path: root/tools/building.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/building.py')
-rw-r--r--tools/building.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/building.py b/tools/building.py
index e807188151..8e11de73e8 100644
--- a/tools/building.py
+++ b/tools/building.py
@@ -389,6 +389,16 @@ def PrepareModuleBuilding(env, root_directory, bsp_directory):
PreProcessor.process_contents(contents)
BuildOptions = PreProcessor.cpp_namespace
+ AddOption('--buildlib',
+ dest = 'buildlib',
+ type = 'string',
+ help = 'building library of a component')
+ AddOption('--cleanlib',
+ dest = 'cleanlib',
+ action = 'store_true',
+ default = False,
+ help = 'clean up the library by --buildlib')
+
# add program path
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
@@ -607,7 +617,7 @@ def DefineGroup(name, src, depend, **parameters):
paths.append(os.path.abspath(item))
group['LOCAL_CPPPATH'] = paths
-
+
if rtconfig.PLATFORM == 'gcc':
if 'CFLAGS' in group:
group['CFLAGS'] = utils.GCCC99Patch(group['CFLAGS'])