Ejemplo n.º 1
0
def Main():
    context = BuildContext()
    status = BuildStatus(context)
    ParseStandardCommandLine(context)

    if context.Linux():
        SetupLinuxEnvironment(context)
    elif context.Windows():
        SetupWindowsEnvironment(context)
    elif context.Mac():
        SetupMacEnvironment(context)
    else:
        raise Exception('Unsupported platform')

    RunBuild(BuildScriptX86, status)
Ejemplo n.º 2
0
def Main():
    # TODO(ncbray) make buildbot scripts composable to support toolchain use case.
    context = BuildContext()
    status = BuildStatus(context)
    ParseStandardCommandLine(context)
    SetupContextVars(context)
    if context.Windows():
        SetupWindowsEnvironment(context)
    elif context.Linux():
        SetupLinuxEnvironment(context)
    elif context.Mac():
        SetupMacEnvironment(context)
    else:
        raise Exception("Unsupported platform.")
    RunBuild(BuildScript, status)
Ejemplo n.º 3
0
def Main():
    context = BuildContext()
    status = BuildStatus(context)
    ParseStandardCommandLine(context)

    if context.Linux():
        SetupLinuxEnvironment(context)
    elif context.Windows():
        SetupWindowsEnvironment(context)
    elif context.Mac():
        # No setup to do for Mac.
        pass
    else:
        raise Exception('Unsupported platform')

    # Panda bots only have 2 cores.
    if pynacl.platform.GetArch() == 'arm':
        context['max_jobs'] = 2

    RunBuild(RunSconsTests, status)