Update the libgit2 modulemap to avoid "does not include header" warnings

Also, use symlinks to enable cleaner path strings in the modulemap.
This commit is contained in:
Matt Rubin 2016-12-13 05:15:47 -05:00
parent c2535ace3f
commit d4e2413e50
3 changed files with 20 additions and 3 deletions

1
libgit2/git2 Symbolic link
View File

@ -0,0 +1 @@
../External/libgit2/include/git2

1
libgit2/git2.h Symbolic link
View File

@ -0,0 +1 @@
../External/libgit2/include/git2.h

View File

@ -1,6 +1,21 @@
module libgit2 {
umbrella header "../External/libgit2/include/git2.h"
umbrella header "git2.h"
export *
module * { export * }
// Exclude headers intended only for Microsoft compilers
exclude header "git2/inttypes.h"
exclude header "git2/stdint.h"
// Explicit modules for headers not included in the umbrella header:
explicit module cred_helpers {
header "git2/cred_helpers.h"
}
explicit module trace {
header "git2/trace.h"
}
// Explicit module for the "sys" headers:
explicit module sys {
umbrella "git2/sys"
}
}