master
build 31 lines 581 Bytes
Raw
1 if not have_tcg
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.add(when: libdw, if_true: files('debuginfo.c'))
26 if host_os == 'linux'
27 tcg_ss.add(files('perf.c'))
28 endif
29
30 user_ss.add_all(tcg_ss)
31 system_ss.add_all(tcg_ss)