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

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

Issue 516703005: Remove built-in component and test targets from GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
11 const char kComponentMode[] = "component_mode";
12 const char kComponentMode_HelpShort[] =
13 "component_mode: [string] Specifies the meaning of the component() call.";
14 const char kComponentMode_Help[] =
15 "component_mode: Specifies the meaning of the component() call.\n"
16 "\n"
17 " This value is looked up whenever a \"component\" target type is\n"
18 " encountered. The value controls whether the given target is a shared\n"
19 " or a static library.\n"
20 "\n"
21 " The initial value will be empty, which will cause a call to\n"
22 " component() to throw an error. Typically this value will be set in the\n"
23 " build config script.\n"
24 "\n"
25 "Possible values:\n"
26 " - \"shared_library\"\n"
27 " - \"source_set\"\n"
28 " - \"static_library\"\n";
29
30 const char kCpuArch[] = "cpu_arch"; 11 const char kCpuArch[] = "cpu_arch";
31 const char kCpuArch_HelpShort[] = 12 const char kCpuArch_HelpShort[] =
32 "cpu_arch: [string] Current processor architecture."; 13 "cpu_arch: [string] Current processor architecture.";
33 const char kCpuArch_Help[] = 14 const char kCpuArch_Help[] =
34 "cpu_arch: Current processor architecture.\n" 15 "cpu_arch: Current processor architecture.\n"
35 "\n" 16 "\n"
36 " The initial value is based on the current architecture of the host\n" 17 " The initial value is based on the current architecture of the host\n"
37 " system. However, the build configuration can set this to any value.\n" 18 " system. However, the build configuration can set this to any value.\n"
38 "\n" 19 "\n"
39 " This value is not used internally by GN for any purpose, so you can\n" 20 " This value is not used internally by GN for any purpose, so you can\n"
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 819
839 #define INSERT_VARIABLE(var) \ 820 #define INSERT_VARIABLE(var) \
840 info_map[k##var] = VariableInfo(k##var##_HelpShort, k##var##_Help); 821 info_map[k##var] = VariableInfo(k##var##_HelpShort, k##var##_Help);
841 822
842 const VariableInfoMap& GetBuiltinVariables() { 823 const VariableInfoMap& GetBuiltinVariables() {
843 static VariableInfoMap info_map; 824 static VariableInfoMap info_map;
844 if (info_map.empty()) { 825 if (info_map.empty()) {
845 INSERT_VARIABLE(BuildCpuArch) 826 INSERT_VARIABLE(BuildCpuArch)
846 INSERT_VARIABLE(BuildOs) 827 INSERT_VARIABLE(BuildOs)
847 INSERT_VARIABLE(CpuArch) 828 INSERT_VARIABLE(CpuArch)
848 INSERT_VARIABLE(ComponentMode)
849 INSERT_VARIABLE(CurrentToolchain) 829 INSERT_VARIABLE(CurrentToolchain)
850 INSERT_VARIABLE(DefaultToolchain) 830 INSERT_VARIABLE(DefaultToolchain)
851 INSERT_VARIABLE(Os) 831 INSERT_VARIABLE(Os)
852 INSERT_VARIABLE(PythonPath) 832 INSERT_VARIABLE(PythonPath)
853 INSERT_VARIABLE(RootBuildDir) 833 INSERT_VARIABLE(RootBuildDir)
854 INSERT_VARIABLE(RootGenDir) 834 INSERT_VARIABLE(RootGenDir)
855 INSERT_VARIABLE(RootOutDir) 835 INSERT_VARIABLE(RootOutDir)
856 INSERT_VARIABLE(TargetGenDir) 836 INSERT_VARIABLE(TargetGenDir)
857 INSERT_VARIABLE(TargetOutDir) 837 INSERT_VARIABLE(TargetOutDir)
858 } 838 }
(...skipping 30 matching lines...) Expand all
889 INSERT_VARIABLE(Script) 869 INSERT_VARIABLE(Script)
890 INSERT_VARIABLE(Sources) 870 INSERT_VARIABLE(Sources)
891 INSERT_VARIABLE(Visibility) 871 INSERT_VARIABLE(Visibility)
892 } 872 }
893 return info_map; 873 return info_map;
894 } 874 }
895 875
896 #undef INSERT_VARIABLE 876 #undef INSERT_VARIABLE
897 877
898 } // namespace variables 878 } // 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