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

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: Brett’s comments Created 5 years, 3 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
« no previous file with comments | « 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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 "cflags*: Flags passed to the C compiler.\n"
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 \"cflags_c\",\n"
406 " \"cflags_cc\", \"cflags_objc\", and \"cflags_objcc\", respectively.\n" 406 " \"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 " These 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 to any assembly compiler.";
417 const char* kAsmflags_Help =
418 "asmflags: Flags passed to any assembly compiler.\n"
419 "\n"
420 " A list of strings.\n"
421 "\n"
422 " \"asmflags\" are passed to any invocation of a tool that takes an\n"
423 " .asm or .S file as input.\n";
424
411 const char kCflagsC[] = "cflags_c"; 425 const char kCflagsC[] = "cflags_c";
412 const char kCflagsC_HelpShort[] = 426 const char kCflagsC_HelpShort[] =
413 "cflags_c: [string list] Flags passed to the C compiler."; 427 "cflags_c: [string list] Flags passed to the C compiler.";
414 const char* kCflagsC_Help = kCommonCflagsHelp; 428 const char* kCflagsC_Help = kCommonCflagsHelp;
415 429
416 const char kCflagsCC[] = "cflags_cc"; 430 const char kCflagsCC[] = "cflags_cc";
417 const char kCflagsCC_HelpShort[] = 431 const char kCflagsCC_HelpShort[] =
418 "cflags_cc: [string list] Flags passed to the C++ compiler."; 432 "cflags_cc: [string list] Flags passed to the C++ compiler.";
419 const char* kCflagsCC_Help = kCommonCflagsHelp; 433 const char* kCflagsCC_Help = kCommonCflagsHelp;
420 434
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 INSERT_VARIABLE(Sources) 1307 INSERT_VARIABLE(Sources)
1294 INSERT_VARIABLE(Testonly) 1308 INSERT_VARIABLE(Testonly)
1295 INSERT_VARIABLE(Visibility) 1309 INSERT_VARIABLE(Visibility)
1296 } 1310 }
1297 return info_map; 1311 return info_map;
1298 } 1312 }
1299 1313
1300 #undef INSERT_VARIABLE 1314 #undef INSERT_VARIABLE
1301 1315
1302 } // namespace variables 1316 } // namespace variables
OLDNEW
« no previous file with comments | « tools/gn/variables.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698