xref: /qemu/accel/tcg/meson.build (revision 6170d09c)
1tcg_ss = ss.source_set()
2tcg_ss.add(files(
3  'tcg-all.c',
4  'cpu-exec-common.c',
5  'cpu-exec.c',
6  'tb-maint.c',
7  'tcg-runtime-gvec.c',
8  'tcg-runtime.c',
9  'translate-all.c',
10  'translator.c',
11))
12tcg_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user-exec.c'))
13tcg_ss.add(when: 'CONFIG_SYSTEM_ONLY', if_false: files('user-exec-stub.c'))
14if get_option('plugins')
15  tcg_ss.add(files('plugin-gen.c'))
16endif
17tcg_ss.add(when: libdw, if_true: files('debuginfo.c'))
18tcg_ss.add(when: 'CONFIG_LINUX', if_true: files('perf.c'))
19specific_ss.add_all(when: 'CONFIG_TCG', if_true: tcg_ss)
20
21specific_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: files(
22  'cputlb.c',
23  'monitor.c',
24))
25
26tcg_module_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: files(
27  'tcg-accel-ops.c',
28  'tcg-accel-ops-mttcg.c',
29  'tcg-accel-ops-icount.c',
30  'tcg-accel-ops-rr.c',
31))
32