Make GN public configs apply libs to targets.

Previously, putting libs or lib_dirs in a config that a target exports as a public config would not result in those values getting applied to dependant targets.

This patch applies those to the targets how one would expect by resolving the public configs before the libs are copied. This involved splitting up pulling dependencies' information into a configs phase (which must happen before we update the libs on the target) and the libs phase (which must happen after so the dependencies' libs come after).

Clarify ordering in the help.

Review URL: https://codereview.chromium.org/1518663003

Cr-Original-Commit-Position: refs/heads/master@{#364749}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 567cb68891e32e2a398302b2b2405e4250ccc1d7
4 files changed
tree: 37bebaea0f94be126b96dc6128821522deac0c55
  1. tools/