pass header list to gen2.py by a text file (avoid command line length limit on windows)

This commit is contained in:
Alexander Mordvintsev
2014-07-27 16:35:35 +04:00
parent 42ecfc5538
commit 9ab3b89c53
2 changed files with 14 additions and 25 deletions

View File

@@ -831,7 +831,6 @@ class PythonWrapperGenerator(object):
# step 1: scan the headers and build more descriptive maps of classes, consts, functions
for hdr in srcfiles:
print(hdr)
decls = parser.parse(hdr)
if len(decls) == 0:
continue
@@ -904,6 +903,6 @@ if __name__ == "__main__":
if len(sys.argv) > 1:
dstdir = sys.argv[1]
if len(sys.argv) > 2:
srcfiles = sys.argv[2:]
srcfiles = open(sys.argv[2], 'r').read().split(';')
generator = PythonWrapperGenerator()
generator.gen(srcfiles, dstdir)