blob: 613f0a0db31edb28d618626c0d6f2af5e8da6f0e [file] [log] [blame]
Marek Sokolowski2ce2fa42017-07-25 00:25:18 +00001include "llvm/Option/OptParser.td"
2
3// All the switches can be preceded by either '/' or '-'.
4// These options seem to be important for the tool
5// and should be implemented.
6
Martin Storsjöc913f6d2020-08-05 11:00:21 +03007def fileout : JoinedOrSeparate<[ "/", "-" ], "FO">,
Marek Sokolowski2ce2fa42017-07-25 00:25:18 +00008 HelpText<"Change the output file location.">;
9
Martin Storsjöc913f6d2020-08-05 11:00:21 +030010def define : Separate<[ "/", "-" ], "D">,
Marek Sokolowski2ce2fa42017-07-25 00:25:18 +000011 HelpText<"Define a symbol for the C preprocessor.">;
Martin Storsjöc913f6d2020-08-05 11:00:21 +030012def undef : Separate<[ "/", "-" ], "U">,
Marek Sokolowski2ce2fa42017-07-25 00:25:18 +000013 HelpText<"Undefine a symbol for the C preprocessor.">;
14
Martin Storsjöc913f6d2020-08-05 11:00:21 +030015def lang_id : JoinedOrSeparate<[ "/", "-" ], "L">,
Marek Sokolowski2ce2fa42017-07-25 00:25:18 +000016 HelpText<"Set the default language identifier.">;
Martin Storsjöc913f6d2020-08-05 11:00:21 +030017def lang_name : Separate<[ "/", "-" ], "LN">,
Marek Sokolowski2ce2fa42017-07-25 00:25:18 +000018 HelpText<"Set the default language name.">;
19
Martin Storsjöc913f6d2020-08-05 11:00:21 +030020def includepath : Separate<[ "/", "-" ], "I">, HelpText<"Add an include path.">;
21def noinclude : Flag<[ "/", "-" ], "X">, HelpText<"Ignore 'include' variable.">;
Marek Sokolowski2ce2fa42017-07-25 00:25:18 +000022
Martin Storsjöc913f6d2020-08-05 11:00:21 +030023def add_null : Flag<[ "/", "-" ], "N">,
Marek Sokolowski2ce2fa42017-07-25 00:25:18 +000024 HelpText<"Null-terminate all strings in the string table.">;
25
Martin Storsjöc913f6d2020-08-05 11:00:21 +030026def dupid_nowarn : Flag<[ "/", "-" ], "Y">,
Marek Sokolowski2ce2fa42017-07-25 00:25:18 +000027 HelpText<"Suppress warnings on duplicate resource IDs.">;
28
Martin Storsjöc913f6d2020-08-05 11:00:21 +030029def verbose : Flag<[ "/", "-" ], "V">, HelpText<"Be verbose.">;
30def help : Flag<[ "/", "-" ], "?">, HelpText<"Display this help and exit.">;
31def h : Flag<[ "/", "-" ], "H">,
32 Alias<help>,
Marek Sokolowski2ce2fa42017-07-25 00:25:18 +000033 HelpText<"Display this help and exit.">;
34
Martin Storsjöc913f6d2020-08-05 11:00:21 +030035def dry_run : Flag<[ "/", "-" ], "dry-run">,
Marek Sokolowski8f193432017-09-29 17:14:09 +000036 HelpText<"Don't compile the input; only try to parse it.">;
37
Martin Storsjöc913f6d2020-08-05 11:00:21 +030038def codepage : JoinedOrSeparate<[ "/", "-" ], "C">,
Martin Storsjod1d046a2018-05-02 19:43:44 +000039 HelpText<"Set the codepage used for input strings.">;
40
Marek Sokolowski2ce2fa42017-07-25 00:25:18 +000041// Unused switches (at least for now). These will stay unimplemented
42// in an early stage of development and can be ignored. However, we need to
43// parse them in order to preserve the compatibility with the original tool.
44
Martin Storsjöc913f6d2020-08-05 11:00:21 +030045def nologo : Flag<[ "/", "-" ], "NOLOGO">;
46def r : Flag<[ "/", "-" ], "R">;
47def sl : Flag<[ "/", "-" ], "SL">;
Marek Sokolowski2ce2fa42017-07-25 00:25:18 +000048
49// (Codepages support.)
Martin Storsjöc913f6d2020-08-05 11:00:21 +030050def w : Flag<[ "/", "-" ], "W">;
Marek Sokolowski2ce2fa42017-07-25 00:25:18 +000051
52// (Support of MUI and similar.)
Martin Storsjöc913f6d2020-08-05 11:00:21 +030053def fm : Separate<[ "/", "-" ], "FM">;
54def q : Separate<[ "/", "-" ], "Q">;
55def g : Flag<[ "/", "-" ], "G">;
56def gn : Flag<[ "/", "-" ], "GN">;
57def g1 : Flag<[ "/", "-" ], "G1">;
58def g2 : Flag<[ "/", "-" ], "G2">;