e0091133e3
If configuring with "--disable-system --disable-user --enable-guest-agent" the linking currently fails with: qga/qemu-ga.p/commands.c.o: In function `qmp_command_info': build/../../home/thuth/devel/qemu/qga/commands.c:70: undefined reference to `qmp_command_name' build/../../home/thuth/devel/qemu/qga/commands.c:71: undefined reference to `qmp_command_is_enabled' build/../../home/thuth/devel/qemu/qga/commands.c:72: undefined reference to `qmp_has_success_response' qga/qemu-ga.p/commands.c.o: In function `qmp_guest_info': build/../../home/thuth/devel/qemu/qga/commands.c:82: undefined reference to `qmp_for_each_command' qga/qemu-ga.p/commands.c.o: In function `qmp_guest_exec': build/../../home/thuth/devel/qemu/qga/commands.c:410: undefined reference to `qbase64_decode' qga/qemu-ga.p/channel-posix.c.o: In function `ga_channel_open': build/../../home/thuth/devel/qemu/qga/channel-posix.c:214: undefined reference to `unix_listen' build/../../home/thuth/devel/qemu/qga/channel-posix.c:228: undefined reference to `socket_parse' build/../../home/thuth/devel/qemu/qga/channel-posix.c:234: undefined reference to `socket_listen' qga/qemu-ga.p/commands-posix.c.o: In function `qmp_guest_file_write': build/../../home/thuth/devel/qemu/qga/commands-posix.c:527: undefined reference to `qbase64_decode' Let's make sure that we also compile and link the required files if the system emulators have not been enabled. Message-Id: <20221110083626.31899-1-thuth@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
107 lines
4.0 KiB
Meson
107 lines
4.0 KiB
Meson
util_ss.add(files('osdep.c', 'cutils.c', 'unicode.c', 'qemu-timer-common.c'))
|
|
util_ss.add(files('thread-context.c'), numa)
|
|
if not config_host_data.get('CONFIG_ATOMIC64')
|
|
util_ss.add(files('atomic64.c'))
|
|
endif
|
|
util_ss.add(when: 'CONFIG_LINUX', if_true: files('async-teardown.c'))
|
|
util_ss.add(when: 'CONFIG_POSIX', if_true: files('aio-posix.c'))
|
|
util_ss.add(when: 'CONFIG_POSIX', if_true: files('fdmon-poll.c'))
|
|
if config_host_data.get('CONFIG_EPOLL_CREATE1')
|
|
util_ss.add(files('fdmon-epoll.c'))
|
|
endif
|
|
util_ss.add(when: linux_io_uring, if_true: files('fdmon-io_uring.c'))
|
|
util_ss.add(when: 'CONFIG_POSIX', if_true: files('compatfd.c'))
|
|
util_ss.add(when: 'CONFIG_POSIX', if_true: files('event_notifier-posix.c'))
|
|
util_ss.add(when: 'CONFIG_POSIX', if_true: files('mmap-alloc.c'))
|
|
freebsd_dep = []
|
|
if targetos == 'freebsd'
|
|
freebsd_dep = util
|
|
endif
|
|
util_ss.add(when: 'CONFIG_POSIX', if_true: [files('oslib-posix.c'), freebsd_dep])
|
|
util_ss.add(when: 'CONFIG_POSIX', if_true: files('qemu-thread-posix.c'))
|
|
util_ss.add(when: 'CONFIG_POSIX', if_true: files('memfd.c'))
|
|
util_ss.add(when: 'CONFIG_WIN32', if_true: files('aio-win32.c'))
|
|
util_ss.add(when: 'CONFIG_WIN32', if_true: files('event_notifier-win32.c'))
|
|
util_ss.add(when: 'CONFIG_WIN32', if_true: files('oslib-win32.c'))
|
|
util_ss.add(when: 'CONFIG_WIN32', if_true: files('qemu-thread-win32.c'))
|
|
util_ss.add(when: 'CONFIG_WIN32', if_true: winmm)
|
|
util_ss.add(when: 'CONFIG_WIN32', if_true: pathcch)
|
|
util_ss.add(files('envlist.c', 'path.c', 'module.c'))
|
|
util_ss.add(files('host-utils.c'))
|
|
util_ss.add(files('bitmap.c', 'bitops.c'))
|
|
util_ss.add(files('fifo8.c'))
|
|
util_ss.add(files('cacheflush.c'))
|
|
util_ss.add(files('error.c', 'error-report.c'))
|
|
util_ss.add(files('qemu-print.c'))
|
|
util_ss.add(files('id.c'))
|
|
util_ss.add(files('qemu-config.c', 'notify.c'))
|
|
util_ss.add(files('qemu-option.c', 'qemu-progress.c'))
|
|
util_ss.add(files('keyval.c'))
|
|
util_ss.add(files('crc32c.c'))
|
|
util_ss.add(files('uuid.c'))
|
|
util_ss.add(files('getauxval.c'))
|
|
util_ss.add(files('rcu.c'))
|
|
if have_membarrier
|
|
util_ss.add(files('sys_membarrier.c'))
|
|
endif
|
|
util_ss.add(files('log.c'))
|
|
util_ss.add(files('qdist.c'))
|
|
util_ss.add(files('qht.c'))
|
|
util_ss.add(files('qsp.c'))
|
|
util_ss.add(files('range.c'))
|
|
util_ss.add(files('stats64.c'))
|
|
util_ss.add(files('systemd.c'))
|
|
util_ss.add(files('transactions.c'))
|
|
util_ss.add(when: 'CONFIG_POSIX', if_true: files('drm.c'))
|
|
util_ss.add(files('guest-random.c'))
|
|
util_ss.add(files('yank.c'))
|
|
util_ss.add(files('int128.c'))
|
|
util_ss.add(files('memalign.c'))
|
|
|
|
if have_user
|
|
util_ss.add(files('selfmap.c'))
|
|
endif
|
|
|
|
if have_system
|
|
util_ss.add(files('crc-ccitt.c'))
|
|
util_ss.add(when: gio, if_true: files('dbus.c'))
|
|
util_ss.add(when: 'CONFIG_LINUX', if_true: files('userfaultfd.c'))
|
|
endif
|
|
|
|
if have_block or have_ga
|
|
util_ss.add(files('aiocb.c', 'async.c'))
|
|
util_ss.add(files('base64.c'))
|
|
util_ss.add(files('lockcnt.c'))
|
|
util_ss.add(files('main-loop.c'))
|
|
util_ss.add(files('qemu-coroutine.c', 'qemu-coroutine-lock.c', 'qemu-coroutine-io.c'))
|
|
util_ss.add(files('coroutine-@0@.c'.format(config_host['CONFIG_COROUTINE_BACKEND'])))
|
|
util_ss.add(files('thread-pool.c', 'qemu-timer.c'))
|
|
util_ss.add(files('qemu-sockets.c'))
|
|
endif
|
|
if have_block
|
|
util_ss.add(files('aio-wait.c'))
|
|
util_ss.add(files('buffer.c'))
|
|
util_ss.add(files('bufferiszero.c'))
|
|
util_ss.add(files('hbitmap.c'))
|
|
util_ss.add(files('hexdump.c'))
|
|
util_ss.add(files('iova-tree.c'))
|
|
util_ss.add(files('iov.c', 'uri.c'))
|
|
util_ss.add(files('nvdimm-utils.c'))
|
|
util_ss.add(when: 'CONFIG_LINUX', if_true: [
|
|
files('vhost-user-server.c'), vhost_user
|
|
])
|
|
util_ss.add(files('block-helpers.c'))
|
|
util_ss.add(files('qemu-coroutine-sleep.c'))
|
|
util_ss.add(files('qemu-co-shared-resource.c'))
|
|
util_ss.add(files('qemu-co-timeout.c'))
|
|
util_ss.add(files('readline.c'))
|
|
util_ss.add(files('throttle.c'))
|
|
util_ss.add(files('timed-average.c'))
|
|
if config_host_data.get('CONFIG_INOTIFY1')
|
|
util_ss.add(files('filemonitor-inotify.c'))
|
|
else
|
|
util_ss.add(files('filemonitor-stub.c'))
|
|
endif
|
|
util_ss.add(when: 'CONFIG_LINUX', if_true: files('vfio-helpers.c'))
|
|
endif
|