mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-06 00:45:22 +08:00
scons: Add CodeLite target
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user