Skip to content

Latest commit

 

History

History
83 lines (55 loc) · 1.38 KB

build-windows.md

File metadata and controls

83 lines (55 loc) · 1.38 KB

Build on Windows

Scripts are PowerShell

The project comes with a pre-configured Visual Studio Code workspace which uses cmake and ninja as a build system.

Setup

Make sure you have done the setup for Windows

Build with Ninja

This is the recommended way for building and working with the sample code.

Configure

. .\configure.ps1

Build

invoke build --type release

Clean

invoke clean --type release

Edit

Start Visual Studio Code. Make sure you install the recommended workspace extensions when asked.

code .

Build with Visual Studio

Generate Visual Studio 2017 project

new-item -Force -ItemType Directory ./vs2017
pushd ./vs2017
cmake cmake -G "Visual Studio 15 2017" -A x64 -DPLATFORM=x64 ..
popd  

Open the project in Visual Studio:

pushd ./vs2017 
start .\primo-avblocks-cpp.sln
popd

Generate Visual Studio 2019 project

new-item -Force -ItemType Directory ./vs2019
pushd ./vs2019
cmake cmake -G "Visual Studio 16 2019" -A x64 -DPLATFORM=x64 ..
popd  

Open the project in Visual Studio:

pushd ./vs2019 
start .\primo-avblocks-cpp.sln
popd

Build

In the Visual Studio menu select Build| Build Solution

Clean

In the Visual Studio menu select Build| Clean Solution