scons: Add CodeLite target

This commit is contained in:
mx
2020-10-16 15:16:35 +08:00
parent 3ff0c07b38
commit 36834efc24
4 changed files with 286 additions and 2 deletions

View File

@@ -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):