You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases I write something like build objects(build/**/*): auto src/**/*.c | src/**/*.h which have makes problems : every source file depends on every header file, so if you change a header file all source files are recompiled.
Would be nice to figure out how to depend on header so we can add them to the generated ide projects.
The text was updated successfully, but these errors were encountered:
This is mostly needed for IDE project generation (CMake also requires you to add header files to target by yourself if you want them to end-up in ide project).
One idea - we can parse include dependencies from ninja itself, which should be awesome in a way, but kinda requires #154 and you need to build a project before you can generate ide project files ...
If you write it like this build objects(build/**/*): auto src/**/*.c || src/**/*.h then it works just fine because we already are using ninja deps feature. The only thing - it's not that obvious.
In some cases I write something like
build objects(build/**/*): auto src/**/*.c | src/**/*.h
which have makes problems : every source file depends on every header file, so if you change a header file all source files are recompiled.Would be nice to figure out how to depend on header so we can add them to the generated ide projects.
The text was updated successfully, but these errors were encountered: