1util_ss.add(dependency('threads')) 2util_ss.add(files('osdep.c', 'cutils.c', 'unicode.c', 'qemu-timer-common.c')) 3util_ss.add(when: 'CONFIG_ATOMIC64', if_false: files('atomic64.c')) 4util_ss.add(when: 'CONFIG_POSIX', if_true: files('aio-posix.c')) 5util_ss.add(when: 'CONFIG_POSIX', if_true: files('fdmon-poll.c')) 6util_ss.add(when: 'CONFIG_EPOLL_CREATE1', if_true: files('fdmon-epoll.c')) 7util_ss.add(when: ['CONFIG_LINUX_IO_URING', linux_io_uring], if_true: files('fdmon-io_uring.c')) 8util_ss.add(when: 'CONFIG_POSIX', if_true: files('compatfd.c')) 9util_ss.add(when: 'CONFIG_POSIX', if_true: files('event_notifier-posix.c')) 10util_ss.add(when: 'CONFIG_POSIX', if_true: files('mmap-alloc.c')) 11util_ss.add(when: 'CONFIG_POSIX', if_true: files('oslib-posix.c')) 12util_ss.add(when: 'CONFIG_POSIX', if_true: [files('qemu-openpty.c'), util]) 13util_ss.add(when: 'CONFIG_POSIX', if_true: files('qemu-thread-posix.c')) 14util_ss.add(when: 'CONFIG_POSIX', if_true: files('memfd.c')) 15util_ss.add(when: 'CONFIG_WIN32', if_true: files('aio-win32.c')) 16util_ss.add(when: 'CONFIG_WIN32', if_true: files('event_notifier-win32.c')) 17util_ss.add(when: 'CONFIG_WIN32', if_true: files('oslib-win32.c')) 18util_ss.add(when: 'CONFIG_WIN32', if_true: files('qemu-thread-win32.c')) 19util_ss.add(when: 'CONFIG_WIN32', if_true: winmm) 20util_ss.add(files('envlist.c', 'path.c', 'module.c')) 21util_ss.add(files('host-utils.c')) 22util_ss.add(files('bitmap.c', 'bitops.c')) 23util_ss.add(files('fifo8.c')) 24util_ss.add(files('cacheinfo.c', 'cacheflush.c')) 25util_ss.add(files('error.c', 'qemu-error.c')) 26util_ss.add(files('qemu-print.c')) 27util_ss.add(files('id.c')) 28util_ss.add(files('qemu-config.c', 'notify.c')) 29util_ss.add(files('qemu-option.c', 'qemu-progress.c')) 30util_ss.add(files('keyval.c')) 31util_ss.add(files('crc32c.c')) 32util_ss.add(files('uuid.c')) 33util_ss.add(files('getauxval.c')) 34util_ss.add(files('rcu.c')) 35util_ss.add(when: 'CONFIG_MEMBARRIER', if_true: files('sys_membarrier.c')) 36util_ss.add(files('log.c')) 37util_ss.add(files('pagesize.c')) 38util_ss.add(files('qdist.c')) 39util_ss.add(files('qht.c')) 40util_ss.add(files('qsp.c')) 41util_ss.add(files('range.c')) 42util_ss.add(files('stats64.c')) 43util_ss.add(files('systemd.c')) 44util_ss.add(when: 'CONFIG_POSIX', if_true: files('drm.c')) 45util_ss.add(files('guest-random.c')) 46 47if have_user 48 util_ss.add(files('selfmap.c')) 49endif 50 51if have_system 52 util_ss.add(files('crc-ccitt.c')) 53 util_ss.add(when: 'CONFIG_GIO', if_true: [files('dbus.c'), gio]) 54 util_ss.add(files('yank.c')) 55endif 56 57if have_block 58 util_ss.add(files('aiocb.c', 'async.c', 'aio-wait.c')) 59 util_ss.add(files('base64.c')) 60 util_ss.add(files('buffer.c')) 61 util_ss.add(files('bufferiszero.c')) 62 util_ss.add(files('coroutine-@0@.c'.format(config_host['CONFIG_COROUTINE_BACKEND']))) 63 util_ss.add(files('hbitmap.c')) 64 util_ss.add(files('hexdump.c')) 65 util_ss.add(files('iova-tree.c')) 66 util_ss.add(files('iov.c', 'qemu-sockets.c', 'uri.c')) 67 util_ss.add(files('lockcnt.c')) 68 util_ss.add(files('main-loop.c')) 69 util_ss.add(files('nvdimm-utils.c')) 70 util_ss.add(files('qemu-coroutine.c', 'qemu-coroutine-lock.c', 'qemu-coroutine-io.c')) 71 util_ss.add(when: 'CONFIG_LINUX', if_true: [ 72 files('vhost-user-server.c'), vhost_user 73 ]) 74 util_ss.add(files('block-helpers.c')) 75 util_ss.add(files('qemu-coroutine-sleep.c')) 76 util_ss.add(files('qemu-co-shared-resource.c')) 77 util_ss.add(files('thread-pool.c', 'qemu-timer.c')) 78 util_ss.add(files('readline.c')) 79 util_ss.add(files('throttle.c')) 80 util_ss.add(files('timed-average.c')) 81 util_ss.add(when: 'CONFIG_INOTIFY1', if_true: files('filemonitor-inotify.c'), 82 if_false: files('filemonitor-stub.c')) 83 util_ss.add(when: 'CONFIG_LINUX', if_true: files('vfio-helpers.c')) 84endif 85