Improve GN duplicate name error.

Improve messaging when two targets generate the same output.

Previous message:
  ERROR Duplicate rules for libfoo.so.TOC

New message:
  ERROR at //BUILD.gn:24:1: Duplicate output file.
  shared_library("b456") {
  ^-----------------------
  Two or more targets generate the same output:
    libfoo.so.TOC
  This is normally the result of either overriding the output name or
  having two shared libraries or executables in different directories
  with the same name (since all such targets will be written to the root
  output directory).

  Collisions:
    //:b456
    //:a123

  See //BUILD.gn:21:1: Collision.
  shared_library("a123") {
  ^-----------------------

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

Cr-Original-Commit-Position: refs/heads/master@{#349521}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: bfd2deab3b5c8dea29671662116081a3878687a4
1 file changed
tree: 164cd5eb5e1f1b574aa7205ad7d19240c3011bf0
  1. tools/