| 3:06 PM (1 hour ago) | Reply to all | ||
To clarify, I don't mean replicating the complete source tree (by copying (or linking?) source files), just the folders.More specifically, my question is about how object files end up organized in the build directory. I think CMake replicates the sources' folder structure.I fiddled a little with gn too and noticed that it seems to replicate the source's path in the object's name, which is an interesting approach and I think I'm going to follow it.Thank you!
--
You received this message because you are subscribed to the Google Groups "ninja-build" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ninja-build...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ninja-build/250bee04-0b3f-4fe0-93cd-6365bcb53ec1n%40googlegroups.com.
For example, how would one replicate the directory tree of the sources in the build directory? My idea at the moment is to add a "mkdir" rule to create directories and then for each source file add the base directory as an implicit dependencies. Is there a more idiomatic way to do so, or is it one of the responsibilities left out for higher level layers?