Right now I'm using: ninja -t targets all > targets.out
It returns something like this:
cmake_order_depends_target_ZZZ: phony
zzz/CMakeFiles/ZZZ.dir/src/File1.cpp.o: CXX_COMPILER__ZZZ
zzz/CMakeFiles/ZZZ.dir/src/File2.cpp.o: CXX_COMPILER__ZZZ
zzz/CMakeFiles/ZZZ.dir/src/File3.cpp.o: CXX_COMPILER__ZZZ
After that I'm parsing it with python script to create map source file -> original target
But how to understand that target ZZZ depends on target YYY and that target XXX depends on ZZZ itself?
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ninja-build...@googlegroups.com.
Here's another approach that might work for you.
For each test, add a build rule like:
build test1.stamp: test1.exe
cmd = $in && touch $out
And then one to gather them:
build tests: phony test1.stamp
And now "ninja tests" will build and run all modified tests.
To unsubscribe from this group and stop receiving emails from it, send an email to ninja-build+unsubscribe@googlegroups.com.
--