mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
OSX convention for libraries is libpanda.1.7.0.dylib, not libpanda.dylib.1.7.0
This commit is contained in:
parent
8bcbfa6a57
commit
1f6b7283bc
@ -867,7 +867,12 @@ def CompileLink(dll, obj, opts):
|
|||||||
oscmd("strip " + BracketNameWithQuotes(dll))
|
oscmd("strip " + BracketNameWithQuotes(dll))
|
||||||
os.system("chmod +x " + BracketNameWithQuotes(dll))
|
os.system("chmod +x " + BracketNameWithQuotes(dll))
|
||||||
|
|
||||||
if dll.endswith("." + VERSION):
|
if dll.endswith("." + VERSION + ".dylib"):
|
||||||
|
newdll = dll[:-6-len(VERSION)] + "dylib"
|
||||||
|
if (os.path.isfile(newdll)):
|
||||||
|
os.remove(newdll)
|
||||||
|
oscmd("ln -s " + BracketNameWithQuotes(os.path.basename(dll)) + " " + BracketNameWithQuotes(newdll))
|
||||||
|
elif dll.endswith("." + VERSION):
|
||||||
newdll = dll[:-len(VERSION)-1]
|
newdll = dll[:-len(VERSION)-1]
|
||||||
if (os.path.isfile(newdll)):
|
if (os.path.isfile(newdll)):
|
||||||
os.remove(newdll)
|
os.remove(newdll)
|
||||||
@ -1075,7 +1080,14 @@ def CompileAnything(target, inputs, opts, progress = None):
|
|||||||
ProgressOutput(progress, "Linking executable", target)
|
ProgressOutput(progress, "Linking executable", target)
|
||||||
else:
|
else:
|
||||||
ProgressOutput(progress, "Linking dynamic library", target)
|
ProgressOutput(progress, "Linking dynamic library", target)
|
||||||
|
|
||||||
|
# Add version number to the dynamic library, on unix
|
||||||
if (origsuffix==".dll" and not sys.platform.startswith("win")):
|
if (origsuffix==".dll" and not sys.platform.startswith("win")):
|
||||||
|
if (sys.platform == "darwin"):
|
||||||
|
if (target.lower().endswith(".dylib")):
|
||||||
|
target = target[:-5] + VERSION + ".dylib"
|
||||||
|
SetOrigExt(target, origsuffix)
|
||||||
|
else:
|
||||||
target = target + "." + VERSION
|
target = target + "." + VERSION
|
||||||
SetOrigExt(target, origsuffix)
|
SetOrigExt(target, origsuffix)
|
||||||
return CompileLink(target, inputs, opts)
|
return CompileLink(target, inputs, opts)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user