File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 7777 if : ${{ success() }}
7878 run : |
7979 echo "Test to dist project"
80- scons --dist -C $TEST_BSP_ROOT
80+ scons --dist --project-name=project - C $TEST_BSP_ROOT
8181 scons --dist-ide -C $TEST_BSP_ROOT
8282 ls $TEST_BSP_ROOT
8383 ls $TEST_BSP_ROOT/dist
Original file line number Diff line number Diff line change 2222# 2022-04-20 WuGensheng Add Options to SCons
2323#
2424
25- from SCons .Script import AddOption
25+ from SCons .Script import AddOption , Dir
2626import platform
27+ import os
2728
2829def AddOptions ():
2930 ''' ===== Add generic options to SCons ===== '''
@@ -45,7 +46,7 @@ def AddOptions():
4546 AddOption ('--project-name' ,
4647 dest = 'project-name' ,
4748 type = 'string' ,
48- default = "project" ,
49+ default = os . path . basename ( Dir ( '#' ). abspath ) ,
4950 help = 'set project name' )
5051 AddOption ('--cscope' ,
5152 dest = 'cscope' ,
You can’t perform that action at this time.
0 commit comments