mirror of
https://github.com/qemu/qemu.git
synced 2025-07-22 18:27:05 +00:00

To move the main api.c to a single build compilation object we need to start splitting out user and system specific code. As we need to grob around host headers we move these particular helpers into the *-user mode directories. The binary/start/end/entry helpers are all NOPs for system mode. While using the plugin-api.c.inc trick means we build for both linux-user and bsd-user the BSD user-mode command line is still missing -plugin. This can be enabled once we have reliable check-tcg tests working for the BSDs. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Warner Losh <imp@bsdimp.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20250304222439.2035603-27-alex.bennee@linaro.org>
31 lines
611 B
Meson
31 lines
611 B
Meson
if not have_bsd_user
|
|
subdir_done()
|
|
endif
|
|
|
|
bsd_user_ss = ss.source_set()
|
|
|
|
common_user_inc += include_directories('include')
|
|
|
|
bsd_user_ss.add(files(
|
|
'bsd-mem.c',
|
|
'bsd-proc.c',
|
|
'bsdload.c',
|
|
'elfload.c',
|
|
'main.c',
|
|
'mmap.c',
|
|
'plugin-api.c',
|
|
'signal.c',
|
|
'strace.c',
|
|
'uaccess.c',
|
|
))
|
|
|
|
elf = cc.find_library('elf', required: true)
|
|
procstat = cc.find_library('procstat', required: true)
|
|
kvm = cc.find_library('kvm', required: true)
|
|
bsd_user_ss.add(elf, procstat, kvm)
|
|
|
|
# Pull in the OS-specific build glue, if any
|
|
subdir(host_os)
|
|
|
|
specific_ss.add_all(when: 'CONFIG_BSD_USER', if_true: bsd_user_ss)
|