summaryrefslogtreecommitdiff
path: root/tools/building.py
diff options
context:
space:
mode:
authormx <[email protected]>2020-10-16 15:16:35 +0800
committermx <[email protected]>2020-10-16 15:20:36 +0800
commit36834efc24fa87bbfc999a9ee6d87c6fc331365d (patch)
treeaa0b9cf3a2491aa26388f08a556606a53edc87b7 /tools/building.py
parent3ff0c07b3823c1ae7381eed29a0591eda43eb844 (diff)
scons: Add CodeLite target
Diffstat (limited to 'tools/building.py')
-rw-r--r--tools/building.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/building.py b/tools/building.py
index 1de54e236b..3cea6fc692 100644
--- a/tools/building.py
+++ b/tools/building.py
@@ -208,7 +208,7 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
AddOption('--target',
dest = 'target',
type = 'string',
- help = 'set target project: mdk/mdk4/mdk5/iar/vs/vsc/ua/cdk/ses/makefile/eclipse')
+ help = 'set target project: mdk/mdk4/mdk5/iar/vs/vsc/ua/cdk/ses/makefile/eclipse/codelite')
AddOption('--stackanalysis',
dest = 'stackanalysis',
action = 'store_true',
@@ -256,7 +256,8 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
'cdk':('gcc', 'gcc'),
'makefile':('gcc', 'gcc'),
'eclipse':('gcc', 'gcc'),
- 'ses' : ('gcc', 'gcc')}
+ 'ses' : ('gcc', 'gcc'),
+ 'codelite' : ('gcc', 'gcc')}
tgt_name = GetOption('target')
if tgt_name:
@@ -872,6 +873,10 @@ def GenTargetProject(program = None):
if GetOption('target') == 'eclipse':
from eclipse import TargetEclipse
TargetEclipse(Env, GetOption('reset-project-config'), GetOption('project-name'))
+
+ if GetOption('target') == 'codelite':
+ from codelite import TargetCodelite
+ TargetCodelite(Projects, program)
def EndBuilding(target, program = None):