xref: /openbmc/qemu/bsd-user/meson.build (revision c1774bdb)
1if not have_bsd_user
2   subdir_done()
3endif
4
5bsd_user_ss = ss.source_set()
6
7common_user_inc += include_directories('include')
8
9bsd_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',
19))
20
21elf = cc.find_library('elf', required: true)
22procstat = cc.find_library('procstat', required: true)
23kvm = cc.find_library('kvm', required: true)
24bsd_user_ss.add(elf, procstat, kvm)
25
26# Pull in the OS-specific build glue, if any
27subdir(targetos)
28
29specific_ss.add_all(when: 'CONFIG_BSD_USER', if_true: bsd_user_ss)
30