aboutsummaryrefslogtreecommitdiff
path: root/bsd-user/meson.build
blob: 39bad0ae33e7a27d91b8e9069cf96ee0fc4cc293 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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)