2021-10-09 00:47:37 +02:00
|
|
|
if not have_bsd_user
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
2021-11-17 16:35:01 +01:00
|
|
|
bsd_user_ss = ss.source_set()
|
|
|
|
|
2021-12-21 16:20:32 +01:00
|
|
|
common_user_inc += include_directories('include')
|
2021-11-17 16:14:00 +01:00
|
|
|
|
2019-08-18 17:20:37 +02:00
|
|
|
bsd_user_ss.add(files(
|
2023-09-25 20:26:53 +02:00
|
|
|
'bsd-mem.c',
|
2023-09-25 20:24:03 +02:00
|
|
|
'bsd-proc.c',
|
2019-08-18 17:20:37 +02:00
|
|
|
'bsdload.c',
|
|
|
|
'elfload.c',
|
|
|
|
'main.c',
|
|
|
|
'mmap.c',
|
|
|
|
'signal.c',
|
|
|
|
'strace.c',
|
|
|
|
'uaccess.c',
|
|
|
|
))
|
2021-09-20 21:41:38 +02:00
|
|
|
|
2023-09-25 20:24:03 +02:00
|
|
|
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)
|
|
|
|
|
2021-09-20 21:41:38 +02:00
|
|
|
# Pull in the OS-specific build glue, if any
|
|
|
|
subdir(targetos)
|
2021-11-17 16:35:01 +01:00
|
|
|
|
|
|
|
specific_ss.add_all(when: 'CONFIG_BSD_USER', if_true: bsd_user_ss)
|