Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 2.47 KB

BuildingOnWindows.md

File metadata and controls

54 lines (39 loc) · 2.47 KB

Building on Windows

Prerequisites

  1. Install the following tools and dependencies:

  2. 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 and PackageListPython.txt.

    • If Python is already installed:
      python.exe Scripts\install.py [--upgrade]
    • If Python is not installed:
      powershell.exe -ExecutionPolicy Bypass -File Scripts\Install\InstallWindows.ps1 [-upgrade]

    Use the --upgrade switch (Python), or the -upgrade switch (PowerShell) to refresh packages at a later date.

  3. 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's vcvarsall.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. Run cmake --help to choose a suitable generator that best matches the Visual Studio version installed earlier.

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