Adjust the visibility of the standalone targets in the GN build.
authordpranke <dpranke@chromium.org>
Tue, 5 May 2015 21:16:12 +0000 (14:16 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 5 May 2015 21:16:22 +0000 (21:16 +0000)
commit978acb8d5eff56d924fef6af63582ccf2497b437
tree1c6c6e4da17a8bae5853f050cc6348a6b03c4199
parentcf53fed972896bf23c037ce7ac9f8e1512463c62
Adjust the visibility of the standalone targets in the GN build.

As part of the migration from GYP->GN, we want to make sure that we
can track when new targets are added to either the GYP or GN builds
and that we are building everything we expect to build.

In GN, unlike GYP, if a build file gets referenced from other files,
building 'all' will cause every target to be built in it. This means in
particular, that we can end up trying to build targets that are not
necessarily intended to be visible to the rest of the build. To get
around this, any target that is defined but hidden (like 'v8_snapshot',
in V8's case) should still be visible to a top-level target called
"//:gn_visibility".

R=brettw@chromium.org, machenbach@chromium.org
BUG=461019
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#28243}
BUILD.gn