Ejemplo n.º 1
0
def configureEnvironment():

    utility.printHeading("Configuring environment...")

    for name, value in config.propertyList().items():

        if value:
            print("\tSetting: ${" + utility.style.bold + name +
                  utility.style.none + "}")
            os.environ[name] = value
        else:
            print("\tUnused: " + utility.style.error + name +
                  utility.style.none)

    utility.printSuccess("Build environment variables are now set.")
Ejemplo n.º 2
0
def buildProducts():

    utility.printHeading("Building products...")

    scripts = {
        "Darwin": "Scripts/Build/BuildDarwin.sh",
        "Linux": "Scripts/Build/BuildLinux.sh",
        "Windows": "Scripts\\Build\\BuildWindows.cmd",
    }

    scriptPath = utility.joinPath(config.toplevelPath,
                                  scripts[platform.system()])

    utility.runCommand('"' + scriptPath + '"')

    utility.printSuccess("Build completed successfully.")
Ejemplo n.º 3
0
def configureSubmodules():

    utility.printHeading("Updating Git submodules...")

    os.chdir(config.toplevelPath)

    statusBefore = utility.captureCommandOutput("git submodule status")
    print(statusBefore)

    utility.runCommand("git submodule update --init --remote --recursive")

    statusAfter = utility.captureCommandOutput("git submodule status")
    print(statusAfter)

    if statusBefore != statusAfter:
        utility.printHeading("Updating product version...")
        config.updateProductVersion()

    utility.printSuccess("Git submodules are now up to date.")