As same uptime() is shared between linux and freebsd, adjust the wscript

This commit is contained in:
Nedko Arnaudov 2023-11-07 21:12:38 +02:00
parent 8947e5659a
commit 3cc8d25b68
1 changed files with 4 additions and 10 deletions

View File

@ -58,10 +58,7 @@ def configure(conf):
def build(bld):
obj = bld(features=['c', 'cprogram'], idx=17)
if bld.env['IS_LINUX']:
sysdeps_dbus_include = ['../linux', '../posix']
if bld.env['IS_FREEBSD']:
sysdeps_dbus_include = ['../freebsd', '../posix']
sysdeps_dbus_include = ['../linux']
obj.includes = sysdeps_dbus_include + ['.', '../', '../common', '../common/jack']
@ -82,15 +79,12 @@ def build(bld):
'reserve.c',
]
obj.use = ['JACKSERVER']
obj.source += [
'../linux/uptime.c',
]
if bld.env['IS_LINUX']:
obj.source += [
'../linux/uptime.c',
]
obj.use += ['PTHREAD', 'DL', 'RT', 'DBUS-1', 'EXPAT']
if bld.env['IS_FREEBSD']:
obj.source += [
'../linux/uptime.c',
]
obj.use += ['PTHREAD', 'EXECINFO', 'LIBSYSINFO', 'DBUS-1', 'EXPAT']
if bld.env['BUILD_SIGINFO']:
obj.source += [