isle/tools/makectx.py
Joshua Peisach e7cdfa76dd
tools/makectx: Use cl.exe /EP /P for file preprocessing.
Creates a messy file with a lot of newlines but allows for adding DX structs.
2023-09-08 14:13:05 -04:00

15 lines
525 B
Python

#!/usr/bin/python3
import argparse
import os
parser = argparse.ArgumentParser(allow_abbrev=False,
description='Verify Exports: Compare the exports of two DLLs.')
parser.add_argument('cppfile', metavar='cppfile', help='Path to the C++ File to preprocess.')
args = parser.parse_args()
if not os.path.isfile(args.cppfile):
parser.error('Specified C++ file does not exist.')
os.system('cl.exe /EP /P ' + args.cppfile)
print('Preprocessed file. It will be in the directory you executed in this command as "(filename).i".')