include libmagic in windows installer

This is from https://raw.githubusercontent.com/datalad/datalad-extensions/master/resources/git-annex-magicBundle.patch
which was written by John Thorvald Wodder II.

I have converted line endings from windows, and fixed indentation to use
tabs.
This commit is contained in:
Joey Hess 2020-10-26 13:24:37 -04:00
parent f3070d2d7d
commit a7d11aa3ab
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 20 additions and 3 deletions

View file

@ -87,3 +87,17 @@ preferredBundledPrograms = catMaybes
ifset True s = Just s
ifset False _ = Nothing
#endif
magicDLLs :: [FilePath]
#ifdef mingw32_HOST_OS
magicDLLs = ["libmagic-1.dll", "libgnurx-0.dll"]
#else
magicDLLs = []
#endif
magicShare :: [FilePath]
#ifdef mingw32_HOST_OS
magicShare = ["magic.mgc"]
#else
magicShare = []
#endif