• dpranke's avatar
    Adjust the visibility of the standalone targets in the GN build. · 978acb8d
    dpranke authored
    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}
    978acb8d
BUILD.gn 46.1 KB