mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
Put .lib files for .pyd modules in built/lib, so they are packaged into the SDK
This commit is contained in:
parent
eb2c9f51f5
commit
1bbfc1d9f6
@ -1498,7 +1498,7 @@ def CompileLink(dll, obj, opts):
|
||||
if subsystem:
|
||||
cmd += " /SUBSYSTEM:" + subsystem
|
||||
|
||||
if dll.endswith(".dll"):
|
||||
if dll.endswith(".dll") or dll.endswith(".pyd"):
|
||||
cmd += ' /IMPLIB:' + GetOutputDir() + '/lib/' + os.path.splitext(os.path.basename(dll))[0] + ".lib"
|
||||
|
||||
for (opt, dir) in LIBDIRECTORIES:
|
||||
@ -1506,10 +1506,8 @@ def CompileLink(dll, obj, opts):
|
||||
cmd += ' /LIBPATH:' + BracketNameWithQuotes(dir)
|
||||
|
||||
for x in obj:
|
||||
if x.endswith(".dll"):
|
||||
if x.endswith(".dll") or x.endswith(".pyd"):
|
||||
cmd += ' ' + GetOutputDir() + '/lib/' + os.path.splitext(os.path.basename(x))[0] + ".lib"
|
||||
elif x.endswith(".pyd"):
|
||||
cmd += ' ' + os.path.splitext(x)[0] + ".lib"
|
||||
elif x.endswith(".lib"):
|
||||
dname = os.path.splitext(os.path.basename(x))[0] + ".dll"
|
||||
if (GetOrigExt(x) != ".ilb" and os.path.exists(GetOutputDir()+"/bin/" + dname)):
|
||||
@ -1566,10 +1564,8 @@ def CompileLink(dll, obj, opts):
|
||||
cmd += ' /LIBPATH:' + BracketNameWithQuotes(dir)
|
||||
|
||||
for x in obj:
|
||||
if x.endswith(".dll"):
|
||||
if x.endswith(".dll") or x.endswith(".pyd"):
|
||||
cmd += ' ' + GetOutputDir() + '/lib/' + os.path.splitext(os.path.basename(x))[0] + ".lib"
|
||||
elif x.endswith(".pyd"):
|
||||
cmd += ' ' + os.path.splitext(x)[0] + ".lib"
|
||||
elif x.endswith(".lib"):
|
||||
dname = os.path.splitext(dll)[0]+".dll"
|
||||
if (GetOrigExt(x) != ".ilb" and os.path.exists(GetOutputDir()+"/bin/" + os.path.splitext(os.path.basename(x))[0] + ".dll")):
|
||||
|
Loading…
x
Reference in New Issue
Block a user