- CMake 3.18+
- Git with network access for recursive FetchContent/submodule checkout
- Python 3 with
venvsupport - Vulkan SDK
- LuaRocks
- A C++20 compiler
- Install the Vulkan SDK and make sure
VULKAN_SDKpoints to the valid SDKmacOSdirectory. - Install LuaRocks and make sure
luarocksis available onPATH. - CMake creates a build-local Python virtual environment at
build/python-venvand installstree-sitter,tree-sitter-cpp, andPyYAMLinto it. - Boost is fetched from the Boost Git superproject with recursive submodules enabled. Make sure Git can fetch submodules from GitHub during CMake configure.
- LuaJIT is built with
make. IfCMAKE_OSX_DEPLOYMENT_TARGETis not set, the build defaultsMACOSX_DEPLOYMENT_TARGETto11.0.
- Windows: MSVC
- Macos: Clang 12+
mkdir buildcd buildcmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..cmake --build . --target WeilanEngineEditor -j12
If you are on Apple Silicon you need to disable KTX Software's SSE by setting -DBASISU_SUPPORT_SSE=OFF.
Example:
cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBASISU_SUPPORT_SSE=OFF
cmake --build build --config RelWithDebInfo --target WeilanEngineEditor -j12Once you build the engine, execute WeilanEngineEditor.exe with --project argument. Make sure the root path is the source path
cd .\WeilanEngine
.\build\RelWithDebInfo\WeilanEngineEditor --project "A/Existing/Path/To/An/Empty/Folder"