qapi: Empty out qapi-schema.json
The previous commit improved compile time by including less of the generated QAPI headers. This is impossible for stuff defined directly in qapi-schema.json, because that ends up in headers that that pull in everything. Move everything but include directives from qapi-schema.json to new sub-module qapi/misc.json, then include just the "misc" shard where possible. It's possible everywhere, except: * monitor.c needs qmp-command.h to get qmp_init_marshal() * monitor.c, ui/vnc.c and the generated qapi-event-FOO.c need qapi-event.h to get enum QAPIEvent Perhaps we'll get rid of those some other day. Adding a type to qapi/migration.json now recompiles some 120 instead of 2300 out of 5100 objects. Signed-off-by:Markus Armbruster <armbru@redhat.com> Message-Id: <20180211093607.27351-25-armbru@redhat.com> [eblake: rebase to master] Signed-off-by:
Eric Blake <eblake@redhat.com>
Showing
- .gitignore 4 additions, 0 deletions.gitignore
- Makefile 9 additions, 0 deletionsMakefile
- Makefile.objs 4 additions, 0 deletionsMakefile.objs
- arch_init.c 1 addition, 1 deletionarch_init.c
- balloon.c 1 addition, 1 deletionballoon.c
- block/iscsi.c 1 addition, 1 deletionblock/iscsi.c
- cpus.c 1 addition, 1 deletioncpus.c
- dump.c 2 additions, 2 deletionsdump.c
- hmp.c 9 additions, 1 deletionhmp.c
- hw/acpi/core.c 1 addition, 1 deletionhw/acpi/core.c
- hw/acpi/cpu.c 1 addition, 1 deletionhw/acpi/cpu.c
- hw/acpi/memory_hotplug.c 1 addition, 1 deletionhw/acpi/memory_hotplug.c
- hw/acpi/vmgenid.c 1 addition, 1 deletionhw/acpi/vmgenid.c
- hw/core/qdev.c 1 addition, 1 deletionhw/core/qdev.c
- hw/i386/xen/xen-hvm.c 1 addition, 1 deletionhw/i386/xen/xen-hvm.c
- hw/ipmi/ipmi.c 1 addition, 1 deletionhw/ipmi/ipmi.c
- hw/pci/pci-stub.c 1 addition, 1 deletionhw/pci/pci-stub.c
- hw/pci/pci.c 1 addition, 1 deletionhw/pci/pci.c
- hw/ppc/spapr_rtc.c 1 addition, 1 deletionhw/ppc/spapr_rtc.c
- hw/s390x/s390-skeys.c 1 addition, 1 deletionhw/s390x/s390-skeys.c
Loading
Please register or sign in to comment