2021-03-08 23:04:33 +03:00
|
|
|
tcg_ss = ss.source_set()
|
|
|
|
|
|
|
|
tcg_ss.add(files(
|
|
|
|
'optimize.c',
|
2021-03-10 01:24:14 +03:00
|
|
|
'region.c',
|
2021-03-08 23:04:33 +03:00
|
|
|
'tcg.c',
|
|
|
|
'tcg-common.c',
|
|
|
|
'tcg-op.c',
|
|
|
|
'tcg-op-gvec.c',
|
|
|
|
'tcg-op-vec.c',
|
|
|
|
))
|
2021-03-18 21:46:44 +03:00
|
|
|
|
|
|
|
if get_option('tcg_interpreter')
|
|
|
|
libffi = dependency('libffi', version: '>=3.0', required: true,
|
|
|
|
method: 'pkg-config', kwargs: static_kwargs)
|
|
|
|
specific_ss.add(libffi)
|
|
|
|
specific_ss.add(files('tci.c'))
|
|
|
|
endif
|
2021-03-08 23:04:33 +03:00
|
|
|
|
|
|
|
specific_ss.add_all(when: 'CONFIG_TCG', if_true: tcg_ss)
|