[fix][building.py]修复动态模块的option的bug (#6081)
* [fix][building.py]修复动态模块option的bug
This commit is contained in:
parent
9d0f088e20
commit
ccbecfc220
|
@ -389,6 +389,16 @@ def PrepareModuleBuilding(env, root_directory, bsp_directory):
|
||||||
PreProcessor.process_contents(contents)
|
PreProcessor.process_contents(contents)
|
||||||
BuildOptions = PreProcessor.cpp_namespace
|
BuildOptions = PreProcessor.cpp_namespace
|
||||||
|
|
||||||
|
AddOption('--buildlib',
|
||||||
|
dest = 'buildlib',
|
||||||
|
type = 'string',
|
||||||
|
help = 'building library of a component')
|
||||||
|
AddOption('--cleanlib',
|
||||||
|
dest = 'cleanlib',
|
||||||
|
action = 'store_true',
|
||||||
|
default = False,
|
||||||
|
help = 'clean up the library by --buildlib')
|
||||||
|
|
||||||
# add program path
|
# add program path
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ from SCons.Script import AddOption
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
def AddOptions():
|
def AddOptions():
|
||||||
''' ===== Add options to SCons ===== '''
|
''' ===== Add generic options to SCons ===== '''
|
||||||
|
|
||||||
AddOption('--dist',
|
AddOption('--dist',
|
||||||
dest = 'make-dist',
|
dest = 'make-dist',
|
||||||
|
@ -120,4 +120,3 @@ def AddOptions():
|
||||||
action = 'store_true',
|
action = 'store_true',
|
||||||
default = False,
|
default = False,
|
||||||
help = 'make menuconfig for RT-Thread BSP')
|
help = 'make menuconfig for RT-Thread BSP')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue