BUILD-WINDOWS.txt 854 B

1234567891011121314151617
  1. This describes the supported build method for building for Windows.
  2. Build can only be done on Linux and the Nix package manager must be installed first.
  3. Install Nix from: http://nixos.org/nix/
  4. Then you need to checkout a slignely patched version of the Nix packages collections.
  5. This is needed because it has fixes enabling cross-compilation of NSPR and NSS to Windows.
  6. git clone -b cross-mingw-nss --single-branch https://github.com/ambrop72/nixpkgs
  7. It may be faster to download a zip from Github: https://github.com/ambrop72/nixpkgs/archive/cross-mingw-nss.zip
  8. Then you can build with the following command from the badvpn source directory:
  9. NIX_PATH=nixpkgs=<path-to-nixpkgs> nix-build build-win32.nix -A badvpnPkgs.badvpn -o <output-link-path>
  10. Upon success the chosen <output-link-path> will be a symlink to a directory with the build outputs.