This repository contains third-party libraries that are needed to build BZFlag on Windows using Visual C++.
Here is a list of the upstream source locations:
- c-ares
- libcurl
- PDCurses
- regex - Looks like it was some version from NetBSD. Haven't yet found the ideal location to pull a new version from, so I'm using what we had.
- SDL2
- zlib
A batch file to build for Visual C++ 2017 is provided. Run the buildVC2017.bat file and it should build the libraries. Output will go into a folder such as output-release-x86. Run a 'git clean -x -f -d' before switching between Visual C++ versions.
Create an environment variable called BZ_DEPS that points to the directory that the output directories are contained within. For instance, if output-release-x86 is at 'D:\bzflag-dependencies\output-release-x86', then BZ_DEPS should be 'D:\bzflag-dependencies'.
When new versions of these dependencies are released, we should update our copies. There are two ways this is accomplished in this repository. For libpng and zlib, which have properly tagged git repositories, this is done with the git subtree
command. Replace TAG with the tag you wish to pull.
git subtree pull --prefix src/zlib https://github.com/madler/zlib TAG --squash
For the others, just delete the contents and replace with the new contents of the source tars.