def AddCommandLineOptions(): '''Register the cmd-line options. Registers --nacl-platform, --architecture and --variant. This function can be called multiple times. Only the first call registers the option. Args: None Returns: None ''' try: Script.AddOption('--nacl-platform', dest='nacl_platform', nargs=1, type='string', action='store', help='target pepper version') Script.Help(' --nacl-platform ' 'Specify the pepper version to build for ' '(e.g. --nacl-platform="pepper_14").\n') Script.AddOption('--architecture', dest='architecture', nargs=1, type='string', action='store', help='NaCl target architecture') Script.Help( ' --architecture ' 'Specify the NaCl target architecture to build (e.g. ' '--architecture="glibc"). Possible values are "x86", "pnacl" ' '"arm". Not all target architectures are available on all ' 'host platforms. Defaults to "x86"\n') Script.AddOption('--variant', dest='variant', nargs=1, type='string', action='store', help='NaCl toolchain variant') Script.Help( ' --variant ' 'Specify the NaCl toolchain variant to use when ' 'building (e.g. --variant="glibc"). Possible values are ' '"glibc", "newlib"; when --architecture=pnacl is specified, ' 'values must include bit-width, e.g. "glibc-64". Defaults to ' '"newlib"\n') except optparse.OptionConflictError: pass
import SCons.Script as Script Script.AddOption( "--infiles", dest="infiles", metavar="FILE_LIST", default="tests/test.yaml", help= """Specify ':' separated list of partis output directories to process on; if full path not specified, assumed to be in --base-datapath. Dataset names will be assined in relation to this --base-datapath if present. Note: symlinks may not work properly here unless they point to things in base-datapath also.""", ) Script.AddOption( "--depth", dest="depth", help= """How many clonal families should we process per unseeded sample and locus? Defaults to 20, unless this is a test run in which case it defaults to 3.""", ) Script.AddOption( "--process-all-partis-partition-steps", dest="process_all_partis_partition_steps", action="store_true", help= """If this is set, all partition steps are processed. By default only the best partis partition step is processed (cp.i_best).""", ) Script.AddOption( "--skip-large-clusters",
del (depends_on[nd]) to_process.append(nd) if len(depends_on) != 0: print( 'Error. The dependancy graph starting with ' '%s contains cycles!' % map(str, nodes)) sys.exit(1) return result # If passed unit tests run via SconsCPPHelper.__RunSingleUnitTest are run under # valgrind. scons.AddOption('--valgrind', dest='valgrind', action='store_true', default=False, help='When given in combination with ' '--test this runs unit tests under valgrind.') # Compiles a version for profiling with gprof scons.AddOption('--gprof', dest='gprof', action='store_true', default=False, help='Compile with gprof support. If ' 'given running the program will produce a gmon.out file ' 'on exit which can be used with gprof') class SconsCPPHelper(object): """Main class for building libraries, programs, and unit tests. See the README for details."""