Repository navigation
[FR] package-wide include directory #71
Description
Activity
- addedenhancementNew feature or requestNew feature or requestrequires schema changeAn issue that requires a schema change to fix.An issue that requires a schema change to fix.
on Feb 25, 2020 This is not critical; e.g. in ffmpeg, all consumers essentially link
libavutil. Therefore, we can put the headers underlibavutilmodule.There is another duplication problem with ffmpeg: currently, I have separate include directories for each ABI. It is not clear whether I can use one major include directory and only store ABI-dependent headers (very few) under
prefab/modules/libavutil/libs/anroid.x86etc. ?prefab/api/src/main/kotlin/com/google/prefab/api/PrebuiltLibrary.kt
Lines 35 to 43 in 5b576fb
/** * The path to the headers on disk. * * This is the path to the platform-specific include path if it exists. * Otherwise this is the path to the module's include path. */ val includePath: Path = directory.resolve("include").takeIf { it.toFile().exists() } ?: module.includePath Platform specific headers override module level headers rather than exposing two include directories. Going to fork off two more bugs for that: a schema change for supporting that, and a doc bug to clarify that behavior somewhere other than buried in the source :)
Some packages (ffmpeg, openssl) don't split up their headers by library and instead have one common include directory for all of their libraries. For these cases it would be nice to use a package-wide include directory rather than duplicating the headers into every module.