Add GN output prefix override and allow empty output extensions.

Previously setting the output extension to an empty string would give the
default extension. This patch differentiates unset (default extension) from
set-to-empty-string (which can now mean "no extension").

A flag is added to out-out of the target output prefix application for targets
that don't want to have "lib" at the beginning on Posix systems. Even though
the flag might more naturally be called "override_output_prefix" I called it
"output_prefix_override" so that all of the output-name-related variables are
called "output_....".

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

Cr-Original-Commit-Position: refs/heads/master@{#385927}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 2a642a10300c49bcd33b6246e16650cf61a42d3b
13 files changed
tree: ffcc182aed4889ce6f552bb5ec93a813546f7e34
  1. tools/