summaryrefslogtreecommitdiff
path: root/tools/building.py
diff options
context:
space:
mode:
authorliukangcc <[email protected]>2022-05-04 18:10:09 +0800
committerguo <[email protected]>2022-05-09 09:39:22 +0800
commitb077e91cdfe4bf0504f27db660d553e249f13589 (patch)
tree5f163ff1ac2cfea389b2a72d10273866bfd7b2f3 /tools/building.py
parent6495df717fa8a63e2bc381c32821205a57cd1a4e (diff)
[update] support command: scons --target=xmake
Diffstat (limited to 'tools/building.py')
-rw-r--r--tools/building.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/building.py b/tools/building.py
index 5cb1fbd5e9..deeb8fb620 100644
--- a/tools/building.py
+++ b/tools/building.py
@@ -185,6 +185,7 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
'ses' : ('gcc', 'gcc'),
'cmake':('gcc', 'gcc'),
'cmake-armclang':('keil', 'armclang'),
+ 'xmake':('gcc', 'gcc'),
'codelite' : ('gcc', 'gcc')}
tgt_name = GetOption('target')
@@ -847,7 +848,9 @@ def GenTargetProject(program = None):
if GetOption('target') == 'cmake' or GetOption('target') == 'cmake-armclang':
from cmake import CMakeProject
CMakeProject(Env,Projects)
-
+ if GetOption('target') == 'xmake':
+ from xmake import XMakeProject
+ XMakeProject(Env, Projects)
def EndBuilding(target, program = None):