xref: /openbmc/qemu/accel/tcg/meson.build (revision effd60c8)
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'))
20if host_os == 'linux'
21  tcg_ss.add(files('perf.c'))
22endif
23specific_ss.add_all(when: 'CONFIG_TCG', if_true: tcg_ss)
24
25specific_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: files(
26  'cputlb.c',
27  'watchpoint.c',
28))
29
30system_ss.add(when: ['CONFIG_TCG'], if_true: files(
31  'icount-common.c',
32  'monitor.c',
33))
34
35tcg_module_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: files(
36  'tcg-accel-ops.c',
37  'tcg-accel-ops-mttcg.c',
38  'tcg-accel-ops-icount.c',
39  'tcg-accel-ops-rr.c',
40))
41