2017-07-25 02:25:18 +02:00
|
|
|
include "llvm/Option/OptParser.td"
|
|
|
|
|
|
|
|
// All the switches can be preceded by either '/' or '-'.
|
|
|
|
// These options seem to be important for the tool
|
|
|
|
// and should be implemented.
|
|
|
|
|
2021-04-14 15:23:50 +02:00
|
|
|
class S<string name, string help> :
|
|
|
|
Separate<["/", "-"], name>, HelpText<help>;
|
2017-07-25 02:25:18 +02:00
|
|
|
|
2021-04-14 15:23:50 +02:00
|
|
|
class JS<string name, string help> :
|
|
|
|
JoinedOrSeparate<["/", "-"], name>, HelpText<help>;
|
2017-07-25 02:25:18 +02:00
|
|
|
|
2021-04-14 15:23:50 +02:00
|
|
|
class F<string name, string help> : Flag<["/", "-"], name>, HelpText<help>;
|
2017-07-25 02:25:18 +02:00
|
|
|
|
2021-04-14 15:23:50 +02:00
|
|
|
class F_nodoc<string name> : Flag<["/", "-"], name>;
|
|
|
|
class S_nodoc<string name> : Separate<["/", "-"], name>;
|
2017-07-25 02:25:18 +02:00
|
|
|
|
2021-04-14 15:23:50 +02:00
|
|
|
def fileout : JS<"FO", "Change the output file location.">;
|
2017-07-25 02:25:18 +02:00
|
|
|
|
2021-04-14 15:24:30 +02:00
|
|
|
def define : JS<"D", "Define a symbol for the C preprocessor.">;
|
|
|
|
def undef : JS<"U", "Undefine a symbol for the C preprocessor.">;
|
2017-07-25 02:25:18 +02:00
|
|
|
|
2021-04-14 15:23:50 +02:00
|
|
|
def lang_id : JS<"L", "Set the default language identifier.">;
|
|
|
|
def lang_name : S<"LN", "Set the default language name.">;
|
2017-07-25 02:25:18 +02:00
|
|
|
|
2021-04-14 15:24:30 +02:00
|
|
|
def includepath : JS<"I", "Add an include path.">;
|
2021-04-14 15:23:50 +02:00
|
|
|
def noinclude : F<"X", "Ignore 'include' variable.">;
|
2017-09-29 19:14:09 +02:00
|
|
|
|
2021-04-14 15:23:50 +02:00
|
|
|
def add_null : F<"N", "Null-terminate all strings in the string table.">;
|
|
|
|
|
|
|
|
def dupid_nowarn : F<"Y", "Suppress warnings on duplicate resource IDs.">;
|
|
|
|
|
|
|
|
def verbose : F<"V", "Be verbose.">;
|
|
|
|
def help : F<"?", "Display this help and exit.">;
|
|
|
|
def h : F<"H", "Display this help and exit.">, Alias<help>;
|
|
|
|
|
2021-04-14 15:24:30 +02:00
|
|
|
def codepage : JS<"C", "Set the codepage used for input strings.">;
|
|
|
|
|
|
|
|
// llvm-rc specific options:
|
|
|
|
|
2021-04-14 15:23:50 +02:00
|
|
|
def dry_run : F<"dry-run", "Don't compile the input; only try to parse it.">;
|
|
|
|
|
2021-04-14 15:24:30 +02:00
|
|
|
def no_preprocess : F<"no-preprocess", "Don't try to preprocess the input file.">;
|
|
|
|
|
|
|
|
// Print (but do not run) the commands to run for preprocessing
|
|
|
|
def _HASH_HASH_HASH : F_nodoc<"###">;
|
2018-05-02 21:43:44 +02:00
|
|
|
|
2017-07-25 02:25:18 +02:00
|
|
|
// Unused switches (at least for now). These will stay unimplemented
|
|
|
|
// in an early stage of development and can be ignored. However, we need to
|
|
|
|
// parse them in order to preserve the compatibility with the original tool.
|
|
|
|
|
2021-04-14 15:23:50 +02:00
|
|
|
def nologo : F_nodoc<"NOLOGO">;
|
|
|
|
def r : F_nodoc<"R">;
|
|
|
|
def sl : F_nodoc<"SL">;
|
2017-07-25 02:25:18 +02:00
|
|
|
|
|
|
|
// (Codepages support.)
|
2021-04-14 15:23:50 +02:00
|
|
|
def w : F_nodoc<"W">;
|
2017-07-25 02:25:18 +02:00
|
|
|
|
|
|
|
// (Support of MUI and similar.)
|
2021-04-14 15:23:50 +02:00
|
|
|
def fm : S_nodoc<"FM">;
|
|
|
|
def q : S_nodoc<"Q">;
|
|
|
|
def g : F_nodoc<"G">;
|
|
|
|
def gn : F_nodoc<"GN">;
|
|
|
|
def g1 : F_nodoc<"G1">;
|
|
|
|
def g2 : F_nodoc<"G2">;
|