1 util_ss.add(files('osdep.c', 'cutils.c', 'unicode.c', 'qemu-timer-common.c'))
2 util_ss.add(files('thread-context.c'), numa)
3 if not config_host_data.get('CONFIG_ATOMIC64')
4 util_ss.add(files('atomic64.c'))
6 util_ss.add(when: 'CONFIG_POSIX', if_true: files('aio-posix.c'))
7 util_ss.add(when: 'CONFIG_POSIX', if_true: files('fdmon-poll.c'))
8 if config_host_data.get('CONFIG_EPOLL_CREATE1')
9 util_ss.add(files('fdmon-epoll.c'))
11 util_ss.add(when: linux_io_uring, if_true: files('fdmon-io_uring.c'))
12 util_ss.add(when: 'CONFIG_POSIX', if_true: files('compatfd.c'))
13 util_ss.add(when: 'CONFIG_POSIX', if_true: files('event_notifier-posix.c'))
14 util_ss.add(when: 'CONFIG_POSIX', if_true: files('mmap-alloc.c'))
16 if targetos == 'freebsd'
19 util_ss.add(when: 'CONFIG_POSIX', if_true: [files('oslib-posix.c'), freebsd_dep])
20 util_ss.add(when: 'CONFIG_POSIX', if_true: files('qemu-thread-posix.c'))
21 util_ss.add(when: 'CONFIG_POSIX', if_true: files('memfd.c'))
22 util_ss.add(when: 'CONFIG_WIN32', if_true: files('aio-win32.c'))
23 util_ss.add(when: 'CONFIG_WIN32', if_true: files('event_notifier-win32.c'))
24 util_ss.add(when: 'CONFIG_WIN32', if_true: files('oslib-win32.c'))
25 util_ss.add(when: 'CONFIG_WIN32', if_true: files('qemu-thread-win32.c'))
26 util_ss.add(when: 'CONFIG_WIN32', if_true: winmm)
27 util_ss.add(when: 'CONFIG_WIN32', if_true: pathcch)
29 util_ss.add(files('qtree.c'))
31 util_ss.add(files('envlist.c', 'path.c', 'module.c'))
32 util_ss.add(files('host-utils.c'))
33 util_ss.add(files('bitmap.c', 'bitops.c'))
34 util_ss.add(files('fifo8.c'))
35 util_ss.add(files('cacheflush.c'))
36 util_ss.add(files('error.c', 'error-report.c'))
37 util_ss.add(files('qemu-print.c'))
38 util_ss.add(files('id.c'))
39 util_ss.add(files('qemu-config.c', 'notify.c'))
40 util_ss.add(files('qemu-option.c', 'qemu-progress.c'))
41 util_ss.add(files('keyval.c'))
42 util_ss.add(files('crc32c.c'))
43 util_ss.add(files('uuid.c'))
44 util_ss.add(files('getauxval.c'))
45 util_ss.add(files('rcu.c'))
47 util_ss.add(files('sys_membarrier.c'))
49 util_ss.add(files('log.c'))
50 util_ss.add(files('qdist.c'))
51 util_ss.add(files('qht.c'))
52 util_ss.add(files('qsp.c'))
53 util_ss.add(files('range.c'))
54 util_ss.add(files('stats64.c'))
55 util_ss.add(files('systemd.c'))
56 util_ss.add(files('transactions.c'))
57 util_ss.add(when: 'CONFIG_POSIX', if_true: files('drm.c'))
58 util_ss.add(files('guest-random.c'))
59 util_ss.add(files('yank.c'))
60 util_ss.add(files('int128.c'))
61 util_ss.add(files('memalign.c'))
62 util_ss.add(files('interval-tree.c'))
63 util_ss.add(files('lockcnt.c'))
66 util_ss.add(files('selfmap.c'))
70 util_ss.add(files('crc-ccitt.c'))
71 util_ss.add(when: gio, if_true: files('dbus.c'))
72 util_ss.add(when: 'CONFIG_LINUX', if_true: files('userfaultfd.c'))
75 if have_block or have_ga
76 util_ss.add(files('aiocb.c', 'async.c'))
77 util_ss.add(files('base64.c'))
78 util_ss.add(files('main-loop.c'))
79 util_ss.add(files('qemu-coroutine.c', 'qemu-coroutine-lock.c', 'qemu-coroutine-io.c'))
80 util_ss.add(files(f'coroutine-@coroutine_backend@.c'))
81 util_ss.add(files('thread-pool.c', 'qemu-timer.c'))
82 util_ss.add(files('qemu-sockets.c'))
85 util_ss.add(files('aio-wait.c'))
86 util_ss.add(files('buffer.c'))
87 util_ss.add(files('bufferiszero.c'))
88 util_ss.add(files('hbitmap.c'))
89 util_ss.add(files('hexdump.c'))
90 util_ss.add(files('iova-tree.c'))
91 util_ss.add(files('iov.c', 'uri.c'))
92 util_ss.add(files('nvdimm-utils.c'))
93 util_ss.add(when: 'CONFIG_LINUX', if_true: [
94 files('vhost-user-server.c'), vhost_user
96 util_ss.add(files('block-helpers.c'))
97 util_ss.add(files('qemu-coroutine-sleep.c'))
98 util_ss.add(files('qemu-co-shared-resource.c'))
99 util_ss.add(files('qemu-co-timeout.c'))
100 util_ss.add(files('readline.c'))
101 util_ss.add(files('throttle.c'))
102 util_ss.add(files('timed-average.c'))
103 if config_host_data.get('CONFIG_INOTIFY1')
104 util_ss.add(files('filemonitor-inotify.c'))
106 util_ss.add(files('filemonitor-stub.c'))
108 util_ss.add(when: 'CONFIG_LINUX', if_true: files('vfio-helpers.c'))
112 util_ss.add(files('cpuinfo-aarch64.c'))
113 elif cpu in ['x86', 'x86_64']
114 util_ss.add(files('cpuinfo-i386.c'))
115 elif cpu in ['ppc', 'ppc64']
116 util_ss.add(files('cpuinfo-ppc.c'))