13a156049SPaolo Bonzini# If possible, add new files to other directories, by using "if_false". 23a156049SPaolo Bonzini# If you need them here, try to add them under one of the if statements 33a156049SPaolo Bonzini# below, so that it is clear who needs the stubbed functionality. 43a156049SPaolo Bonzini 53a156049SPaolo Bonzinistub_ss.add(files('cpu-get-clock.c')) 6fcce5287SZhao Liustub_ss.add(files('error-printf.c')) 73a156049SPaolo Bonzinistub_ss.add(files('fdset.c')) 83a156049SPaolo Bonzinistub_ss.add(files('iothread-lock.c')) 93a156049SPaolo Bonzinistub_ss.add(files('is-daemonized.c')) 103a156049SPaolo Bonzinistub_ss.add(files('monitor-core.c')) 113a156049SPaolo Bonzinistub_ss.add(files('replay-mode.c')) 123a156049SPaolo Bonzinistub_ss.add(files('trace-control.c')) 133a156049SPaolo Bonzini 143a156049SPaolo Bonziniif have_block 15a81df1b6SPaolo Bonzini stub_ss.add(files('bdrv-next-monitor-owned.c')) 16a81df1b6SPaolo Bonzini stub_ss.add(files('blk-commit-all.c')) 17cbc20bfbSStefan Hajnoczi stub_ss.add(files('blk-exp-close-all.c')) 18a81df1b6SPaolo Bonzini stub_ss.add(files('blockdev-close-all-bdrv-states.c')) 19a81df1b6SPaolo Bonzini stub_ss.add(files('change-state-handler.c')) 20a81df1b6SPaolo Bonzini stub_ss.add(files('get-vm-name.c')) 213a156049SPaolo Bonzini stub_ss.add(files('iothread-lock-block.c')) 223a156049SPaolo Bonzini stub_ss.add(files('migr-blocker.c')) 233a156049SPaolo Bonzini stub_ss.add(files('physmem.c')) 243a156049SPaolo Bonzini stub_ss.add(files('ram-block.c')) 253a156049SPaolo Bonzini stub_ss.add(files('runstate-check.c')) 263a156049SPaolo Bonzini stub_ss.add(files('uuid.c')) 273a156049SPaolo Bonziniendif 283a156049SPaolo Bonzini 293a156049SPaolo Bonziniif have_block or have_ga 30109f1a43SKonstantin Kostiuk stub_ss.add(files('replay-tools.c')) 313a156049SPaolo Bonzini # stubs for hooks in util/main-loop.c, util/async.c etc. 32113ac1d2SAlex Bennée stub_ss.add(files('cpus-virtual-clock.c')) 333a156049SPaolo Bonzini stub_ss.add(files('icount.c')) 34587d82faSEmanuele Giuseppe Esposito stub_ss.add(files('graph-lock.c')) 353cfafd31SPaolo Bonzini if linux_io_uring.found() 363cfafd31SPaolo Bonzini stub_ss.add(files('io_uring.c')) 373cfafd31SPaolo Bonzini endif 38ff66f3e5SPaolo Bonzini if libaio.found() 39ff66f3e5SPaolo Bonzini stub_ss.add(files('linux-aio.c')) 40ff66f3e5SPaolo Bonzini endif 41b0476d66SThomas Huth stub_ss.add(files('qemu-timer-notify-cb.c')) 423a156049SPaolo Bonzini 433a156049SPaolo Bonzini # stubs for monitor 443a156049SPaolo Bonzini stub_ss.add(files('monitor-internal.c')) 45164dafd1SPaolo Bonzini stub_ss.add(files('qmp-command-available.c')) 46a00e37a4SAlex Bennée stub_ss.add(files('qmp-quit.c')) 473a156049SPaolo Bonziniendif 483a156049SPaolo Bonzini 493a156049SPaolo Bonziniif have_block or have_user 50a81df1b6SPaolo Bonzini stub_ss.add(files('qtest.c')) 513a156049SPaolo Bonzini stub_ss.add(files('vm-stop.c')) 523a156049SPaolo Bonzini stub_ss.add(files('vmstate.c')) 533a156049SPaolo Bonziniendif 543a156049SPaolo Bonzini 553a156049SPaolo Bonziniif have_user 563a156049SPaolo Bonzini # Symbols that are used by hw/core. 573a156049SPaolo Bonzini stub_ss.add(files('cpu-synchronize-state.c')) 58*e69b2c67SPaolo Bonzini 59*e69b2c67SPaolo Bonzini # Stubs for QAPI events. Those can always be included in the build, but 60*e69b2c67SPaolo Bonzini # they are not built at all for --disable-system --disable-tools builds. 61*e69b2c67SPaolo Bonzini if not (have_system or have_tools) 623a156049SPaolo Bonzini stub_ss.add(files('qdev.c')) 633a156049SPaolo Bonzini endif 64*e69b2c67SPaolo Bonziniendif 653a156049SPaolo Bonzini 663a156049SPaolo Bonziniif have_system 673a156049SPaolo Bonzini # Symbols that are only needed in some configurations. Try not 683a156049SPaolo Bonzini # adding more of these. If the symbol is used in specific_ss, 693a156049SPaolo Bonzini # in particular, consider defining a preprocessor macro via 703a156049SPaolo Bonzini # Kconfig or configs/targets/. 713a156049SPaolo Bonzini stub_ss.add(files('dump.c')) 723a156049SPaolo Bonzini stub_ss.add(files('cmos.c')) 733a156049SPaolo Bonzini stub_ss.add(files('fw_cfg.c')) 74a81df1b6SPaolo Bonzini stub_ss.add(files('target-get-monitor-def.c')) 75a81df1b6SPaolo Bonzini stub_ss.add(files('target-monitor-defs.c')) 76a81df1b6SPaolo Bonzini stub_ss.add(files('win32-kbd-hook.c')) 7771f364b7SPhilippe Mathieu-Daudé stub_ss.add(files('xen-hw-stub.c')) 783a156049SPaolo Bonziniendif 793a156049SPaolo Bonzini 803a156049SPaolo Bonziniif have_system or have_user 813a156049SPaolo Bonzini stub_ss.add(files('gdbstub.c')) 823a156049SPaolo Bonzini 833a156049SPaolo Bonzini # Also included in have_system for --disable-tcg builds 843a156049SPaolo Bonzini stub_ss.add(files('replay.c')) 853a156049SPaolo Bonzini 863a156049SPaolo Bonzini # Also included in have_system for tests/unit/test-qdev-global-props 873a156049SPaolo Bonzini stub_ss.add(files('hotplug-stubs.c')) 883a156049SPaolo Bonzini stub_ss.add(files('sysbus.c')) 89a81df1b6SPaolo Bonziniendif 90