Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 2.12 KB

README.md

File metadata and controls

35 lines (25 loc) · 2.12 KB

winstng

winstng is a tool to build binary releases of Wt. It is used by Emweb to create binary releases on Windows, along with its dependencies.

winstng was originally created by Pau Garcia i Quiles for both Windows and Linux, but only the Windows building functionality is currently maintained by Emweb.

You can download the binary builds from the Wt releases page.

Usage instructions on Windows

Dependencies

  • NSIS. The nsis.exe executable must be installed in a location where CMake will find it. If NSIS is not installed in a standard location, you can add it to the path with set Path=C:\path\to\nsis;%Path%.
  • For generation of documentation:
  • An installation of Microsoft Visual Studio 2015 or later for Wt 4, or Microsoft Visual Studio 2010 or later for Wt 3.

Making a Wt build

These are the commands that Emweb uses to generate the Windows builds of Wt 4.

  1. Start a command prompt with Visual Studio tools, e.g. "x64 Native Tools Command Prompt for VS 2017".
  2. Navigate to the winstng source directory
    • To build a Wt release build:
      winst.bat wtversion x.y.z -G "NMake Makefiles" "-DSTANDALONE_ASIO=ON" (substitute x.y.z with the version of the Wt release)
    • To build a version of Wt from git:
      winst.bat git gitrepo https://github.com/emweb/wt.git wtversion x.y.z -G "NMake Makefiles" "-DSTANDALONE_ASIO=ON"
      Substitute x.y.z with the version of your choice. This has no effect on the used git commit, but changes the version number used in the name of the packages. You can also use "-DWTGITTAG=abcdef..." to build a specific commit or tag.
  3. cd build
  4. nmake.exe package: this will generate a .zip file and a .exe installer

The Wt 3 instructions are identical, but we can't build Wt 3 with standalone asio, so the "-DSTANDALONE_ASIO=ON" option is omitted.