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

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

Issue 1842563006: DO NOT SUBMIT. Experimental Mac GN Framework support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Binary bundle data Created 4 years, 8 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') | ui/base/BUILD.gn » ('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/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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 "\n" 466 "\n"
467 " executable(\"doom_melon\") {\n" 467 " executable(\"doom_melon\") {\n"
468 " deps = [ \"//foo:bar\" ]\n" 468 " deps = [ \"//foo:bar\" ]\n"
469 " ...\n" 469 " ...\n"
470 " assert_no_deps = [\n" 470 " assert_no_deps = [\n"
471 " \"//evil/*\", # Don't link any code from the evil directory.\n" 471 " \"//evil/*\", # Don't link any code from the evil directory.\n"
472 " \"//foo:test_support\", # This target is also disallowed.\n" 472 " \"//foo:test_support\", # This target is also disallowed.\n"
473 " ]\n" 473 " ]\n"
474 " }\n"; 474 " }\n";
475 475
476 extern const char kBinaryCompress[] = "binary_compress";
477 extern const char kBinaryCompress_HelpShort[] =
478 "binary_compress: Process the bundle_data with binary compression.";
479 extern const char kBinaryCompress_Help[] =
480 "binary_compress: Process the bundle_data with binary compression.\n"
481 "\n"
482 " A boolean to indicate whether the bundle_data sources should be\n"
483 " processed into binary data. This applies to .strings files and\n"
484 " .plist files.";
485
476 const char kBundleRootDir[] = "bundle_root_dir"; 486 const char kBundleRootDir[] = "bundle_root_dir";
477 const char kBundleRootDir_HelpShort[] = 487 const char kBundleRootDir_HelpShort[] =
478 "bundle_root_dir: Expansion of {{bundle_root_dir}} in create_bundle."; 488 "bundle_root_dir: Expansion of {{bundle_root_dir}} in create_bundle.";
479 const char kBundleRootDir_Help[] = 489 const char kBundleRootDir_Help[] =
480 "bundle_root_dir: Expansion of {{bundle_root_dir}} in create_bundle.\n" 490 "bundle_root_dir: Expansion of {{bundle_root_dir}} in create_bundle.\n"
481 "\n" 491 "\n"
482 " A string corresponding to a path in root_build_dir.\n" 492 " A string corresponding to a path in root_build_dir.\n"
483 "\n" 493 "\n"
484 " This string is used by the \"create_bundle\" target to expand the\n" 494 " This string is used by the \"create_bundle\" target to expand the\n"
485 " {{bundle_root_dir}} of the \"bundle_data\" target it depends on.\n" 495 " {{bundle_root_dir}} of the \"bundle_data\" target it depends on.\n"
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after
1553 } 1563 }
1554 1564
1555 const VariableInfoMap& GetTargetVariables() { 1565 const VariableInfoMap& GetTargetVariables() {
1556 static VariableInfoMap info_map; 1566 static VariableInfoMap info_map;
1557 if (info_map.empty()) { 1567 if (info_map.empty()) {
1558 INSERT_VARIABLE(AllDependentConfigs) 1568 INSERT_VARIABLE(AllDependentConfigs)
1559 INSERT_VARIABLE(AllowCircularIncludesFrom) 1569 INSERT_VARIABLE(AllowCircularIncludesFrom)
1560 INSERT_VARIABLE(Args) 1570 INSERT_VARIABLE(Args)
1561 INSERT_VARIABLE(Asmflags) 1571 INSERT_VARIABLE(Asmflags)
1562 INSERT_VARIABLE(AssertNoDeps) 1572 INSERT_VARIABLE(AssertNoDeps)
1573 INSERT_VARIABLE(BinaryCompress);
1563 INSERT_VARIABLE(BundleRootDir) 1574 INSERT_VARIABLE(BundleRootDir)
1564 INSERT_VARIABLE(BundleResourcesDir) 1575 INSERT_VARIABLE(BundleResourcesDir)
1565 INSERT_VARIABLE(BundleExecutableDir) 1576 INSERT_VARIABLE(BundleExecutableDir)
1566 INSERT_VARIABLE(BundlePlugInsDir) 1577 INSERT_VARIABLE(BundlePlugInsDir)
1567 INSERT_VARIABLE(Cflags) 1578 INSERT_VARIABLE(Cflags)
1568 INSERT_VARIABLE(CflagsC) 1579 INSERT_VARIABLE(CflagsC)
1569 INSERT_VARIABLE(CflagsCC) 1580 INSERT_VARIABLE(CflagsCC)
1570 INSERT_VARIABLE(CflagsObjC) 1581 INSERT_VARIABLE(CflagsObjC)
1571 INSERT_VARIABLE(CflagsObjCC) 1582 INSERT_VARIABLE(CflagsObjCC)
1572 INSERT_VARIABLE(CheckIncludes) 1583 INSERT_VARIABLE(CheckIncludes)
(...skipping 23 matching lines...) Expand all
1596 INSERT_VARIABLE(Sources) 1607 INSERT_VARIABLE(Sources)
1597 INSERT_VARIABLE(Testonly) 1608 INSERT_VARIABLE(Testonly)
1598 INSERT_VARIABLE(Visibility) 1609 INSERT_VARIABLE(Visibility)
1599 } 1610 }
1600 return info_map; 1611 return info_map;
1601 } 1612 }
1602 1613
1603 #undef INSERT_VARIABLE 1614 #undef INSERT_VARIABLE
1604 1615
1605 } // namespace variables 1616 } // namespace variables
OLDNEW
« no previous file with comments | « tools/gn/variables.h ('k') | ui/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698