mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-02 10:21:10 +00:00
1fb1d31a1f
Linking code from multiple separate QAPI schemata into the same program is possible, but involves some weirdness around built-in types: * We generate code for built-in types into .c only with option --builtins. The user is responsible for generating code for exactly one QAPI schema per program with --builtins. * We generate code for built-in types into .h regardless of --builtins, but guarded by #ifndef QAPI_VISIT_BUILTIN. Because all copies of this code are exactly the same, including any combination of these headers works. Replace this contraption by something more conventional: generate code for built-in types into their very own files: qapi-builtin-types.c, qapi-builtin-visit.c, qapi-builtin-types.h, qapi-builtin-visit.h, but only with --builtins. Obey --output-dir, but ignore --prefix for them. Make qapi-types.h include qapi-builtin-types.h. With multiple schemata you now have multiple qapi-types.[ch], but only one qapi-builtin-types.[ch]. Same for qapi-visit.[ch] and qapi-builtin-visit.[ch]. Bonus: if all you need is built-in stuff, you can include a much smaller header. To be exploited shortly. Backports commit cdb6610ae4283720037bae2af1f78bd40eb5fe71 from qemu
103 lines
1.3 KiB
Plaintext
103 lines
1.3 KiB
Plaintext
.DS_Store
|
|
*.swp
|
|
*.d
|
|
*.o
|
|
*.a
|
|
*.dSYM
|
|
*.so
|
|
*.so.*
|
|
*.exe
|
|
*.dll
|
|
*.class
|
|
*.jar
|
|
*~
|
|
|
|
qemu/config-all-devices.mak
|
|
|
|
qemu/aarch64-softmmu/
|
|
qemu/aarch64eb-softmmu/
|
|
qemu/arm-softmmu/
|
|
qemu/armeb-softmmu/
|
|
qemu/m68k-softmmu/
|
|
qemu/mips64el-softmmu/
|
|
qemu/mips64-softmmu/
|
|
qemu/mipsel-softmmu/
|
|
qemu/mips-softmmu/
|
|
qemu/sparc64-softmmu/
|
|
qemu/sparc-softmmu/
|
|
qemu/i386-softmmu/
|
|
qemu/x86_64-softmmu/
|
|
|
|
qemu/qapi-builtin-types.[ch]
|
|
qemu/qapi-builtin-visit.[ch]
|
|
qemu/qapi-types.[ch]
|
|
qemu/qapi-visit.[ch]
|
|
qemu/qapi-gen-timestamp
|
|
tags
|
|
qemu/config-host.ld
|
|
qemu/config.log
|
|
qemu/config.status
|
|
qemu/config-host.h
|
|
qemu/config-host.h-timestamp
|
|
qemu/config-host.mak
|
|
|
|
libunicorn*.dll
|
|
libunicorn*.so
|
|
libunicorn*.dylib
|
|
|
|
unicorn.pc
|
|
|
|
unicorn.lib
|
|
unicorn.dll
|
|
unicorn.exp
|
|
unicorn.def
|
|
unicorn_*.lib
|
|
unicorn_*.exp
|
|
unicorn_*.dll
|
|
|
|
|
|
*.tgz
|
|
*.zip
|
|
*.pyc
|
|
_*.txt
|
|
_*.diff
|
|
tmp/
|
|
|
|
bindings/python/build/
|
|
bindings/python/dist/
|
|
bindings/python/src/
|
|
bindings/python/unicorn.egg-info/
|
|
bindings/python/unicorn/lib/
|
|
bindings/python/unicorn/include/
|
|
bindings/python/MANIFEST
|
|
config.log
|
|
|
|
|
|
|
|
|
|
#################
|
|
## Visual Studio
|
|
#################
|
|
|
|
## Ignore Visual Studio temporary files, build results, and
|
|
## files generated by popular Visual Studio add-ons.
|
|
|
|
# User-specific files
|
|
*.opensdf
|
|
*.sdf
|
|
*.suo
|
|
*.user
|
|
*.sln.docstates
|
|
|
|
# Build results
|
|
|
|
[Dd]ebug/
|
|
[Rr]elease/
|
|
x64/
|
|
Win32/
|
|
build/
|
|
[Bb]in/
|
|
[Oo]bj/
|
|
packages/
|
|
cmocka/
|