sbsv2/raptor/python/raptor_cli.py
branchfix
changeset 219 c3543adfd26e
parent 29 ee00c00df073
child 220 f7d68ecb923e
equal deleted inserted replaced
218:08ca0919c66d 219:c3543adfd26e
    45 FINAL          Allow extension makefiles to execute final commands
    45 FINAL          Allow extension makefiles to execute final commands
    46 FREEZE         Freeze exported functions in a .DEF file
    46 FREEZE         Freeze exported functions in a .DEF file
    47 LIBRARY        Create import libraries from frozen .DEF files
    47 LIBRARY        Create import libraries from frozen .DEF files
    48 LISTING        Create assembler listing files for source files
    48 LISTING        Create assembler listing files for source files
    49 REALLYCLEAN    Same as CLEAN but also remove exported files
    49 REALLYCLEAN    Same as CLEAN but also remove exported files
    50 RESOURCE       Create resource files and AIFs
    50 RESOURCE       Create resource files
    51 ROMFILE        Create an IBY file to be included in a ROM
    51 ROMFILE        Create an IBY file to be included in a ROM
    52 TARGET         Create main executables
    52 TARGET         Create main executables
    53 WHAT           List all releaseable targets
    53 WHAT           List all releaseable targets
    54 
    54 
    55 Examples:
    55 Examples:
   117 parser.add_option("-n","--nobuild",action="store_true",dest="nobuild",
   117 parser.add_option("-n","--nobuild",action="store_true",dest="nobuild",
   118 				help="Just create makefiles, do not build anything.")
   118 				help="Just create makefiles, do not build anything.")
   119 
   119 
   120 parser.add_option("--no-depend-include",action="store_true",dest="noDependInclude",
   120 parser.add_option("--no-depend-include",action="store_true",dest="noDependInclude",
   121 				help="Do not include generated dependency files. This is only useful for extremely large non-incremental builds.")
   121 				help="Do not include generated dependency files. This is only useful for extremely large non-incremental builds.")
       
   122 
       
   123 parser.add_option("--no-depend-generate",action="store_true",dest="noDependGenerate",
       
   124 				help="Do not generate dependency files. This is only useful for extremely large non-incremental builds.  Implies --no-depend-include.")
   122 				
   125 				
   123 parser.add_option("-o","--orderlayers",action="store_true",dest="sys_def_order_layers",
   126 parser.add_option("-o","--orderlayers",action="store_true",dest="sys_def_order_layers",
   124 				help="Build layers in the System Definition XML file in the order listed or, if given, in the order of -l options.")
   127 				help="Build layers in the System Definition XML file in the order listed or, if given, in the order of -l options.")
   125 
   128 
   126 parser.add_option("-p","--project",action="append",dest="project_name",
   129 parser.add_option("-p","--project",action="append",dest="project_name",
   272 				 'keepgoing': Raptor.SetKeepGoing,
   275 				 'keepgoing': Raptor.SetKeepGoing,
   273 				 'nobuild' : Raptor.SetNoBuild,
   276 				 'nobuild' : Raptor.SetNoBuild,
   274 				 'make_engine': Raptor.SetMakeEngine,
   277 				 'make_engine': Raptor.SetMakeEngine,
   275 				 'make_option': Raptor.AddMakeOption,
   278 				 'make_option': Raptor.AddMakeOption,
   276 				 'noDependInclude': Raptor.SetNoDependInclude,
   279 				 'noDependInclude': Raptor.SetNoDependInclude,
       
   280 				 'noDependGenerate': Raptor.SetNoDependInclude,
   277 				 'number_of_jobs': Raptor.SetJobs,
   281 				 'number_of_jobs': Raptor.SetJobs,
   278 				 'project_name' :  Raptor.AddProject,
   282 				 'project_name' :  Raptor.AddProject,
   279 				 'filter_list' : Raptor.FilterList,
   283 				 'filter_list' : Raptor.FilterList,
   280 				 'ignore_os_detection': Raptor.IgnoreOsDetection,
   284 				 'ignore_os_detection': Raptor.IgnoreOsDetection,
   281 				 'check' :  Raptor.SetCheck,
   285 				 'check' :  Raptor.SetCheck,
   283 				 'tries' : Raptor.SetTries,
   287 				 'tries' : Raptor.SetTries,
   284 				 'toolcheck' : Raptor.SetToolCheck,
   288 				 'toolcheck' : Raptor.SetToolCheck,
   285 				 'timing' : Raptor.SetTiming,
   289 				 'timing' : Raptor.SetTiming,
   286 				 'source_target' : Raptor.AddSourceTarget,
   290 				 'source_target' : Raptor.AddSourceTarget,
   287 				 'command_file' : CommandFile,
   291 				 'command_file' : CommandFile,
   288 				'parallel_parsing' : Raptor.SetParallelParsing,
   292 				 'parallel_parsing' : Raptor.SetParallelParsing,
   289 			 	'version' : Raptor.PrintVersion
   293 			 	 'version' : Raptor.PrintVersion
   290 				}
   294 				}
   291 
   295 
   292 	# Check if Quiet mode has been specified (otherwise we will make noise)
   296 	# Check if Quiet mode has been specified (otherwise we will make noise)
   293 	if parser.values.quiet:
   297 	if parser.values.quiet:
   294 		Raptor.RunQuietly(True)
   298 		Raptor.RunQuietly(True)