Roll DEPS for PDFium to 19ae17578f99621100a26dac3e2c7c3dbf7c7cd1
[chromium-blink-merge.git] / tools / gn / switches.h
blob7d62e5419b6cfb80aa53df07c5cd2e1951edacf1
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_
8 #include <map>
10 #include "base/strings/string_piece.h"
12 namespace switches {
14 struct SwitchInfo {
15 SwitchInfo();
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 kThreads[];
60 extern const char kThreads_HelpShort[];
61 extern const char kThreads_Help[];
63 extern const char kTime[];
64 extern const char kTime_HelpShort[];
65 extern const char kTime_Help[];
67 extern const char kTracelog[];
68 extern const char kTracelog_HelpShort[];
69 extern const char kTracelog_Help[];
71 extern const char kVerbose[];
72 extern const char kVerbose_HelpShort[];
73 extern const char kVerbose_Help[];
75 extern const char kVersion[];
76 extern const char kVersion_HelpShort[];
77 extern const char kVersion_Help[];
79 } // namespace switches
81 #endif // TOOLS_GN_SWITCHES_H_