google / prefab

Prefab is a tool for generating build system integrations for prebuilt C/C++ libraries.
https://google.github.io/prefab/
Apache License 2.0
209 stars 32 forks source link

[FR] ability to specify additive platform-specific headers rather than replacements #75

Open DanAlbert opened 4 years ago

DanAlbert commented 4 years ago

Platform-specific headers currently are used as a complete replacement for the module headers. Some libraries have a set of common headers and a set of platform-specific headers (ffmpeg, as an example: https://github.com/google/prefab/issues/71).

Adding an additive_platform_headers: true option to module.json or possibly an alternative directory name to the library directory would solve this.

alexcohn commented 4 years ago

This should be easy to achieve, by setting -I twice (and in right order).

I don't think there exists a compelling case for complete replacement as you have it today.