MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / AddOptions

Function AddOptions

tools/options.py:28–156  ·  view source on GitHub ↗

===== Add generic options to SCons =====

()

Source from the content-addressed store, hash-verified

26import platform
27
28def AddOptions():
29 ''' ===== Add generic options to SCons ===== '''
30 AddOption('--dist',
31 dest = 'make-dist',
32 action = 'store_true',
33 default = False,
34 help = 'make distribution')
35 AddOption('--dist-ide', '--dist-rtstudio',
36 dest = 'make-dist-ide',
37 action = 'store_true',
38 default = False,
39 help = 'make distribution for RT-Thread Studio IDE')
40 AddOption('--project-path',
41 dest = 'project-path',
42 type = 'string',
43 default = None,
44 help = 'set project output path')
45 AddOption('--project-name',
46 dest = 'project-name',
47 type = 'string',
48 default = "project",
49 help = 'set project name')
50 AddOption('--cscope',
51 dest = 'cscope',
52 action = 'store_true',
53 default = False,
54 help = 'Build Cscope cross reference database. Requires cscope installed.')
55 AddOption('--clang-analyzer',
56 dest = 'clang-analyzer',
57 action = 'store_true',
58 default = False,
59 help = 'Perform static analyze with Clang-analyzer. ' + \
60 'Requires Clang installed.' + \
61 'It is recommended to use with scan-build like this:' + \
62 '`scan-build scons --clang-analyzer`' + \
63 'If things goes well, scan-build will instruct you to invoke scan-view.')
64 AddOption('--buildlib',
65 dest = 'buildlib',
66 type = 'string',
67 help = 'building library of a component')
68 AddOption('--cleanlib',
69 dest = 'cleanlib',
70 action = 'store_true',
71 default = False,
72 help = 'clean up the library by --buildlib')
73 AddOption('--target',
74 dest = 'target',
75 type = 'string',
76 help = 'set target project: mdk/mdk4/mdk5/iar/vs/vsc/ua/cdk/ses/makefile/eclipse/codelite/cmake/vsc_workspace')
77 AddOption('--cmsispack',
78 dest = 'cmsispack',
79 type = 'string',
80 help = 'set pack: <cmsispack path>')
81 AddOption('--strict',
82 dest='strict-compiling',
83 help='Compiling project with strict mode and ALL warning will be errors',
84 action='store_true',
85 default=False)

Callers 1

PrepareBuildingFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected