sad
this engine is sad.
|
Luckily most of the setup for the repository has been automated using the bet
(**b**efore **e**ven **t**rying) scripting pipeline. As a result, only Python v3.10+ is required to properly install the project on either Windows or Mac.
Note: For windows users, please ensure you have Python 3 installed from the Windows Store.
To start, recursively clone the repository and follow the instructions below for your OS.
Note: If you're using a GUI client for git such as GitHub Desktop or SourceTree it should automatically perform a recursive clone on the repository. Otherwise copy the command above, right click your file explorer, and run the command in git bash.
If the repository is not cloned recursively nothing will work.
When in doubt, just cry
!
On Windows, double-click the cry.bat
script. Or enter the following command in a Terminal on either Windows or Mac.
This command can be used as an alternative to using separate commands to clean and build the project when required.
bet.py
script from the terminal and specify the proper build flag for your target toolsetThis step will have to be rerun each time any premake file (*.premake5.lua*
) is changed. Please note that personal changes to generated files (such as a Visual Studio solution) may not persist once this command is re-executed.
sad.sln
solution file in Visual Studio if vs2022
or vs2019
was your desired toolsetgmake2
, run the Makefiles in a terminalThe binaries and static libraries should be located in the Build/Bin
directory of the project. These can be run in a GUI using something like the Visual Studio Code Makefile Tools or can be run in the terminal.
bet.py
script from the terminal to build the project with the gmake2
or xcode4
toolsetsSimilar to the Windows installation, this step will have to be redone every time a change is made to a *premake5.lua*
file.
This will install a tool for premake to export compile commands for the current project if it is not yet installed. These will provide intellisense in projects without an IDE or configured compiler (ie: a default Visual Studio Code installation).
C/C++: Edit Configurations
)compile_commands/debug.json
(or another compile_commands/*.json
file for your desired configuration)The binaries and static libraries should be located in the Build/Bin
directory of the project. These can be run in a GUI using something like the Visual Studio Code Makefile Tools or can be run in the terminal.
Run this command inside of the main folder of the repository and it will pull all changes in the repo, as well as changes in the submodules.
It is recommended that you run this command often when you start working on the repo after cloning it.
This project is setup to use Catch2 for unit and integration testing. Running tests is also tied into the bet scripting pipeline.
Tests
project using Visual Studio, msbuild (might have to be manually added to your system's environment variables), or make with respect to your desired toolsetbet.py
script with the --tests
flag enabled in a terminalNote: Alternatively the --compile-tests
flag can be used to compile the tests with a particular toolchain and then run the testbed (basically steps 1/2 combined).
After running the script you should see some output similar to the following...
Here are some errors people have run into while working on the project or attempting to build the project.
You are able to build the solution file, but the build fails, and this is in the output log.
Solution: Update your Visual Studio. You are most likely using an outdated version.
You run into some sort of GL Error while attempting to build the project.
Solution: Your graphics card may be outdated, in this case, you may need to lower the GL version locally in order to run the project.