mirror of
https://github.com/gosticks/SwiftGit2.git
synced 2025-10-16 11:55:34 +00:00
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:
parent
c2535ace3f
commit
d4e2413e50
1
libgit2/git2
Symbolic link
1
libgit2/git2
Symbolic link
@ -0,0 +1 @@
|
||||
../External/libgit2/include/git2
|
||||
1
libgit2/git2.h
Symbolic link
1
libgit2/git2.h
Symbolic link
@ -0,0 +1 @@
|
||||
../External/libgit2/include/git2.h
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user