docs: how a dependency's headers reach its consumers
The README's Dependencies section never said how a dependency's headers reach the projects built on it, so the fix's rule had nowhere to be stated: its directory and every include/ in its tree are on their include path, except under a directory named bin or build, and a header kept under one of those needs an -I of its own in cfg.compileFlags.
This commit is contained in:
parent
da714a0121
commit
7283610128
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ Run `crafter-build` in that directory, outputs land at `bin/myapp-<target>-<marc
|
|||
|
||||
Three kinds, all fetched/built incrementally:
|
||||
|
||||
**Cross-project Crafter sub-projects** — point `cfg.dependencies` at another `Configuration*`. Cross-project module imports (`import OtherProject;`) are tracked per-import: only the modules that actually import a changed dep rebuild.
|
||||
**Cross-project Crafter sub-projects** — point `cfg.dependencies` at another `Configuration*`. Cross-project module imports (`import OtherProject;`) are tracked per-import: only the modules that actually import a changed dep rebuild. A dependency's headers reach the C++ and C compiles of the projects built on it by themselves: its directory and every directory named `include` in its tree are on their include path, except those under a directory named `bin` or `build`, where builds leave their output. A header kept under one of those needs an `-I` of its own in the `cfg.compileFlags` of the projects that include it. A `cfg.cuda` source gets neither.
|
||||
|
||||
**External git+cmake deps** — for things like glslang. Declare in `cfg.externalDependencies`:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue