This aims to have everything one needs to build file on windows with visual studio.
git submodule update --init --recursive- regex: I am using PCRE2 version 10.30.
Unfortunately this is not available on github with tags, so I committed it in this repo.
I copied 
pcre2posix.htoregex.h. - dirent: Dirent is not available on windows, so I used a implementation from tronkko.
 - getopt: A similar problem exists with getopt, so I used a implementation from skandhurkat.
 
- all the dependencies are statically linked or compiled into the dll
 - There is a 
.deffile in windows headers describing the exports for the linker - Since dirent defines some of the symbols used in files 
readelf.candmagic.cthe include is "patched" into them in theCMakeLists.txt 
- Checkout the version in the 
filesubmodule. - Update 
CMakeLists.txt - Update 
appveyor.yml 
- I disabled the test in the 
CMakeFile.txtmanually, the rest is vanilla.