Merge tag 'pull-request-2024-06-24' of https://gitlab.com/thuth/qemu into staging
[qemu/ar7.git] / tcg / meson.build
blobffbe754d8b3256f19b3878bfdf03a453fddda802
1 if not get_option('tcg').allowed()
2    subdir_done()
3 endif
5 tcg_ss = ss.source_set()
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',
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
25 tcg_ss.add(when: libdw, if_true: files('debuginfo.c'))
26 if host_os == 'linux'
27   tcg_ss.add(files('perf.c'))
28 endif
30 tcg_ss = tcg_ss.apply({})
32 libtcg_user = static_library('tcg_user',
33                              tcg_ss.sources() + genh,
34                              name_suffix: 'fa',
35                              dependencies: tcg_ss.dependencies(),
36                              c_args: '-DCONFIG_USER_ONLY',
37                              build_by_default: false)
39 tcg_user = declare_dependency(link_with: libtcg_user)
40 user_ss.add(tcg_user)
42 libtcg_system = static_library('tcg_system',
43                                 tcg_ss.sources() + genh,
44                                 name_suffix: 'fa',
45                                 dependencies: tcg_ss.dependencies(),
46                                 c_args: '-DCONFIG_SOFTMMU',
47                                 build_by_default: false)
49 tcg_system = declare_dependency(link_with: libtcg_system)
50 system_ss.add(tcg_system)