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

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

Issue 1606553002: Add support for Mac/iOS application bundles to GN tool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split CL to only include tool change & address comments Created 4 years, 11 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 "args: [string list] Arguments passed to an action."; 384 "args: [string list] Arguments passed to an action.";
385 const char kArgs_Help[] = 385 const char kArgs_Help[] =
386 "args: Arguments passed to an action.\n" 386 "args: Arguments passed to an action.\n"
387 "\n" 387 "\n"
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 kBundleData[] = "bundle_data";
395 const char kBundleData_HelpShort[] =
396 "bundle_data: [file list] Runtime data dependency (Mac/iOS).";
397 const char kBundleData_Help[] =
398 "bundle_data: Runtime data dependency (Mac/iOS).\n"
399 "\n"
400 " List files that are required at runtime by the current target and\n"
401 " should be copied into the application bundle.\n"
402 "\n"
403 " See also \"gn help copy_bundle_data\".\n";
404
394 const char kCflags[] = "cflags"; 405 const char kCflags[] = "cflags";
395 const char kCflags_HelpShort[] = 406 const char kCflags_HelpShort[] =
396 "cflags: [string list] Flags passed to all C compiler variants."; 407 "cflags: [string list] Flags passed to all C compiler variants.";
397 const char kCommonCflagsHelp[] = 408 const char kCommonCflagsHelp[] =
398 "cflags*: Flags passed to the C compiler.\n" 409 "cflags*: Flags passed to the C compiler.\n"
399 "\n" 410 "\n"
400 " A list of strings.\n" 411 " A list of strings.\n"
401 "\n" 412 "\n"
402 " \"cflags\" are passed to all invocations of the C, C++, Objective C,\n" 413 " \"cflags\" are passed to all invocations of the C, C++, Objective C,\n"
403 " and Objective C++ compilers.\n" 414 " and Objective C++ compilers.\n"
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
1392 } 1403 }
1393 return info_map; 1404 return info_map;
1394 } 1405 }
1395 1406
1396 const VariableInfoMap& GetTargetVariables() { 1407 const VariableInfoMap& GetTargetVariables() {
1397 static VariableInfoMap info_map; 1408 static VariableInfoMap info_map;
1398 if (info_map.empty()) { 1409 if (info_map.empty()) {
1399 INSERT_VARIABLE(AllDependentConfigs) 1410 INSERT_VARIABLE(AllDependentConfigs)
1400 INSERT_VARIABLE(AllowCircularIncludesFrom) 1411 INSERT_VARIABLE(AllowCircularIncludesFrom)
1401 INSERT_VARIABLE(Args) 1412 INSERT_VARIABLE(Args)
1402 INSERT_VARIABLE(Asmflags) 1413 INSERT_VARIABLE(Asmflags)
brettw 2016/01/25 21:06:08 You need to add BundleData here so it will appear
sdefresne 2016/01/26 12:11:55 Done, thank you.
1403 INSERT_VARIABLE(Cflags) 1414 INSERT_VARIABLE(Cflags)
1404 INSERT_VARIABLE(CflagsC) 1415 INSERT_VARIABLE(CflagsC)
1405 INSERT_VARIABLE(CflagsCC) 1416 INSERT_VARIABLE(CflagsCC)
1406 INSERT_VARIABLE(CflagsObjC) 1417 INSERT_VARIABLE(CflagsObjC)
1407 INSERT_VARIABLE(CflagsObjCC) 1418 INSERT_VARIABLE(CflagsObjCC)
1408 INSERT_VARIABLE(CheckIncludes) 1419 INSERT_VARIABLE(CheckIncludes)
1409 INSERT_VARIABLE(CompleteStaticLib) 1420 INSERT_VARIABLE(CompleteStaticLib)
1410 INSERT_VARIABLE(Configs) 1421 INSERT_VARIABLE(Configs)
1411 INSERT_VARIABLE(Console) 1422 INSERT_VARIABLE(Console)
1412 INSERT_VARIABLE(Data) 1423 INSERT_VARIABLE(Data)
(...skipping 19 matching lines...) Expand all
1432 INSERT_VARIABLE(Sources) 1443 INSERT_VARIABLE(Sources)
1433 INSERT_VARIABLE(Testonly) 1444 INSERT_VARIABLE(Testonly)
1434 INSERT_VARIABLE(Visibility) 1445 INSERT_VARIABLE(Visibility)
1435 } 1446 }
1436 return info_map; 1447 return info_map;
1437 } 1448 }
1438 1449
1439 #undef INSERT_VARIABLE 1450 #undef INSERT_VARIABLE
1440 1451
1441 } // namespace variables 1452 } // 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