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