1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef TOOLS_GN_SWITCHES_H_
6 #define TOOLS_GN_SWITCHES_H_
10 #include "base/strings/string_piece.h"
16 SwitchInfo(const char* short_help
,
17 const char* long_help
);
19 const char* short_help
;
20 const char* long_help
;
23 typedef std::map
<base::StringPiece
, SwitchInfo
> SwitchInfoMap
;
25 // Returns the mapping of all global switches.
26 const SwitchInfoMap
& GetSwitches();
28 // This file contains global switches. If a command takes specific ones only
29 // to that command, just put them in that command's .cc file.
31 extern const char kArgs
[];
32 extern const char kArgs_HelpShort
[];
33 extern const char kArgs_Help
[];
35 extern const char kColor
[];
36 extern const char kColor_HelpShort
[];
37 extern const char kColor_Help
[];
39 extern const char kDotfile
[];
40 extern const char kDotfile_HelpShort
[];
41 extern const char kDotfile_Help
[];
43 extern const char kMarkdown
[];
44 extern const char kMarkdown_HelpShort
[];
45 extern const char kMarkdown_Help
[];
47 extern const char kNoColor
[];
48 extern const char kNoColor_HelpShort
[];
49 extern const char kNoColor_Help
[];
51 extern const char kQuiet
[];
52 extern const char kQuiet_HelpShort
[];
53 extern const char kQuiet_Help
[];
55 extern const char kRoot
[];
56 extern const char kRoot_HelpShort
[];
57 extern const char kRoot_Help
[];
59 extern const char kRuntimeDepsListFile
[];
60 extern const char kRuntimeDepsListFile_HelpShort
[];
61 extern const char kRuntimeDepsListFile_Help
[];
63 extern const char kThreads
[];
64 extern const char kThreads_HelpShort
[];
65 extern const char kThreads_Help
[];
67 extern const char kTime
[];
68 extern const char kTime_HelpShort
[];
69 extern const char kTime_Help
[];
71 extern const char kTracelog
[];
72 extern const char kTracelog_HelpShort
[];
73 extern const char kTracelog_Help
[];
75 extern const char kVerbose
[];
76 extern const char kVerbose_HelpShort
[];
77 extern const char kVerbose_Help
[];
79 extern const char kVersion
[];
80 extern const char kVersion_HelpShort
[];
81 extern const char kVersion_Help
[];
83 } // namespace switches
85 #endif // TOOLS_GN_SWITCHES_H_