Add export and inferred submodule declarations to the libgit2 modulemap

This commit is contained in:
Matt Rubin 2016-12-13 23:31:31 -05:00
parent a4072adf1e
commit d1b72d059d

View File

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