]> git.proxmox.com Git - mirror_qemu.git/blame - tcg/meson.build
Merge tag 'misc-fixes-20231113' of https://github.com/philmd/qemu into staging
[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
1f2146f7 25tcg_ss = tcg_ss.apply(config_targetos, strict: false)
514fea9e
RH
26
27libtcg_user = static_library('tcg_user',
28 tcg_ss.sources() + genh,
29 name_suffix: 'fa',
30 c_args: '-DCONFIG_USER_ONLY',
4c545a05 31 build_by_default: false)
514fea9e
RH
32
33tcg_user = declare_dependency(link_with: libtcg_user,
34 dependencies: tcg_ss.dependencies())
35user_ss.add(tcg_user)
36
7893e42d 37libtcg_system = static_library('tcg_system',
514fea9e
RH
38 tcg_ss.sources() + genh,
39 name_suffix: 'fa',
40 c_args: '-DCONFIG_SOFTMMU',
4c545a05 41 build_by_default: false)
514fea9e 42
7893e42d 43tcg_system = declare_dependency(link_with: libtcg_system,
514fea9e 44 dependencies: tcg_ss.dependencies())
7893e42d 45system_ss.add(tcg_system)