]> git.proxmox.com Git - mirror_qemu.git/blob - tcg/meson.build
qga: Solaris has net/if_arp.h and netinet/if_ether.h but not ETHER_ADDR_LEN
[mirror_qemu.git] / tcg / meson.build
1 if not get_option('tcg').allowed()
2 subdir_done()
3 endif
4
5 tcg_ss = ss.source_set()
6
7 tcg_ss.add(files(
8 'optimize.c',
9 'region.c',
10 'tcg.c',
11 'tcg-common.c',
12 'tcg-op.c',
13 'tcg-op-ldst.c',
14 'tcg-op-gvec.c',
15 'tcg-op-vec.c',
16 ))
17
18 if get_option('tcg_interpreter')
19 libffi = dependency('libffi', version: '>=3.0', required: true,
20 method: 'pkg-config')
21 tcg_ss.add(libffi)
22 tcg_ss.add(files('tci.c'))
23 endif
24
25 tcg_ss = tcg_ss.apply({})
26
27 libtcg_user = static_library('tcg_user',
28 tcg_ss.sources() + genh,
29 name_suffix: 'fa',
30 c_args: '-DCONFIG_USER_ONLY',
31 build_by_default: false)
32
33 tcg_user = declare_dependency(link_with: libtcg_user,
34 dependencies: tcg_ss.dependencies())
35 user_ss.add(tcg_user)
36
37 libtcg_system = static_library('tcg_system',
38 tcg_ss.sources() + genh,
39 name_suffix: 'fa',
40 c_args: '-DCONFIG_SOFTMMU',
41 build_by_default: false)
42
43 tcg_system = declare_dependency(link_with: libtcg_system,
44 dependencies: tcg_ss.dependencies())
45 system_ss.add(tcg_system)