2021-03-08 21:04:33 +01:00
|
|
|
tcg_ss = ss.source_set()
|
|
|
|
|
|
|
|
tcg_ss.add(files(
|
|
|
|
'optimize.c',
|
2021-03-09 23:24:14 +01:00
|
|
|
'region.c',
|
2021-03-08 21:04:33 +01:00
|
|
|
'tcg.c',
|
|
|
|
'tcg-common.c',
|
|
|
|
'tcg-op.c',
|
2023-05-15 08:13:46 +02:00
|
|
|
'tcg-op-ldst.c',
|
2021-03-08 21:04:33 +01:00
|
|
|
'tcg-op-gvec.c',
|
|
|
|
'tcg-op-vec.c',
|
|
|
|
))
|
2021-03-18 19:46:44 +01:00
|
|
|
|
|
|
|
if get_option('tcg_interpreter')
|
|
|
|
libffi = dependency('libffi', version: '>=3.0', required: true,
|
2022-07-14 14:56:58 +02:00
|
|
|
method: 'pkg-config')
|
2021-03-18 19:46:44 +01:00
|
|
|
specific_ss.add(libffi)
|
|
|
|
specific_ss.add(files('tci.c'))
|
|
|
|
endif
|
2021-03-08 21:04:33 +01:00
|
|
|
|
|
|
|
specific_ss.add_all(when: 'CONFIG_TCG', if_true: tcg_ss)
|