1tcg_ss = ss.source_set() 2common_ss.add(when: 'CONFIG_TCG', if_true: files( 3 'cpu-exec-common.c', 4)) 5tcg_ss.add(files( 6 'tcg-all.c', 7 'cpu-exec.c', 8 'tb-maint.c', 9 'tcg-runtime-gvec.c', 10 'tcg-runtime.c', 11 'translate-all.c', 12 'translator.c', 13)) 14tcg_ss.add(when: 'CONFIG_USER_ONLY', if_true: files('user-exec.c')) 15tcg_ss.add(when: 'CONFIG_SYSTEM_ONLY', if_false: files('user-exec-stub.c')) 16if get_option('plugins') 17 tcg_ss.add(files('plugin-gen.c')) 18endif 19tcg_ss.add(when: libdw, if_true: files('debuginfo.c')) 20if host_os == 'linux' 21 tcg_ss.add(files('perf.c')) 22endif 23specific_ss.add_all(when: 'CONFIG_TCG', if_true: tcg_ss) 24 25specific_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: files( 26 'cputlb.c', 27)) 28 29system_ss.add(when: ['CONFIG_TCG'], if_true: files( 30 'icount-common.c', 31 'monitor.c', 32)) 33 34tcg_module_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: files( 35 'tcg-accel-ops.c', 36 'tcg-accel-ops-mttcg.c', 37 'tcg-accel-ops-icount.c', 38 'tcg-accel-ops-rr.c', 39)) 40