Skip to content

Commit

Permalink
Force library compat/current version under macOS
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Oct 17, 2020
1 parent a938d7a commit 0f2e3b2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
15 changes: 12 additions & 3 deletions common/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ def build(bld):
'../windows/JackMMCSS.cpp',
]

if not bld.env['IS_WINDOWS']:
if bld.env['IS_MACOSX']:
clientlib.cnum = bld.env['JACK_API_VERSION']
clientlib.vnum = bld.env['JACK_VERSION']
elif not bld.env['IS_WINDOWS']:
clientlib.vnum = bld.env['JACK_API_VERSION']

if bld.env['IS_LINUX']:
Expand Down Expand Up @@ -304,7 +307,10 @@ def build(bld):
'../windows/JackNetWinSocket.cpp',
]

if not bld.env['IS_WINDOWS']:
if bld.env['IS_MACOSX']:
serverlib.cnum = bld.env['JACK_API_VERSION']
serverlib.vnum = bld.env['JACK_VERSION']
elif not bld.env['IS_WINDOWS']:
serverlib.vnum = bld.env['JACK_API_VERSION']

if bld.env['IS_LINUX']:
Expand Down Expand Up @@ -366,7 +372,10 @@ def build(bld):
if bld.env['IS_WINDOWS']:
netlib.source += ['../windows/JackNetWinSocket.cpp','../windows/JackWinThread.cpp', '../windows/JackMMCSS.cpp', '../windows/JackWinTime.c']

if not bld.env['IS_WINDOWS']:
if bld.env['IS_MACOSX']:
netlib.cnum = bld.env['JACK_API_VERSION']
netlib.vnum = bld.env['JACK_VERSION']
elif not bld.env['IS_WINDOWS']:
netlib.vnum = bld.env['JACK_API_VERSION']

create_jack_process_obj(bld, 'netmanager', 'JackNetManager.cpp', serverlib)
Expand Down
5 changes: 1 addition & 4 deletions waflib/Tools/ccroot.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,13 +575,10 @@ def build(bld):

cnum = getattr(self, 'cnum', str(nums[0]))
cnums = cnum.split('.')
if len(cnums)>len(nums) or nums[0:len(cnums)] != cnums:
raise Errors.WafError('invalid compatibility version %s' % cnum)

libname = node.name
if libname.endswith('.dylib'):
name3 = libname.replace('.dylib', '.%s.dylib' % self.vnum)
name2 = libname.replace('.dylib', '.%s.dylib' % cnum)
name3 = name2 = libname.replace('.dylib', '.%s.dylib' % cnum)
else:
name3 = libname + '.' + self.vnum
name2 = libname + '.' + cnum
Expand Down

0 comments on commit 0f2e3b2

Please sign in to comment.