Revert "[tools] use project's dir basename as default project name"
This reverts commit ea75800d5b
.
This commit is contained in:
parent
44515624e2
commit
a7ee7b6617
|
@ -77,7 +77,7 @@ jobs:
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
run: |
|
run: |
|
||||||
echo "Test to dist project"
|
echo "Test to dist project"
|
||||||
scons --dist --project-name=project -C $TEST_BSP_ROOT
|
scons --dist -C $TEST_BSP_ROOT
|
||||||
scons --dist-ide -C $TEST_BSP_ROOT
|
scons --dist-ide -C $TEST_BSP_ROOT
|
||||||
ls $TEST_BSP_ROOT
|
ls $TEST_BSP_ROOT
|
||||||
ls $TEST_BSP_ROOT/dist
|
ls $TEST_BSP_ROOT/dist
|
||||||
|
|
|
@ -22,9 +22,8 @@
|
||||||
# 2022-04-20 WuGensheng Add Options to SCons
|
# 2022-04-20 WuGensheng Add Options to SCons
|
||||||
#
|
#
|
||||||
|
|
||||||
from SCons.Script import AddOption, Dir
|
from SCons.Script import AddOption
|
||||||
import platform
|
import platform
|
||||||
import os
|
|
||||||
|
|
||||||
def AddOptions():
|
def AddOptions():
|
||||||
''' ===== Add generic options to SCons ===== '''
|
''' ===== Add generic options to SCons ===== '''
|
||||||
|
@ -46,7 +45,7 @@ def AddOptions():
|
||||||
AddOption('--project-name',
|
AddOption('--project-name',
|
||||||
dest = 'project-name',
|
dest = 'project-name',
|
||||||
type = 'string',
|
type = 'string',
|
||||||
default = os.path.basename(Dir('#').abspath),
|
default = "project",
|
||||||
help = 'set project name')
|
help = 'set project name')
|
||||||
AddOption('--cscope',
|
AddOption('--cscope',
|
||||||
dest = 'cscope',
|
dest = 'cscope',
|
||||||
|
|
Loading…
Reference in New Issue