Kaydet (Commit) f804a2e8 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Make it easier to debug the gbuild-to-ide script

Add an --input option so that the input doesn't have to be generated each
time but can (manually) be stored in a file and that then given to the script
when debugging it interactively.

Change-Id: Icdb6abc828c6d16e29a99494d00eb0c8435f2826
üst acca36bb
...@@ -281,10 +281,15 @@ if __name__ == '__main__': ...@@ -281,10 +281,15 @@ if __name__ == '__main__':
parser = argparse.ArgumentParser( parser = argparse.ArgumentParser(
description='LibreOffice gbuild IDE project generator') description='LibreOffice gbuild IDE project generator')
parser.add_argument('--ide', dest='ide', required=True, parser.add_argument('--ide', dest='ide', required=True,
help='the ide to generate project files for') help='the IDE to generate project files for')
parser.add_argument('--input', dest='input', required=False,
help='the input file, not normally used, for debugging this script')
args = parser.parse_args() args = parser.parse_args()
paths = {} paths = {}
gbuildparser = GbuildParser().parse(sys.stdin) if args.input:
gbuildparser = GbuildParser().parse(open(args.input, 'r'))
else:
gbuildparser = GbuildParser().parse(sys.stdin)
#DebugIntegrationGenerator(gbuildparser).emit() #DebugIntegrationGenerator(gbuildparser).emit()
if args.ide == 'kdevelop': if args.ide == 'kdevelop':
KdevelopIntegrationGenerator(gbuildparser).emit() KdevelopIntegrationGenerator(gbuildparser).emit()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment