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

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

Issue 88813005: Support Mac frameworks in GN. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « tools/gn/secondary/base/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "tools/gn/variables.h" 5 #include "tools/gn/variables.h"
6 6
7 namespace variables { 7 namespace variables {
8 8
9 // Built-in variables ---------------------------------------------------------- 9 // Built-in variables ----------------------------------------------------------
10 10
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 "\n" 633 "\n"
634 " A list of strings.\n" 634 " A list of strings.\n"
635 "\n" 635 "\n"
636 " These files will be passed to the linker, which will generally search\n" 636 " These files will be passed to the linker, which will generally search\n"
637 " the library include path. Unlike a normal list of files, they will be\n" 637 " the library include path. Unlike a normal list of files, they will be\n"
638 " passed to the linker unmodified rather than being treated as file\n" 638 " passed to the linker unmodified rather than being treated as file\n"
639 " names relative to the current build file. Generally you would set\n" 639 " names relative to the current build file. Generally you would set\n"
640 " the \"lib_dirs\" so your library is found. If you need to specify\n" 640 " the \"lib_dirs\" so your library is found. If you need to specify\n"
641 " a path, you can use \"rebase_path\" to convert a path to be relative\n" 641 " a path, you can use \"rebase_path\" to convert a path to be relative\n"
642 " to the build directory.\n" 642 " to the build directory.\n"
643 "\n"
644 " When constructing the linker command, the \"lib_prefix\" attribute of\n"
645 " the linker tool in the current toolchain will be prepended to each\n"
646 " library. So your BUILD file should not specify the switch prefix\n"
647 " (like \"-l\"). On Mac, libraries ending in \".framework\" will be\n"
648 " special-cased: the switch \"-framework\" will be prepended instead of\n"
649 " the lib_prefix, and the \".framework\" suffix will be trimmed.\n"
643 COMMON_LIB_INHERITANCE_HELP 650 COMMON_LIB_INHERITANCE_HELP
644 "\n" 651 "\n"
645 "Examples:\n" 652 "Examples:\n"
646 " On Windows:\n" 653 " On Windows:\n"
647 " libs = [ \"ctl3d.lib\" ]\n" 654 " libs = [ \"ctl3d.lib\" ]\n"
648 " On Linux:\n" 655 " On Linux:\n"
649 " libs = [ \"ld\" ]\n"; 656 " libs = [ \"ld\" ]\n";
650 657
651 const char kOutputName[] = "output_name"; 658 const char kOutputName[] = "output_name";
652 const char kOutputName_HelpShort[] = 659 const char kOutputName_HelpShort[] =
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 INSERT_VARIABLE(Script) 822 INSERT_VARIABLE(Script)
816 INSERT_VARIABLE(SourcePrereqs) 823 INSERT_VARIABLE(SourcePrereqs)
817 INSERT_VARIABLE(Sources) 824 INSERT_VARIABLE(Sources)
818 } 825 }
819 return info_map; 826 return info_map;
820 } 827 }
821 828
822 #undef INSERT_VARIABLE 829 #undef INSERT_VARIABLE
823 830
824 } // namespace variables 831 } // namespace variables
OLDNEW
« no previous file with comments | « tools/gn/secondary/base/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698