2.5 KiB
Building on Windows
Prerequisites
-
Install the following tools and dependencies:
- Chocolatey
- Python 3
- Visual Studio 2019, select the following components:
- VS 2019 C++ x64/x86 build tools
- Windows 10 SDK
- WiX Toolset, install the following components:
- WiX Toolset Build Tools
- WiX Toolset Visual Studio 2019 Extension
- Qt 5, select the following components:
- Qt 5.12.9 / MSVC 2017 64-bit
-
Edit the
Scripts\config.txt
file and make sure the following variables are configured properly under the[Windows]
section:libQtPath
-- Full path to the Qt library, Visual C++, 64-bit build.vcvarsallPath
-- Full path to Visual Studio'svcvarsall.bat
command script. This sets the necessary compiler environment variables for building. See Microsoft C++ toolset documentation for details.cmakeGenerator
-- Specifies the generator setting for cmake. Runcmake --help
to choose a suitable generator that best matches the Visual Studio version installed earlier.
-
Run the installer script to configure additional dependencies, as noted below. If you wish to examine what packages will be installed, see package lists
PackageListChoco.config
andPackageListPython.txt
.- If Python is already installed:
python.exe Scripts\install.py [--upgrade]
- If Python is not installed:
powershell.exe -File Scripts\Install\InstallWindows.ps1 [-upgrade]
Use the
--upgrade
switch (Python), or the-upgrade
switch (PowerShell) to refresh packages at a later date. - If Python is already installed:
Building
Build the project with the following Python script. Packages will be copied into the Binaries
directory.
python.exe Scripts\build.py
To build a specific version of the product, supply the appropriate tag name (or commit hash) as an argument:
python.exe Scripts\build.py --checkout 1.13.1.3-snapshot
Similarly, one can clean the project, which resets Git repositories to a clean state:
python.exe Scripts\clean.py