The zlib dependency includes "common.h" inside of the "zconf.h" header to make available some type declarations like e.g. git_off_t. Including the "common.h" header does pull in quite a lot of other headers though, which are not required at all. Instead, we can just include our public "git2/types.h" header, which is much more limited in its scope but still provides everything required for "zconf.h". This fix eases the transition later on to use a separate "features.h" header instead of defines. As we have to generate the "features.h" header, we put it in the build directory and add an include directory. As we are splitting out building of dependencies into subdirectories, this would mean that the zlib dependency needs to be aware of the parent project's build directory, which is unfortunate. By including "git2/types.h", we avoid this problem.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
adler32.c | Loading commit data... | |
crc32.c | Loading commit data... | |
crc32.h | Loading commit data... | |
deflate.c | Loading commit data... | |
deflate.h | Loading commit data... | |
infback.c | Loading commit data... | |
inffast.c | Loading commit data... | |
inffast.h | Loading commit data... | |
inffixed.h | Loading commit data... | |
inflate.c | Loading commit data... | |
inflate.h | Loading commit data... | |
inftrees.c | Loading commit data... | |
inftrees.h | Loading commit data... | |
trees.c | Loading commit data... | |
trees.h | Loading commit data... | |
zconf.h | Loading commit data... | |
zlib.h | Loading commit data... | |
zutil.c | Loading commit data... | |
zutil.h | Loading commit data... |