mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
Library is now version numbered on UNIX (e.g. libp3dtool.so.1.7.0)
This commit is contained in:
parent
30d06fc9cf
commit
906033ed79
@ -866,6 +866,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):
|
||||||
|
newdll = dll[:-len(VERSION)-1]
|
||||||
|
if (os.path.isfile(newdll)):
|
||||||
|
os.remove(newdll)
|
||||||
|
oscmd("ln -s " + BracketNameWithQuotes(os.path.basename(dll)) + " " + BracketNameWithQuotes(newdll))
|
||||||
|
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
#
|
#
|
||||||
# CompileEggPZ
|
# CompileEggPZ
|
||||||
@ -1068,6 +1074,9 @@ 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)
|
||||||
|
if (origsuffix==".dll" and not sys.platform.startswith("win")):
|
||||||
|
target = target + "." + VERSION
|
||||||
|
SetOrigExt(target, origsuffix)
|
||||||
return CompileLink(target, inputs, opts)
|
return CompileLink(target, inputs, opts)
|
||||||
elif (origsuffix==".in"):
|
elif (origsuffix==".in"):
|
||||||
ProgressOutput(progress, "Building Interrogate database", target)
|
ProgressOutput(progress, "Building Interrogate database", target)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user