A collection of scripts to automate building the Cesium compiler from source.
Currently, this is only written for Windows, but eventually it will also support other platforms.
The scripts in this repo address downloading portable versions of CMake, Ninja, LLVM, etc., as necessary.
It also locally sets $PATH to a minimal set of values due to issues with other libraries installed on the machine polluting the build.
- If you do not already have one, create a Qt account
- If you have successfully installed Qt with this account before on this computer, you do not need to do the login steps since your credentials are saved by Qt after your first successful login.
- If you have not logged into Qt from an installer before, create a file in the root of this repo called
.qtemailand put your Qt account email on the first line. Also create a file in the root of this repo called.qtpasswordand put your Qt account password on the first line in plaintext. Note that these files are optional, and the absence of either one will prompt you for the missing information interactively. After the script completes successfully, you may delete these files since the credentials will be stored by Qt encrypted. - Run
get-buildtools, which will set up the build environment.
These scripts are initially developed to simply codify the steps to get a build environment, ensure repeatability, and, perhaps, easing future CI builds or other automation.
I intentionally do not set @echo off for the Windows scripts because all of this is still very much in development, and it is a useful debugging tool to see exactly what commands go with what terminal outputs or see what variable expansions and substitutions are happening.
Tar commands have the additional -mS flags added. This is because I tried to compile on exFAT flash storage, which doesn't fully support POSIX-like file attributes. The -m prevents trying to update the last modified time, while -S allows it to handle sparse files more efficiently (which seems to be important due to how the devkit tar file is constructed I suppose; this may not actually be necessary, but did seem to help performance)