]> git.proxmox.com Git - mirror_qemu.git/blame - tcg/meson.build
accel/tcg: Move perf and debuginfo support to tcg/
[mirror_qemu.git] / tcg / meson.build
CommitLineData
514fea9e
RH
1if not get_option('tcg').allowed()
2 subdir_done()
3endif
4
104cc2c0
RH
5tcg_ss = ss.source_set()
6
7tcg_ss.add(files(
8 'optimize.c',
5ff7258c 9 'region.c',
104cc2c0
RH
10 'tcg.c',
11 'tcg-common.c',
12 'tcg-op.c',
a1429ca2 13 'tcg-op-ldst.c',
104cc2c0
RH
14 'tcg-op-gvec.c',
15 'tcg-op-vec.c',
16))
22f15579
RH
17
18if get_option('tcg_interpreter')
19 libffi = dependency('libffi', version: '>=3.0', required: true,
063d5119 20 method: 'pkg-config')
514fea9e
RH
21 tcg_ss.add(libffi)
22 tcg_ss.add(files('tci.c'))
22f15579 23endif
104cc2c0 24
327b75a4
IL
25tcg_ss.add(when: libdw, if_true: files('debuginfo.c'))
26if host_os == 'linux'
27 tcg_ss.add(files('perf.c'))
28endif
29
1220f581 30tcg_ss = tcg_ss.apply({})
514fea9e
RH
31
32libtcg_user = static_library('tcg_user',
33 tcg_ss.sources() + genh,
34 name_suffix: 'fa',
35 c_args: '-DCONFIG_USER_ONLY',
4c545a05 36 build_by_default: false)
514fea9e
RH
37
38tcg_user = declare_dependency(link_with: libtcg_user,
39 dependencies: tcg_ss.dependencies())
40user_ss.add(tcg_user)
41
7893e42d 42libtcg_system = static_library('tcg_system',
514fea9e
RH
43 tcg_ss.sources() + genh,
44 name_suffix: 'fa',
45 c_args: '-DCONFIG_SOFTMMU',
4c545a05 46 build_by_default: false)
514fea9e 47
7893e42d 48tcg_system = declare_dependency(link_with: libtcg_system,
514fea9e 49 dependencies: tcg_ss.dependencies())
7893e42d 50system_ss.add(tcg_system)