We've switched to using ninja to do our builds, which defaults to reading
the depfile into it's database, then deleting it. You can either keep the
depfile:
NINJA_ARGS="-d keepdepfile" m ...
Or just ask ninja what the deps are for a specific file: (NINJA_EXTRA_ARGS
has to be empty as a workaround in this case)
NINJA_ARGS= "-t deps out/...o" m NINJA_EXTRA_ARGS=
You can also see some of the other ninja tools and debug modes that are
useful with -d/-t list:
ninja subtools:
browse browse dependency graph in a web browser
clean clean built files
commands list all commands required to rebuild given targets
deps show dependencies stored in the deps log
graph output graphviz dot file for targets
query show inputs/outputs for a path
targets list targets by their rule or depth in the DAG
compdb dump JSON compilation database to stdout
recompact recompacts ninja-internal data structures
debugging modes:
stats print operation counts/timing info
explain explain what caused a command to execute
keepdepfile don't delete depfiles after they're read by ninja
keeprsp don't delete @response files on success
multiple modes can be enabled via -d FOO -d BAR
On Thu, Sep 1, 2016 at 7:05 AM Chih-Wei Huang <[email protected]>
wrote:
> Hi,
> Anyone knows why Android 7.0 build system doesn't generate
> the .P file, the dependency file of the .o to be included?
> Without the .P file it's hard to debug the dependency issue.
> Or any alternative way to check the dependency of the .o in Android 7.0?
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
--
You received this message because you are subscribed to the "Android Building"
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.