meson: move accelerator dependency checks together
[qemu/ar7.git] / bsd-user / meson.build
blobc6bfd3b2b539cdcef9bbc82bdc2d5aab59caf51f
1 if not have_bsd_user
2    subdir_done()
3 endif
5 bsd_user_ss = ss.source_set()
7 common_user_inc += include_directories('include')
9 bsd_user_ss.add(files(
10   'bsd-mem.c',
11   'bsd-proc.c',
12   'bsdload.c',
13   'elfload.c',
14   'main.c',
15   'mmap.c',
16   'signal.c',
17   'strace.c',
18   'uaccess.c',
21 elf = cc.find_library('elf', required: true)
22 procstat = cc.find_library('procstat', required: true)
23 kvm = cc.find_library('kvm', required: true)
24 bsd_user_ss.add(elf, procstat, kvm)
26 # Pull in the OS-specific build glue, if any
27 subdir(targetos)
29 specific_ss.add_all(when: 'CONFIG_BSD_USER', if_true: bsd_user_ss)