mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 18:05:37 +00:00
![Paolo Bonzini](/assets/img/avatar_default.png)
This variable is about the host OS, not the target. It is used a lot more since the Meson conversion, but the original sin dates back to 2003. Time to fix it. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
30 lines
593 B
Meson
30 lines
593 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',
|
|
'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)
|