Asher Haun and Victor Contreras Advised by Dr. Emmet Tomai
- Premake 5 (bundled with repository)
- Clang++, VS22 or other C++ compiler supported by Premake5
- Git
Run the script without parameters for usage instructions.
# DOS
> .\build.bat
# Mac OS
$ ./build.sh
The compile
command will generate a build solution in the ./build/[build_system]/
directory.
[num_cores]
can be left blank, default: 4, or input as a number by you.
# DOS
> .\build.bat compile vs2022 Release [num_cores]
# Mac OS
$ ./build.sh compile gmake2 Release [num_cores]
If you would prefer to create a build solution and use an IDE, this will work, or you can use premake as normal.
Run the binary
The compile
command will build an executable within the following directory structure:
./build/[build_system]/bin/[architecture]/[Release|Debug]/voxels[.exe]
# DOS
> .\build.bat run vs2022 Release [num_cores]
# Mac OS
$ ./build.sh run gmake2 Release [num_cores]
Our premake5.lua script is based on the the Minimal BGFX Example Project by @jpcy, used with permission through the BSD-2 License.