Is there a way in GN to determine which target generates an output file? This would be the opposite of gn outputs.
You can use `gn refs` for this by specifying the path of the output directory relative to the source root, for example if your build directory is out/Default (as with Chromium), then:
gn refs out/Default //out/Default/path/to/output/file
Would give you labels for targets that reference this (either as inputs or outputs though, there is no way to distinguish them as far as I know).
--
To unsubscribe from this group and stop receiving emails from it, send an email to gn-dev+un...@chromium.org.
Erik Smith
unread,
Feb 17, 2023, 10:32:27 AMFeb 17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message as abuse
Sign in to report message as abuse
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gn-dev, di...@google.com, gn-dev, Erik Smith
Ah it's clear now re-reading the gn refs doc, thanks.