OLD | NEW |
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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 "Expansion of {{bundle_resources_dir}} in create_bundle.\n" | 601 "Expansion of {{bundle_resources_dir}} in create_bundle.\n" |
602 "\n" | 602 "\n" |
603 " A string corresponding to a path in $root_build_dir.\n" | 603 " A string corresponding to a path in $root_build_dir.\n" |
604 "\n" | 604 "\n" |
605 " This string is used by the \"create_bundle\" target to expand the\n" | 605 " This string is used by the \"create_bundle\" target to expand the\n" |
606 " {{bundle_resources_dir}} of the \"bundle_data\" target it depends on.\n" | 606 " {{bundle_resources_dir}} of the \"bundle_data\" target it depends on.\n" |
607 " This must correspond to a path under \"bundle_root_dir\".\n" | 607 " This must correspond to a path under \"bundle_root_dir\".\n" |
608 "\n" | 608 "\n" |
609 " See \"gn help bundle_root_dir\" for examples.\n"; | 609 " See \"gn help bundle_root_dir\" for examples.\n"; |
610 | 610 |
| 611 const char kBundleDepsFilter[] = "bundle_deps_filter"; |
| 612 const char kBundleDepsFilter_HelpShort[] = |
| 613 "bundle_deps_filter: [label list] A list of labels that are filtered out."; |
| 614 const char kBundleDepsFilter_Help[] = |
| 615 "bundle_deps_filter: [label list] A list of labels that are filtered out.\n" |
| 616 "\n" |
| 617 " A list of target labels.\n" |
| 618 "\n" |
| 619 " This list contains target label patterns that should be filtered out\n" |
| 620 " when creating the bundle. Any target matching one of those label will\n" |
| 621 " be removed from the dependencies of the create_bundle target.\n" |
| 622 "\n" |
| 623 " This is mostly useful when creating application extension bundle as\n" |
| 624 " the application extension has access to runtime resources from the\n" |
| 625 " application bundle and thus do not require a second copy.\n" |
| 626 "\n" |
| 627 " See \"gn help create_bundle\" for more information.\n" |
| 628 "\n" |
| 629 "Example\n" |
| 630 "\n" |
| 631 " create_bundle(\"today_extension\") {\n" |
| 632 " deps = [\n" |
| 633 " \"//base\"\n" |
| 634 " ]\n" |
| 635 " bundle_root_dir = \"$root_out_dir/today_extension.appex\"\n" |
| 636 " bundle_deps_filter = [\n" |
| 637 " # The extension uses //base but does not use any function calling\n" |
| 638 " # into third_party/icu and thus does not need the icudtl.dat file.\n" |
| 639 " \"//third_party/icu:icudata\",\n" |
| 640 " ]\n" |
| 641 " }\n"; |
| 642 |
611 const char kBundleExecutableDir[] = "bundle_executable_dir"; | 643 const char kBundleExecutableDir[] = "bundle_executable_dir"; |
612 const char kBundleExecutableDir_HelpShort[] = | 644 const char kBundleExecutableDir_HelpShort[] = |
613 "bundle_executable_dir: " | 645 "bundle_executable_dir: " |
614 "Expansion of {{bundle_executable_dir}} in create_bundle"; | 646 "Expansion of {{bundle_executable_dir}} in create_bundle"; |
615 const char kBundleExecutableDir_Help[] = | 647 const char kBundleExecutableDir_Help[] = |
616 "bundle_executable_dir: " | 648 "bundle_executable_dir: " |
617 "Expansion of {{bundle_executable_dir}} in create_bundle.\n" | 649 "Expansion of {{bundle_executable_dir}} in create_bundle.\n" |
618 "\n" | 650 "\n" |
619 " A string corresponding to a path in $root_build_dir.\n" | 651 " A string corresponding to a path in $root_build_dir.\n" |
620 "\n" | 652 "\n" |
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1804 static VariableInfoMap info_map; | 1836 static VariableInfoMap info_map; |
1805 if (info_map.empty()) { | 1837 if (info_map.empty()) { |
1806 INSERT_VARIABLE(AllDependentConfigs) | 1838 INSERT_VARIABLE(AllDependentConfigs) |
1807 INSERT_VARIABLE(AllowCircularIncludesFrom) | 1839 INSERT_VARIABLE(AllowCircularIncludesFrom) |
1808 INSERT_VARIABLE(Arflags) | 1840 INSERT_VARIABLE(Arflags) |
1809 INSERT_VARIABLE(Args) | 1841 INSERT_VARIABLE(Args) |
1810 INSERT_VARIABLE(Asmflags) | 1842 INSERT_VARIABLE(Asmflags) |
1811 INSERT_VARIABLE(AssertNoDeps) | 1843 INSERT_VARIABLE(AssertNoDeps) |
1812 INSERT_VARIABLE(BundleRootDir) | 1844 INSERT_VARIABLE(BundleRootDir) |
1813 INSERT_VARIABLE(BundleResourcesDir) | 1845 INSERT_VARIABLE(BundleResourcesDir) |
| 1846 INSERT_VARIABLE(BundleDepsFilter) |
1814 INSERT_VARIABLE(BundleExecutableDir) | 1847 INSERT_VARIABLE(BundleExecutableDir) |
1815 INSERT_VARIABLE(BundlePlugInsDir) | 1848 INSERT_VARIABLE(BundlePlugInsDir) |
1816 INSERT_VARIABLE(Cflags) | 1849 INSERT_VARIABLE(Cflags) |
1817 INSERT_VARIABLE(CflagsC) | 1850 INSERT_VARIABLE(CflagsC) |
1818 INSERT_VARIABLE(CflagsCC) | 1851 INSERT_VARIABLE(CflagsCC) |
1819 INSERT_VARIABLE(CflagsObjC) | 1852 INSERT_VARIABLE(CflagsObjC) |
1820 INSERT_VARIABLE(CflagsObjCC) | 1853 INSERT_VARIABLE(CflagsObjCC) |
1821 INSERT_VARIABLE(CheckIncludes) | 1854 INSERT_VARIABLE(CheckIncludes) |
1822 INSERT_VARIABLE(CodeSigningArgs) | 1855 INSERT_VARIABLE(CodeSigningArgs) |
1823 INSERT_VARIABLE(CodeSigningScript) | 1856 INSERT_VARIABLE(CodeSigningScript) |
(...skipping 29 matching lines...) Expand all Loading... |
1853 INSERT_VARIABLE(Testonly) | 1886 INSERT_VARIABLE(Testonly) |
1854 INSERT_VARIABLE(Visibility) | 1887 INSERT_VARIABLE(Visibility) |
1855 INSERT_VARIABLE(WriteRuntimeDeps) | 1888 INSERT_VARIABLE(WriteRuntimeDeps) |
1856 } | 1889 } |
1857 return info_map; | 1890 return info_map; |
1858 } | 1891 } |
1859 | 1892 |
1860 #undef INSERT_VARIABLE | 1893 #undef INSERT_VARIABLE |
1861 | 1894 |
1862 } // namespace variables | 1895 } // namespace variables |
OLD | NEW |