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