Build for Windows
Get Qt
Get a static build of Qt made built in our CI.
Unzip the folder and remember the location for the configure step.
Conda
Have miniconda installed.
Open Powershell and run Conda
conda init
You may need to enable powershell scripts.. You can call Set-ExecutionPolicy -ExecutionPolicy Unrestricted
For the setup you need to use powershell.
$ conda env create -f env-windows.yml
$ conda activate vpn
# Download the Windows SDK using Xwin
$ ./scripts/windows/conda-setup-xwin-sdk.ps1
# Setup the conda env to use a prebuild Qt from Moz-CI
$ ./scripts/windows/conda_setup_win_qt.ps1
# Reactivate the env to apply the changes:
$ conda deactivate
$ conda activate vpn
Build
Make the build directory
mkdir build
Configure
cmake -S . -B build -GNinja
Compile
cmake --build build