]> git.proxmox.com Git - mirror_qemu.git/commit - scripts/qapi-gen.py
qapi-gen: New common driver for code and doc generators
authorMarkus Armbruster <armbru@redhat.com>
Mon, 26 Feb 2018 19:48:58 +0000 (13:48 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 2 Mar 2018 19:14:09 +0000 (13:14 -0600)
commitfb0bc835e56b894cbc7236294921e5393c786ad8
treec96c6626054c20084fc9fe268fab187c0bed20bf
parent26df4e7fab06422b21e11d039c64243ca4003147
qapi-gen: New common driver for code and doc generators

Whenever qapi-schema.json changes, we run six programs eleven times to
update eleven files.  Similar for qga/qapi-schema.json.  This is
silly.  Replace the six programs by a single program that spits out
all eleven files.

The programs become modules in new Python package qapi, along with the
helper library.  This requires moving them to scripts/qapi/.  While
moving them, consistently drop executable mode bits.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20180211093607.27351-9-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
[eblake: move change to one-line 'blurb' earlier in series, mention mode
bit change as intentional, update qapi-code-gen.txt to match actual
generated events.c file]
Signed-off-by: Eric Blake <eblake@redhat.com>
23 files changed:
.gitignore
Makefile
docs/devel/qapi-code-gen.txt
monitor.c
qapi-schema.json
scripts/qapi-commands.py [deleted file]
scripts/qapi-event.py [deleted file]
scripts/qapi-gen.py [new file with mode: 0755]
scripts/qapi-introspect.py [deleted file]
scripts/qapi-types.py [deleted file]
scripts/qapi-visit.py [deleted file]
scripts/qapi.py [deleted file]
scripts/qapi/__init__.py [new file with mode: 0644]
scripts/qapi/commands.py [new file with mode: 0644]
scripts/qapi/common.py [new file with mode: 0644]
scripts/qapi/doc.py [new file with mode: 0644]
scripts/qapi/events.py [new file with mode: 0644]
scripts/qapi/introspect.py [new file with mode: 0644]
scripts/qapi/types.py [new file with mode: 0644]
scripts/qapi/visit.py [new file with mode: 0644]
scripts/qapi2texi.py [deleted file]
tests/Makefile.include
tests/qapi-schema/test-qapi.py