| 1 | # If possible, add new files to other directories, by using "if_false". |
| 2 | # If you need them here, try to add them under one of the if statements |
| 3 | # below, so that it is clear who needs the stubbed functionality. |
| 4 | |
| 5 | stub_ss.add(files('cpu-get-clock.c')) |
| 6 | stub_ss.add(files('fdset.c')) |
| 7 | stub_ss.add(files('iothread-lock.c')) |
| 8 | stub_ss.add(files('is-daemonized.c')) |
| 9 | stub_ss.add(files('monitor-core.c')) |
| 10 | stub_ss.add(files('monitor-cur.c')) |
| 11 | stub_ss.add(files('monitor-hmp.c')) |
| 12 | stub_ss.add(files('qapi-event-emit.c')) |
| 13 | stub_ss.add(files('replay-mode.c')) |
| 14 | stub_ss.add(files('trace-control.c')) |
| 15 | |
| 16 | if have_block |
| 17 | stub_ss.add(files('bdrv-next-monitor-owned.c')) |
| 18 | stub_ss.add(files('blk-commit-all.c')) |
| 19 | stub_ss.add(files('blk-exp-close-all.c')) |
| 20 | stub_ss.add(files('blockdev-close-all-bdrv-states.c')) |
| 21 | stub_ss.add(files('change-state-handler.c')) |
| 22 | stub_ss.add(files('get-vm-name.c')) |
| 23 | stub_ss.add(files('iothread-lock-block.c')) |
| 24 | stub_ss.add(files('migr-blocker.c')) |
| 25 | stub_ss.add(files('physmem.c')) |
| 26 | stub_ss.add(files('ram-block.c')) |
| 27 | stub_ss.add(files('runstate-check.c')) |
| 28 | stub_ss.add(files('uuid.c')) |
| 29 | endif |
| 30 | |
| 31 | if have_block or have_ga |
| 32 | stub_ss.add(files('replay-tools.c')) |
| 33 | # stubs for hooks in util/main-loop.c, util/async.c etc. |
| 34 | stub_ss.add(files('cpus-virtual-clock.c')) |
| 35 | stub_ss.add(files('icount.c')) |
| 36 | stub_ss.add(files('graph-lock.c')) |
| 37 | if libaio.found() |
| 38 | stub_ss.add(files('linux-aio.c')) |
| 39 | endif |
| 40 | stub_ss.add(files('qemu-timer-notify-cb.c')) |
| 41 | |
| 42 | # stubs for monitor |
| 43 | stub_ss.add(files('monitor-internal.c')) |
| 44 | stub_ss.add(files('qmp-command-available.c')) |
| 45 | stub_ss.add(files('qmp-quit.c')) |
| 46 | stub_ss.add(files('async-run-on-cpu.c')) |
| 47 | stub_ss.add(files('cpus-queue.c')) |
| 48 | endif |
| 49 | |
| 50 | if have_block or have_user |
| 51 | stub_ss.add(files('qtest.c')) |
| 52 | stub_ss.add(files('vm-stop.c')) |
| 53 | stub_ss.add(files('vmstate.c')) |
| 54 | endif |
| 55 | |
| 56 | if have_user |
| 57 | # Symbols that are used by hw/core. |
| 58 | stub_ss.add(files('cpu-synchronize-state.c')) |
| 59 | stub_ss.add(files('cpu-destroy-address-spaces.c')) |
| 60 | stub_ss.add(files('qom-compat-properties.c')) |
| 61 | |
| 62 | # Stubs for QAPI events. Those can always be included in the build, but |
| 63 | # they are not built at all for --disable-system builds. |
| 64 | if not have_system |
| 65 | stub_ss.add(files('qdev.c')) |
| 66 | endif |
| 67 | endif |
| 68 | |
| 69 | if have_system |
| 70 | # Symbols that are only needed in some configurations. Try not |
| 71 | # adding more of these. If the symbol is used in specific_ss, |
| 72 | # in particular, consider defining a preprocessor macro via |
| 73 | # Kconfig or configs/targets/. |
| 74 | stub_ss.add(files('dump.c')) |
| 75 | stub_ss.add(files('cmos.c')) |
| 76 | stub_ss.add(files('fw_cfg.c')) |
| 77 | if igvm.found() |
| 78 | stub_ss.add(files('igvm.c')) |
| 79 | endif |
| 80 | stub_ss.add(files('kvm.c')) |
| 81 | stub_ss.add(files('win32-kbd-hook.c')) |
| 82 | stub_ss.add(files('xen-hw-stub.c')) |
| 83 | stub_ss.add(files('qmp-arm-gic.c')) |
| 84 | stub_ss.add(files('qmp-i386-rtc.c')) |
| 85 | stub_ss.add(files('qmp-i386-sev.c')) |
| 86 | stub_ss.add(files('qmp-i386-sgx.c')) |
| 87 | stub_ss.add(files('qmp-i386-xen.c')) |
| 88 | stub_ss.add(files('qmp-cpu.c')) |
| 89 | stub_ss.add(files('qmp-cpu-s390x.c')) |
| 90 | stub_ss.add(files('qmp-cpu-s390x-kvm.c')) |
| 91 | if have_hmp |
| 92 | stub_ss.add(files('hmp-cmd-info_mem.c')) |
| 93 | stub_ss.add(files('hmp-cmd-info_sev.c')) |
| 94 | stub_ss.add(files('hmp-cmd-info_tlb.c')) |
| 95 | stub_ss.add(files('hmp-cmds-hw-s390x.c')) |
| 96 | stub_ss.add(files('hmp-cmds-target-i386.c')) |
| 97 | endif |
| 98 | endif |
| 99 | |
| 100 | if have_system or have_user |
| 101 | # Also included in have_system for --disable-tcg builds |
| 102 | stub_ss.add(files('replay.c')) |
| 103 | |
| 104 | # Also included in have_system for tests/unit/test-qdev-global-props |
| 105 | stub_ss.add(files('hotplug-stubs.c')) |
| 106 | stub_ss.add(files('sysbus.c')) |
| 107 | endif |