Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: tools/gn/function_toolchain.cc

Issue 1868023002: Add GN output prefix override and allow empty output extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <algorithm> 5 #include <algorithm>
6 #include <limits> 6 #include <limits>
7 #include <utility> 7 #include <utility>
8 8
9 #include "tools/gn/err.h" 9 #include "tools/gn/err.h"
10 #include "tools/gn/functions.h" 10 #include "tools/gn/functions.h"
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 "\n" 527 "\n"
528 " output_prefix [string]\n" 528 " output_prefix [string]\n"
529 " Valid for: Linker tools (optional)\n" 529 " Valid for: Linker tools (optional)\n"
530 "\n" 530 "\n"
531 " Prefix to use for the output name. Defaults to empty. This\n" 531 " Prefix to use for the output name. Defaults to empty. This\n"
532 " prefix will be prepended to the name of the target (or the\n" 532 " prefix will be prepended to the name of the target (or the\n"
533 " output_name if one is manually specified for it) if the prefix\n" 533 " output_name if one is manually specified for it) if the prefix\n"
534 " is not already there. The result will show up in the\n" 534 " is not already there. The result will show up in the\n"
535 " {{output_name}} substitution pattern.\n" 535 " {{output_name}} substitution pattern.\n"
536 "\n" 536 "\n"
537 " Individual targets can opt-out of the output prefix by setting:\n"
538 " output_prefix_override = true\n"
539 " (see \"gn help output_prefix_override\").\n"
540 "\n"
537 " This is typically used to prepend \"lib\" to libraries on\n" 541 " This is typically used to prepend \"lib\" to libraries on\n"
538 " Posix systems:\n" 542 " Posix systems:\n"
539 " output_prefix = \"lib\"\n" 543 " output_prefix = \"lib\"\n"
540 "\n" 544 "\n"
541 " precompiled_header_type [string]\n" 545 " precompiled_header_type [string]\n"
542 " Valid for: \"cc\", \"cxx\", \"objc\", \"objcxx\"\n" 546 " Valid for: \"cc\", \"cxx\", \"objc\", \"objcxx\"\n"
543 "\n" 547 "\n"
544 " Type of precompiled headers. If undefined or the empty string,\n" 548 " Type of precompiled headers. If undefined or the empty string,\n"
545 " precompiled headers will not be used for this tool. Otherwise\n" 549 " precompiled headers will not be used for this tool. Otherwise\n"
546 " use \"gcc\" or \"msvc\".\n" 550 " use \"gcc\" or \"msvc\".\n"
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
1009 return Value(); 1013 return Value();
1010 1014
1011 Scope::KeyValueMap values; 1015 Scope::KeyValueMap values;
1012 block_scope.GetCurrentScopeValues(&values); 1016 block_scope.GetCurrentScopeValues(&values);
1013 toolchain->args() = values; 1017 toolchain->args() = values;
1014 1018
1015 return Value(); 1019 return Value();
1016 } 1020 }
1017 1021
1018 } // namespace functions 1022 } // namespace functions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698