]> git.proxmox.com Git - mirror_qemu.git/blame - util/meson.build
range: Introduce range_inverse_array()
[mirror_qemu.git] / util / meson.build
CommitLineData
a81df1b6 1util_ss.add(files('osdep.c', 'cutils.c', 'unicode.c', 'qemu-timer-common.c'))
10218ae6 2util_ss.add(files('thread-context.c'), numa)
bd87a367
PB
3if not config_host_data.get('CONFIG_ATOMIC64')
4 util_ss.add(files('atomic64.c'))
5endif
a81df1b6
PB
6util_ss.add(when: 'CONFIG_POSIX', if_true: files('aio-posix.c'))
7util_ss.add(when: 'CONFIG_POSIX', if_true: files('fdmon-poll.c'))
e66420ac
PB
8if config_host_data.get('CONFIG_EPOLL_CREATE1')
9 util_ss.add(files('fdmon-epoll.c'))
10endif
63a7f853 11util_ss.add(when: linux_io_uring, if_true: files('fdmon-io_uring.c'))
a81df1b6
PB
12util_ss.add(when: 'CONFIG_POSIX', if_true: files('compatfd.c'))
13util_ss.add(when: 'CONFIG_POSIX', if_true: files('event_notifier-posix.c'))
14util_ss.add(when: 'CONFIG_POSIX', if_true: files('mmap-alloc.c'))
7f74e8ac
MAL
15freebsd_dep = []
16if targetos == 'freebsd'
17 freebsd_dep = util
18endif
19util_ss.add(when: 'CONFIG_POSIX', if_true: [files('oslib-posix.c'), freebsd_dep])
a81df1b6
PB
20util_ss.add(when: 'CONFIG_POSIX', if_true: files('qemu-thread-posix.c'))
21util_ss.add(when: 'CONFIG_POSIX', if_true: files('memfd.c'))
22util_ss.add(when: 'CONFIG_WIN32', if_true: files('aio-win32.c'))
23util_ss.add(when: 'CONFIG_WIN32', if_true: files('event_notifier-win32.c'))
24util_ss.add(when: 'CONFIG_WIN32', if_true: files('oslib-win32.c'))
25util_ss.add(when: 'CONFIG_WIN32', if_true: files('qemu-thread-win32.c'))
26util_ss.add(when: 'CONFIG_WIN32', if_true: winmm)
cf60ccc3 27util_ss.add(when: 'CONFIG_WIN32', if_true: pathcch)
fc9a809e
PB
28if glib_has_gslice
29 util_ss.add(files('qtree.c'))
30endif
433fcea4 31util_ss.add(files('defer-call.c'))
a81df1b6
PB
32util_ss.add(files('envlist.c', 'path.c', 'module.c'))
33util_ss.add(files('host-utils.c'))
34util_ss.add(files('bitmap.c', 'bitops.c'))
35util_ss.add(files('fifo8.c'))
79713752 36util_ss.add(files('cacheflush.c'))
15002f60 37util_ss.add(files('error.c', 'error-report.c'))
a81df1b6
PB
38util_ss.add(files('qemu-print.c'))
39util_ss.add(files('id.c'))
40util_ss.add(files('qemu-config.c', 'notify.c'))
41util_ss.add(files('qemu-option.c', 'qemu-progress.c'))
42util_ss.add(files('keyval.c'))
43util_ss.add(files('crc32c.c'))
44util_ss.add(files('uuid.c'))
45util_ss.add(files('getauxval.c'))
46util_ss.add(files('rcu.c'))
b87df904
PB
47if have_membarrier
48 util_ss.add(files('sys_membarrier.c'))
49endif
a81df1b6 50util_ss.add(files('log.c'))
a81df1b6
PB
51util_ss.add(files('qdist.c'))
52util_ss.add(files('qht.c'))
53util_ss.add(files('qsp.c'))
54util_ss.add(files('range.c'))
c3104847 55util_ss.add(files('reserved-region.c'))
a81df1b6
PB
56util_ss.add(files('stats64.c'))
57util_ss.add(files('systemd.c'))
8cad15b1 58util_ss.add(files('transactions.c'))
a81df1b6
PB
59util_ss.add(when: 'CONFIG_POSIX', if_true: files('drm.c'))
60util_ss.add(files('guest-random.c'))
e0150291 61util_ss.add(files('yank.c'))
e9d07601 62util_ss.add(files('int128.c'))
ac8057a1 63util_ss.add(files('memalign.c'))
0d99d37a 64util_ss.add(files('interval-tree.c'))
bd688fc9 65util_ss.add(files('lockcnt.c'))
a81df1b6
PB
66
67if have_user
68 util_ss.add(files('selfmap.c'))
69endif
70
71if have_system
0b73ce30 72 util_ss.add(files('crc-ccitt.c'))
7544060e 73 util_ss.add(when: gio, if_true: files('dbus.c'))
0e9b5cd6 74 util_ss.add(when: 'CONFIG_LINUX', if_true: files('userfaultfd.c'))
a81df1b6
PB
75endif
76
e0091133
TH
77if have_block or have_ga
78 util_ss.add(files('aiocb.c', 'async.c'))
a81df1b6 79 util_ss.add(files('base64.c'))
e0091133
TH
80 util_ss.add(files('main-loop.c'))
81 util_ss.add(files('qemu-coroutine.c', 'qemu-coroutine-lock.c', 'qemu-coroutine-io.c'))
6739825a 82 util_ss.add(files(f'coroutine-@coroutine_backend@.c'))
e0091133
TH
83 util_ss.add(files('thread-pool.c', 'qemu-timer.c'))
84 util_ss.add(files('qemu-sockets.c'))
85endif
86if have_block
87 util_ss.add(files('aio-wait.c'))
a81df1b6
PB
88 util_ss.add(files('buffer.c'))
89 util_ss.add(files('bufferiszero.c'))
a81df1b6
PB
90 util_ss.add(files('hbitmap.c'))
91 util_ss.add(files('hexdump.c'))
92 util_ss.add(files('iova-tree.c'))
e0091133 93 util_ss.add(files('iov.c', 'uri.c'))
a81df1b6 94 util_ss.add(files('nvdimm-utils.c'))
bc15e44c 95 util_ss.add(when: 'CONFIG_LINUX', if_true: [
3a213f83
SH
96 files('vhost-user-server.c'), vhost_user
97 ])
5937835a 98 util_ss.add(files('block-helpers.c'))
a81df1b6
PB
99 util_ss.add(files('qemu-coroutine-sleep.c'))
100 util_ss.add(files('qemu-co-shared-resource.c'))
e1878eb5 101 util_ss.add(files('qemu-co-timeout.c'))
a81df1b6
PB
102 util_ss.add(files('readline.c'))
103 util_ss.add(files('throttle.c'))
104 util_ss.add(files('timed-average.c'))
9d30c78c
VR
105 if config_host_data.get('CONFIG_INOTIFY1')
106 util_ss.add(files('filemonitor-inotify.c'))
107 else
108 util_ss.add(files('filemonitor-stub.c'))
109 endif
a81df1b6
PB
110 util_ss.add(when: 'CONFIG_LINUX', if_true: files('vfio-helpers.c'))
111endif
6bc12fd0 112
0dd0c7fa
RH
113if cpu == 'aarch64'
114 util_ss.add(files('cpuinfo-aarch64.c'))
115elif cpu in ['x86', 'x86_64']
6bc12fd0 116 util_ss.add(files('cpuinfo-i386.c'))
623d7e35
RH
117elif cpu in ['ppc', 'ppc64']
118 util_ss.add(files('cpuinfo-ppc.c'))
6bc12fd0 119endif