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

Side by Side Diff: tools/gn/function_toolchain.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 | « no previous file | tools/gn/ninja_binary_target_writer.cc » ('j') | 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/err.h" 5 #include "tools/gn/err.h"
6 #include "tools/gn/functions.h" 6 #include "tools/gn/functions.h"
7 #include "tools/gn/parse_tree.h" 7 #include "tools/gn/parse_tree.h"
8 #include "tools/gn/scheduler.h" 8 #include "tools/gn/scheduler.h"
9 #include "tools/gn/scope.h" 9 #include "tools/gn/scope.h"
10 #include "tools/gn/settings.h" 10 #include "tools/gn/settings.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 " prevent GN from doing variable expansion.\n" 144 " prevent GN from doing variable expansion.\n"
145 "\n" 145 "\n"
146 " command, depfile, deps, description, pool, restat, rspfile,\n" 146 " command, depfile, deps, description, pool, restat, rspfile,\n"
147 " rspfile_content\n" 147 " rspfile_content\n"
148 "\n" 148 "\n"
149 " Additionally, lib_prefix and lib_dir_prefix may be used for the link\n" 149 " Additionally, lib_prefix and lib_dir_prefix may be used for the link\n"
150 " tools. These strings will be prepended to the libraries and library\n" 150 " tools. These strings will be prepended to the libraries and library\n"
151 " search directories, respectively, because linkers differ on how to\n" 151 " search directories, respectively, because linkers differ on how to\n"
152 " specify them.\n" 152 " specify them.\n"
153 "\n" 153 "\n"
154 " Note: On Mac libraries with names ending in \".framework\" will be\n"
155 " added to the link like with a \"-framework\" switch and the lib prefix\n"
156 " will be ignored.\n"
157 "\n"
154 "Example:\n" 158 "Example:\n"
155 " toolchain(\"my_toolchain\") {\n" 159 " toolchain(\"my_toolchain\") {\n"
156 " # Put these at the top to apply to all tools below.\n" 160 " # Put these at the top to apply to all tools below.\n"
157 " lib_prefix = \"-l\"\n" 161 " lib_prefix = \"-l\"\n"
158 " lib_dir_prefix = \"-L\"\n" 162 " lib_dir_prefix = \"-L\"\n"
159 "\n" 163 "\n"
160 " tool(\"cc\") {\n" 164 " tool(\"cc\") {\n"
161 " command = \"gcc \\$in -o \\$out\"\n" 165 " command = \"gcc \\$in -o \\$out\"\n"
162 " description = \"GCC \\$in\"\n" 166 " description = \"GCC \\$in\"\n"
163 " }\n" 167 " }\n"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 return Value(); 292 return Value();
289 293
290 Scope::KeyValueMap values; 294 Scope::KeyValueMap values;
291 block_scope.GetCurrentScopeValues(&values); 295 block_scope.GetCurrentScopeValues(&values);
292 toolchain->args() = values; 296 toolchain->args() = values;
293 297
294 return Value(); 298 return Value();
295 } 299 }
296 300
297 } // namespace functions 301 } // namespace functions
OLDNEW
« no previous file with comments | « no previous file | tools/gn/ninja_binary_target_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698