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

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

Issue 2023003006: [Mac/iOS/GN] Document the new rules for create_bundle and runtime_deps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/functions_target.cc ('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 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 " GN doesn't require data files to exist at build-time. So actions that\n" 805 " GN doesn't require data files to exist at build-time. So actions that\n"
806 " produce files that are in turn runtime dependencies can list those\n" 806 " produce files that are in turn runtime dependencies can list those\n"
807 " generated files both in the \"outputs\" list as well as the \"data\"\n" 807 " generated files both in the \"outputs\" list as well as the \"data\"\n"
808 " list.\n" 808 " list.\n"
809 "\n" 809 "\n"
810 " By convention, directories are listed with a trailing slash:\n" 810 " By convention, directories are listed with a trailing slash:\n"
811 " data = [ \"test/data/\" ]\n" 811 " data = [ \"test/data/\" ]\n"
812 " However, no verification is done on these so GN doesn't enforce this.\n" 812 " However, no verification is done on these so GN doesn't enforce this.\n"
813 " The paths are just rebased and passed along when requested.\n" 813 " The paths are just rebased and passed along when requested.\n"
814 "\n" 814 "\n"
815 " Note: On iOS and OS X, create_bundle targets will not be recursed\n"
816 " into when gathering data. See \"gn help create_bundle\" for details.\n"
817 "\n"
815 " See \"gn help runtime_deps\" for how these are used.\n"; 818 " See \"gn help runtime_deps\" for how these are used.\n";
816 819
817 const char kDataDeps[] = "data_deps"; 820 const char kDataDeps[] = "data_deps";
818 const char kDataDeps_HelpShort[] = 821 const char kDataDeps_HelpShort[] =
819 "data_deps: [label list] Non-linked dependencies."; 822 "data_deps: [label list] Non-linked dependencies.";
820 const char kDataDeps_Help[] = 823 const char kDataDeps_Help[] =
821 "data_deps: Non-linked dependencies.\n" 824 "data_deps: Non-linked dependencies.\n"
822 "\n" 825 "\n"
823 " A list of target labels.\n" 826 " A list of target labels.\n"
824 "\n" 827 "\n"
825 " Specifies dependencies of a target that are not actually linked into\n" 828 " Specifies dependencies of a target that are not actually linked into\n"
826 " the current target. Such dependencies will be built and will be\n" 829 " the current target. Such dependencies will be built and will be\n"
827 " available at runtime.\n" 830 " available at runtime.\n"
828 "\n" 831 "\n"
829 " This is normally used for things like plugins or helper programs that\n" 832 " This is normally used for things like plugins or helper programs that\n"
830 " a target needs at runtime.\n" 833 " a target needs at runtime.\n"
831 "\n" 834 "\n"
835 " Note: On iOS and OS X, create_bundle targets will not be recursed\n"
836 " into when gathering data_deps. See \"gn help create_bundle\" for\n"
837 " details.\n"
838 "\n"
832 " See also \"gn help deps\" and \"gn help data\".\n" 839 " See also \"gn help deps\" and \"gn help data\".\n"
833 "\n" 840 "\n"
834 "Example\n" 841 "Example\n"
835 "\n" 842 "\n"
836 " executable(\"foo\") {\n" 843 " executable(\"foo\") {\n"
837 " deps = [ \"//base\" ]\n" 844 " deps = [ \"//base\" ]\n"
838 " data_deps = [ \"//plugins:my_runtime_plugin\" ]\n" 845 " data_deps = [ \"//plugins:my_runtime_plugin\" ]\n"
839 " }\n"; 846 " }\n";
840 847
841 const char kDefines[] = "defines"; 848 const char kDefines[] = "defines";
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
1721 INSERT_VARIABLE(Testonly) 1728 INSERT_VARIABLE(Testonly)
1722 INSERT_VARIABLE(Visibility) 1729 INSERT_VARIABLE(Visibility)
1723 INSERT_VARIABLE(WriteRuntimeDeps) 1730 INSERT_VARIABLE(WriteRuntimeDeps)
1724 } 1731 }
1725 return info_map; 1732 return info_map;
1726 } 1733 }
1727 1734
1728 #undef INSERT_VARIABLE 1735 #undef INSERT_VARIABLE
1729 1736
1730 } // namespace variables 1737 } // namespace variables
OLDNEW
« no previous file with comments | « tools/gn/functions_target.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698