Esempio n. 1
0
def BuildOptions():
    result = optparse.OptionParser()
    result.add_option("-m",
                      "--mode",
                      help='Build variants (comma-separated).',
                      metavar='[all,debug,release]',
                      default='debug')
    result.add_option("-v",
                      "--verbose",
                      help='Verbose output.',
                      default=False,
                      action="store_true")
    result.add_option("-a",
                      "--arch",
                      help='Target architectures (comma-separated).',
                      metavar='[all,ia32,x64,simarm,arm,simmips,mips]',
                      default=utils.GuessArchitecture())
    result.add_option("--os",
                      help='Target OSs (comma-separated).',
                      metavar='[all,host,android]',
                      default='host')
    result.add_option("-j",
                      help='The number of parallel jobs to run.',
                      metavar=HOST_CPUS,
                      default=str(HOST_CPUS))
    (vs_directory, vs_executable) = utils.GuessVisualStudioPath()
    result.add_option("--devenv",
                      help='Path containing devenv.com on Windows',
                      default=vs_directory)
    result.add_option(
        "--executable",
        help='Name of the devenv.com/msbuild executable on Windows (varies for '
        'different versions of Visual Studio)',
        default=vs_executable)
    return result
Esempio n. 2
0
def BuildOptions():
    result = optparse.OptionParser(usage=usage)
    result.add_option("-m",
                      "--mode",
                      help='Build variants (comma-separated).',
                      metavar='[all,debug,release]',
                      default='debug')
    result.add_option("-v",
                      "--verbose",
                      help='Verbose output.',
                      default=False,
                      action="store_true")
    result.add_option(
        "-a",
        "--arch",
        help='Target architectures (comma-separated).',
        metavar='[all,ia32,x64,simarm,arm,simarmv5te,armv5te,simmips,mips'
        ',simarm64,arm64,]',
        default=utils.GuessArchitecture())
    result.add_option("--os",
                      help='Target OSs (comma-separated).',
                      metavar='[all,host,android]',
                      default='host')
    result.add_option("-t",
                      "--toolchain",
                      help='Cross-compiler toolchain path',
                      default=None)
    result.add_option("-j",
                      help='The number of parallel jobs to run.',
                      metavar=HOST_CPUS,
                      default=str(HOST_CPUS))
    (vs_directory, vs_executable) = utils.GuessVisualStudioPath()
    result.add_option("--devenv",
                      help='Path containing devenv.com on Windows',
                      default=vs_directory)
    result.add_option(
        "--executable",
        help='Name of the devenv.com/msbuild executable on Windows (varies for '
        'different versions of Visual Studio)',
        default=vs_executable)
    result.add_option(
        "--use-bootstrap-for-observatory",
        help='Use a stripped down Dart binary built on the host machine '
        'for building Observatory. Necessary on Linux machines which have '
        'libc incompatibilities with the prebuilt Dart binaries.',
        default=False,
        action="store_true")
    return result
Esempio n. 3
0
def BuildOptions():
    result = optparse.OptionParser(usage=usage)
    result.add_option("-m",
                      "--mode",
                      help='Build variants (comma-separated).',
                      metavar='[all,debug,release,product]',
                      default='debug')
    result.add_option("-v",
                      "--verbose",
                      help='Verbose output.',
                      default=False,
                      action="store_true")
    result.add_option(
        "-a",
        "--arch",
        help='Target architectures (comma-separated).',
        metavar='[all,ia32,x64,simarm,arm,simarmv6,armv6,simarmv5te,armv5te,'
        'simarm64,arm64,simdbc,armsimdbc]',
        default=utils.GuessArchitecture())
    result.add_option("--os",
                      help='Target OSs (comma-separated).',
                      metavar='[all,host,android]',
                      default='host')
    result.add_option("-t",
                      "--toolchain",
                      help='Cross-compiler toolchain path',
                      default=None)
    result.add_option("-j",
                      help='The number of parallel jobs to run.',
                      metavar=HOST_CPUS,
                      default=str(HOST_CPUS))
    (vs_directory, vs_executable) = utils.GuessVisualStudioPath()
    result.add_option("--devenv",
                      help='Path containing devenv.com on Windows',
                      default=vs_directory)
    result.add_option(
        "--executable",
        help='Name of the devenv.com/msbuild executable on Windows (varies for '
        'different versions of Visual Studio)',
        default=vs_executable)
    result.add_option("--gyp",
                      help='Build with gyp.',
                      default=use_gyp(),
                      action='store_true')
    return result