192 parser = argparse.ArgumentParser(
193 description=
"Reads input file of dllexports, processes conditional"
194 " directives, checks content for consistency, and generates"
195 " output file suitable for linker"
202 help=
"Define a variable. Can specify" " this more than once.",
207 help=
"Specify that no ordinal numbers should be generated",
213 help=
"Specify library name for def file LIBRARY statement",
220 help=
"Specify output file name. If not specified," " output is sent to stdout",
222 parser.add_argument(
"dllexports", help=
"The input file describing dllexports")
223 commandArgs = parser.parse_args()
226 defs = set(commandArgs.defs)
227 dllexports = DllExports.create(commandArgs.dllexports, defs)
228 dllexports.add_uppercase_entries()
230 output = open(commandArgs.output,
"w")
if commandArgs.output
else sys.stdout
231 generate_def(dllexports, output, commandArgs.no_ordinals, commandArgs.name)
233 if commandArgs.output: