Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 995 Bytes

BUILDING-WIN32.md

File metadata and controls

28 lines (22 loc) · 995 Bytes

Add subtrees

  • git remote add picojson https://github.com/kazuho/picojson
  • git subtree add --prefix lib/picojson picojson master

Install MSYS2.

Install dependencies

  • Open MSYS2 MSYS prompt (not MinGW 32-bit or 64-bit prompt!).
  • Refresh package database, and update packages (might need to close and restart shell after this)
pacman -Syu
  • Install build tools from repo:
pacman -S base-devel make cmake mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain mingw-w64-i686-cmake mingw-w64-x86_64-cmake 
  • Install library dependencies from repo:
pacman -S mingw-w64-x86_64-libzip mingw-w64-x86_64-boost mingw-w64-x86_64-MinHook
  • Close MSYS prompt, and open regular Windows command prompt.
  • Go to root directory of the repo, and run build.cmd.

The resulting binary will be in bin\Release, along with its runtime dependencies. To produce a debug build, do build.cmd -t Debug, and output will be in bin\Debug.