Marek Sokolowski | c6f54fe | 2017-07-25 00:25:18 +0000 | [diff] [blame] | 1 | include "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 | |
Petr Hosek | b9dd8a3 | 2018-11-09 03:16:53 +0000 | [diff] [blame] | 7 | def FILEOUT : JoinedOrSeparate<[ "/", "-" ], "FO">, |
Marek Sokolowski | c6f54fe | 2017-07-25 00:25:18 +0000 | [diff] [blame] | 8 | HelpText<"Change the output file location.">; |
| 9 | |
| 10 | def DEFINE : Separate<[ "/", "-" ], "D">, |
| 11 | HelpText<"Define a symbol for the C preprocessor.">; |
| 12 | def UNDEF : Separate<[ "/", "-" ], "U">, |
| 13 | HelpText<"Undefine a symbol for the C preprocessor.">; |
| 14 | |
| 15 | def LANG_ID : Separate<[ "/", "-" ], "L">, |
| 16 | HelpText<"Set the default language identifier.">; |
| 17 | def LANG_NAME : Separate<[ "/", "-" ], "LN">, |
| 18 | HelpText<"Set the default language name.">; |
| 19 | |
| 20 | def INCLUDE : Separate<[ "/", "-" ], "I">, HelpText<"Add an include path.">; |
| 21 | def NOINCLUDE : Flag<[ "/", "-" ], "X">, HelpText<"Ignore 'include' variable.">; |
| 22 | |
| 23 | def ADD_NULL : Flag<[ "/", "-" ], "N">, |
| 24 | HelpText<"Null-terminate all strings in the string table.">; |
| 25 | |
| 26 | def DUPID_NOWARN : Flag<[ "/", "-" ], "Y">, |
| 27 | HelpText<"Suppress warnings on duplicate resource IDs.">; |
| 28 | |
| 29 | def VERBOSE : Flag<[ "/", "-" ], "V">, HelpText<"Be verbose.">; |
| 30 | def HELP : Flag<[ "/", "-" ], "?">, HelpText<"Display this help and exit.">; |
| 31 | def H : Flag<[ "/", "-" ], "H">, |
| 32 | Alias<HELP>, |
| 33 | HelpText<"Display this help and exit.">; |
| 34 | |
Marek Sokolowski | e37621b | 2017-09-29 17:14:09 +0000 | [diff] [blame] | 35 | def DRY_RUN : Flag<[ "/", "-" ], "dry-run">, |
| 36 | HelpText<"Don't compile the input; only try to parse it.">; |
| 37 | |
Martin Storsjo | e99f5b4 | 2018-05-02 19:43:44 +0000 | [diff] [blame] | 38 | def CODEPAGE : JoinedOrSeparate<[ "/", "-" ], "C">, |
| 39 | HelpText<"Set the codepage used for input strings.">; |
| 40 | |
Marek Sokolowski | c6f54fe | 2017-07-25 00:25:18 +0000 | [diff] [blame] | 41 | // 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 | |
| 45 | def NOLOGO : Flag<[ "/", "-" ], "NOLOGO">; |
| 46 | def R : Flag<[ "/", "-" ], "R">; |
| 47 | def SL : Flag<[ "/", "-" ], "SL">; |
| 48 | |
| 49 | // (Codepages support.) |
Marek Sokolowski | c6f54fe | 2017-07-25 00:25:18 +0000 | [diff] [blame] | 50 | def W : Flag<[ "/", "-" ], "W">; |
| 51 | |
| 52 | // (Support of MUI and similar.) |
| 53 | def FM : Separate<[ "/", "-" ], "FM">; |
| 54 | def Q : Separate<[ "/", "-" ], "Q">; |
| 55 | def G : Flag<[ "/", "-" ], "G">; |
| 56 | def GN : Flag<[ "/", "-" ], "GN">; |
| 57 | def G1 : Flag<[ "/", "-" ], "G1">; |
| 58 | def G2 : Flag<[ "/", "-" ], "G2">; |