xref: /qemu/accel/tcg/meson.build (revision 1a1567b1747ef46fca2dfa8c22c2262a2e8f6d6c)
1if not get_option('tcg').allowed()
2   subdir_done()
3endif
4
5tcg_ss = ss.source_set()
6
7tcg_ss.add(files(
8  'cpu-exec-common.c',
9  'tcg-runtime.c',
10  'tcg-runtime-gvec.c',
11))
12if get_option('plugins')
13  tcg_ss.add(files('plugin-gen.c'))
14endif
15
16libuser_ss.add_all(tcg_ss)
17libsystem_ss.add_all(tcg_ss)
18
19tcg_specific_ss = ss.source_set()
20tcg_specific_ss.add(files(
21  'tcg-all.c',
22  'cpu-exec.c',
23  'tb-maint.c',
24  'translate-all.c',
25  'translator.c',
26))
27tcg_specific_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user-exec.c'))
28specific_ss.add_all(when: 'CONFIG_TCG', if_true: tcg_specific_ss)
29
30specific_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: files(
31  'cputlb.c',
32))
33
34libuser_ss.add(files(
35  'user-exec-stub.c',
36))
37
38libsystem_ss.add(files(
39  'icount-common.c',
40  'monitor.c',
41  'tcg-accel-ops.c',
42  'tcg-accel-ops-icount.c',
43  'tcg-accel-ops-mttcg.c',
44  'tcg-accel-ops-rr.c',
45  'watchpoint.c',
46))
47