Skip to content

Commit

Permalink
As same uptime() is shared between linux and freebsd, adjust the wscript
Browse files Browse the repository at this point in the history
  • Loading branch information
nedko committed Nov 7, 2023
1 parent 8947e56 commit 3cc8d25
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions dbus/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand All @@ -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 += [
Expand Down

0 comments on commit 3cc8d25

Please sign in to comment.