xref: /openbmc/qemu/accel/tcg/meson.build (revision 43e7a2d3)
11a82878aSMarc-André Lureautcg_ss = ss.source_set()
2*43e7a2d3SPhilippe Mathieu-Daudécommon_ss.add(when: 'CONFIG_TCG', if_true: files(
3*43e7a2d3SPhilippe Mathieu-Daudé  'cpu-exec-common.c',
4*43e7a2d3SPhilippe Mathieu-Daudé))
51a82878aSMarc-André Lureautcg_ss.add(files(
6940e43aaSClaudio Fontana  'tcg-all.c',
71a82878aSMarc-André Lureau  'cpu-exec.c',
88a14b62cSRichard Henderson  'tb-maint.c',
91a82878aSMarc-André Lureau  'tcg-runtime-gvec.c',
101a82878aSMarc-André Lureau  'tcg-runtime.c',
111a82878aSMarc-André Lureau  'translate-all.c',
121a82878aSMarc-André Lureau  'translator.c',
131a82878aSMarc-André Lureau))
141a82878aSMarc-André Lureautcg_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user-exec.c'))
15c7b64948SPhilippe Mathieu-Daudétcg_ss.add(when: 'CONFIG_SYSTEM_ONLY', if_false: files('user-exec-stub.c'))
162c13c574SPaolo Bonziniif get_option('plugins')
172c13c574SPaolo Bonzini  tcg_ss.add(files('plugin-gen.c'))
182c13c574SPaolo Bonziniendif
197c10cb38SIlya Leoshkevichtcg_ss.add(when: libdw, if_true: files('debuginfo.c'))
205584e2dbSIlya Leoshkevichtcg_ss.add(when: 'CONFIG_LINUX', if_true: files('perf.c'))
211a82878aSMarc-André Lureauspecific_ss.add_all(when: 'CONFIG_TCG', if_true: tcg_ss)
221a82878aSMarc-André Lureau
23c7b64948SPhilippe Mathieu-Daudéspecific_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: files(
2445e077d7SClaudio Fontana  'cputlb.c',
255934660fSPhilippe Mathieu-Daudé))
265934660fSPhilippe Mathieu-Daudé
275934660fSPhilippe Mathieu-Daudésystem_ss.add(when: ['CONFIG_TCG'], if_true: files(
28467bf3fcSPhilippe Mathieu-Daudé  'icount-common.c',
2900c9a5c2SPhilippe Mathieu-Daudé  'monitor.c',
30dae0ec15SGerd Hoffmann))
31dae0ec15SGerd Hoffmann
32c7b64948SPhilippe Mathieu-Daudétcg_module_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: files(
33b86f59c7SClaudio Fontana  'tcg-accel-ops.c',
34b86f59c7SClaudio Fontana  'tcg-accel-ops-mttcg.c',
35b86f59c7SClaudio Fontana  'tcg-accel-ops-icount.c',
36dae0ec15SGerd Hoffmann  'tcg-accel-ops-rr.c',
3745e077d7SClaudio Fontana))
38