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

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

Issue 1361173004: [GN]: Add asmflags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« tools/gn/ninja_binary_target_writer.cc ('K') | « tools/gn/variables.h ('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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 " For action and action_foreach targets, args is the list of arguments\n" 388 " For action and action_foreach targets, args is the list of arguments\n"
389 " to pass to the script. Typically you would use source expansion (see\n" 389 " to pass to the script. Typically you would use source expansion (see\n"
390 " \"gn help source_expansion\") to insert the source file names.\n" 390 " \"gn help source_expansion\") to insert the source file names.\n"
391 "\n" 391 "\n"
392 " See also \"gn help action\" and \"gn help action_foreach\".\n"; 392 " See also \"gn help action\" and \"gn help action_foreach\".\n";
393 393
394 const char kCflags[] = "cflags"; 394 const char kCflags[] = "cflags";
395 const char kCflags_HelpShort[] = 395 const char kCflags_HelpShort[] =
396 "cflags: [string list] Flags passed to all C compiler variants."; 396 "cflags: [string list] Flags passed to all C compiler variants.";
397 const char kCommonCflagsHelp[] = 397 const char kCommonCflagsHelp[] =
398 "cflags*: Flags passed to the C compiler.\n" 398 "asmflags|cflags*: Flags passed to the C compiler.\n"
brettw 2015/09/24 18:30:09 I find this weird. Can you make a separate entry f
Bons 2015/09/24 19:41:54 Done.
399 "\n" 399 "\n"
400 " A list of strings.\n" 400 " A list of strings.\n"
401 "\n" 401 "\n"
402 " \"cflags\" are passed to all invocations of the C, C++, Objective C,\n" 402 " \"cflags\" are passed to all invocations of the C, C++, Objective C,\n"
403 " and Objective C++ compilers.\n" 403 " and Objective C++ compilers.\n"
404 "\n" 404 "\n"
405 " To target one of these variants individually, use \"cflags_c\",\n" 405 " To target one of these variants individually, use \"asmflags\",\n"
406 " \"cflags_cc\", \"cflags_objc\", and \"cflags_objcc\", respectively.\n" 406 " \"cflags_c\", \"cflags_cc\", \"cflags_objc\", and \"cflags_objcc\",\n"
407 " These variant-specific versions will be appended to the \"cflags\".\n" 407 " respectively.\n"
408 "\n"
409 " The variant-specific versions of cflags* will be appended to the\n"
410 " \"cflags\".\n"
408 COMMON_ORDERING_HELP; 411 COMMON_ORDERING_HELP;
409 const char* kCflags_Help = kCommonCflagsHelp; 412 const char* kCflags_Help = kCommonCflagsHelp;
410 413
414 const char kAsmflags[] = "asmflags";
415 const char kAsmflags_HelpShort[] =
416 "asmflags: [string list] Flags passed when compiling asm files.";
417 const char* kAsmflags_Help = kCommonCflagsHelp;
418
411 const char kCflagsC[] = "cflags_c"; 419 const char kCflagsC[] = "cflags_c";
412 const char kCflagsC_HelpShort[] = 420 const char kCflagsC_HelpShort[] =
413 "cflags_c: [string list] Flags passed to the C compiler."; 421 "cflags_c: [string list] Flags passed to the C compiler.";
414 const char* kCflagsC_Help = kCommonCflagsHelp; 422 const char* kCflagsC_Help = kCommonCflagsHelp;
415 423
416 const char kCflagsCC[] = "cflags_cc"; 424 const char kCflagsCC[] = "cflags_cc";
417 const char kCflagsCC_HelpShort[] = 425 const char kCflagsCC_HelpShort[] =
418 "cflags_cc: [string list] Flags passed to the C++ compiler."; 426 "cflags_cc: [string list] Flags passed to the C++ compiler.";
419 const char* kCflagsCC_Help = kCommonCflagsHelp; 427 const char* kCflagsCC_Help = kCommonCflagsHelp;
420 428
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 INSERT_VARIABLE(Sources) 1301 INSERT_VARIABLE(Sources)
1294 INSERT_VARIABLE(Testonly) 1302 INSERT_VARIABLE(Testonly)
1295 INSERT_VARIABLE(Visibility) 1303 INSERT_VARIABLE(Visibility)
1296 } 1304 }
1297 return info_map; 1305 return info_map;
1298 } 1306 }
1299 1307
1300 #undef INSERT_VARIABLE 1308 #undef INSERT_VARIABLE
1301 1309
1302 } // namespace variables 1310 } // namespace variables
OLDNEW
« tools/gn/ninja_binary_target_writer.cc ('K') | « tools/gn/variables.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698