target/mips/meson: Introduce mips_tcg source set
Introduce the 'mips_tcg' source set to collect TCG specific files. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20210226093111.3865906-2-f4bug@amsat.org>
This commit is contained in:
parent
f8ead0d7bd
commit
2897579982
|
@ -6,12 +6,13 @@ gen = [
|
||||||
]
|
]
|
||||||
|
|
||||||
mips_ss = ss.source_set()
|
mips_ss = ss.source_set()
|
||||||
mips_ss.add(gen)
|
|
||||||
mips_ss.add(files(
|
mips_ss.add(files(
|
||||||
'cpu.c',
|
'cpu.c',
|
||||||
'gdbstub.c',
|
'gdbstub.c',
|
||||||
))
|
))
|
||||||
mips_ss.add(when: 'CONFIG_TCG', if_true: files(
|
mips_tcg_ss = ss.source_set()
|
||||||
|
mips_tcg_ss.add(gen)
|
||||||
|
mips_tcg_ss.add(files(
|
||||||
'dsp_helper.c',
|
'dsp_helper.c',
|
||||||
'fpu_helper.c',
|
'fpu_helper.c',
|
||||||
'lmmi_helper.c',
|
'lmmi_helper.c',
|
||||||
|
@ -36,5 +37,7 @@ mips_softmmu_ss.add(when: 'CONFIG_TCG', if_true: files(
|
||||||
'cp0_helper.c',
|
'cp0_helper.c',
|
||||||
))
|
))
|
||||||
|
|
||||||
|
mips_ss.add_all(when: 'CONFIG_TCG', if_true: [mips_tcg_ss])
|
||||||
|
|
||||||
target_arch += {'mips': mips_ss}
|
target_arch += {'mips': mips_ss}
|
||||||
target_softmmu_arch += {'mips': mips_softmmu_ss}
|
target_softmmu_arch += {'mips': mips_softmmu_ss}
|
||||||
|
|
Loading…
Reference in a new issue