Scripts are
PowerShell
The project comes with a pre-configured Visual Studio Code workspace which uses cmake
and ninja
as a build system.
Make sure you have done the setup for Windows
This is the recommended way for building and working with the sample code.
. .\configure.ps1
New-Item -Force -Path ./build/debug_x64 -ItemType Directory
pushd ./build/debug_x64
cmake --preset Debug_x64 -G 'Ninja' ../..
ninja
popd
New-Item -Force -Path ./build/debug_arm64 -ItemType Directory
pushd ./build/debug_arm64
cmake --preset Debug_arm64 -G 'Ninja' ../..
ninja
popd
pushd ./build/debug_x64
ninja clean
popd
pushd ./build/debug_arm64
ninja clean
popd
. .\configure.ps1
new-item -Force -ItemType Directory ./vs2022
pushd ./vs2022
# for AMD / Intel x64
cmake --preset Debug_x64 -G "Visual Studio 17 2022" ..
# for ARM arm64
cmake --preset Debug_arm64 -G "Visual Studio 17 2022" ..
popd
Open the project in Visual Studio:
pushd ./vs2022
start .\primoburner-cpp.sln
popd
In the Visual Studio menu select Build| Build Solution
In the Visual Studio menu select Build| Clean Solution