Skip to content

File and Libmagic build with Visual Studio

License

Notifications You must be signed in to change notification settings

ember91/file-windows

 
 

Repository files navigation

Build status

This aims to have everything one needs to build file on windows with visual studio.

Checkout with submodules

git submodule update --init --recursive

External Dependencies

  • 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.h to regex.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.

Linking

  • all the dependencies are statically linked or compiled into the dll
  • There is a .def file in windows headers describing the exports for the linker
  • Since dirent defines some of the symbols used in files readelf.c and magic.c the include is "patched" into them in the CMakeLists.txt

Updating file

  • Checkout the version in the file submodule.
  • Update CMakeLists.txt
  • Update appveyor.yml

Updating pcre2

  • I disabled the test in the CMakeFile.txt manually, the rest is vanilla.

About

File and Libmagic build with Visual Studio

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 60.0%
  • HTML 13.6%
  • Roff 12.2%
  • Shell 7.5%
  • Makefile 4.2%
  • M4 0.9%
  • Other 1.6%