mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Link nppanda3d.dll/.so dynamically, even when LINK_ALL_STATIC is enabled
This commit is contained in:
parent
1e0cf1664a
commit
12d0c3f765
@ -3227,19 +3227,15 @@ if (RUNTIME and PkgSkip("NPAPI")==0):
|
|||||||
OPTS += ['NPAPI', 'TINYXML']
|
OPTS += ['NPAPI', 'TINYXML']
|
||||||
TargetAdd('plugin_npapi_nppanda3d_composite1.obj', opts=OPTS, input='nppanda3d_composite1.cxx')
|
TargetAdd('plugin_npapi_nppanda3d_composite1.obj', opts=OPTS, input='nppanda3d_composite1.cxx')
|
||||||
|
|
||||||
if (sys.platform=="darwin"):
|
|
||||||
TargetAdd('nppanda3d.plugin', input='plugin_common.obj')
|
TargetAdd('nppanda3d.plugin', input='plugin_common.obj')
|
||||||
TargetAdd('nppanda3d.plugin', input='plugin_npapi_nppanda3d_composite1.obj')
|
TargetAdd('nppanda3d.plugin', input='plugin_npapi_nppanda3d_composite1.obj')
|
||||||
|
if (sys.platform.startswith("win")):
|
||||||
|
TargetAdd('nppanda3d.plugin', input='nppanda3d.res')
|
||||||
|
TargetAdd('nppanda3d.plugin', input='nppanda3d.def', ipath=OPTS)
|
||||||
|
elif (sys.platform == "darwin"):
|
||||||
TargetAdd('nppanda3d.plugin', input='nppanda3d.rsrc')
|
TargetAdd('nppanda3d.plugin', input='nppanda3d.rsrc')
|
||||||
TargetAdd('nppanda3d.plugin', input='nppanda3d.plist', ipath=OPTS)
|
TargetAdd('nppanda3d.plugin', input='nppanda3d.plist', ipath=OPTS)
|
||||||
TargetAdd('nppanda3d.plugin', opts=['NPAPI', 'TINYXML', 'OPENSSL', 'CARBON'])
|
TargetAdd('nppanda3d.plugin', opts=['FORCE_DYNAMIC', 'NPAPI', 'TINYXML', 'OPENSSL', 'WINUSER', 'WINSHELL', 'WINOLE', 'CARBON'])
|
||||||
else:
|
|
||||||
TargetAdd('nppanda3d.dll', input='plugin_common.obj')
|
|
||||||
TargetAdd('nppanda3d.dll', input='plugin_npapi_nppanda3d_composite1.obj')
|
|
||||||
if (sys.platform.startswith("win")):
|
|
||||||
TargetAdd('nppanda3d.dll', input='nppanda3d.res')
|
|
||||||
TargetAdd('nppanda3d.dll', input='nppanda3d.def', ipath=OPTS)
|
|
||||||
TargetAdd('nppanda3d.dll', opts=['NPAPI', 'TINYXML', 'OPENSSL', 'WINUSER', 'WINSHELL', 'WINOLE'])
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# DIRECTORY: direct/src/plugin_activex/
|
# DIRECTORY: direct/src/plugin_activex/
|
||||||
|
@ -1575,6 +1575,7 @@ def CalcLocation(fn, ipath):
|
|||||||
if (fn.endswith(".dlo")): return OUTPUTDIR+"/plugins/"+fn[:-4]+dllext+".dlo"
|
if (fn.endswith(".dlo")): return OUTPUTDIR+"/plugins/"+fn[:-4]+dllext+".dlo"
|
||||||
if (fn.endswith(".dli")): return OUTPUTDIR+"/plugins/"+fn[:-4]+dllext+".dli"
|
if (fn.endswith(".dli")): return OUTPUTDIR+"/plugins/"+fn[:-4]+dllext+".dli"
|
||||||
if (fn.endswith(".dle")): return OUTPUTDIR+"/plugins/"+fn[:-4]+dllext+".dle"
|
if (fn.endswith(".dle")): return OUTPUTDIR+"/plugins/"+fn[:-4]+dllext+".dle"
|
||||||
|
if (fn.endswith(".plugin")):return OUTPUTDIR+"/plugins/"+fn[:-7]+dllext+".dll"
|
||||||
if (fn.endswith(".exe")): return OUTPUTDIR+"/bin/"+fn
|
if (fn.endswith(".exe")): return OUTPUTDIR+"/bin/"+fn
|
||||||
if (fn.endswith(".lib")): return OUTPUTDIR+"/lib/"+fn[:-4]+dllext+".lib"
|
if (fn.endswith(".lib")): return OUTPUTDIR+"/lib/"+fn[:-4]+dllext+".lib"
|
||||||
if (fn.endswith(".ilb")): return OUTPUTDIR+"/tmp/"+fn[:-4]+dllext+".lib"
|
if (fn.endswith(".ilb")): return OUTPUTDIR+"/tmp/"+fn[:-4]+dllext+".lib"
|
||||||
@ -1601,6 +1602,7 @@ def CalcLocation(fn, ipath):
|
|||||||
if (fn.endswith(".dll")): return OUTPUTDIR+"/lib/"+fn[:-4]+".so"
|
if (fn.endswith(".dll")): return OUTPUTDIR+"/lib/"+fn[:-4]+".so"
|
||||||
if (fn.endswith(".pyd")): return OUTPUTDIR+"/lib/"+fn[:-4]+".so"
|
if (fn.endswith(".pyd")): return OUTPUTDIR+"/lib/"+fn[:-4]+".so"
|
||||||
if (fn.endswith(".mll")): return OUTPUTDIR+"/plugins/"+fn
|
if (fn.endswith(".mll")): return OUTPUTDIR+"/plugins/"+fn
|
||||||
|
if (fn.endswith(".plugin")):return OUTPUTDIR+"/plugins/"+fn[:-7]+dllext+".so"
|
||||||
if (fn.endswith(".exe")): return OUTPUTDIR+"/bin/"+fn[:-4]
|
if (fn.endswith(".exe")): return OUTPUTDIR+"/bin/"+fn[:-4]
|
||||||
if (fn.endswith(".lib")): return OUTPUTDIR+"/lib/"+fn[:-4]+".a"
|
if (fn.endswith(".lib")): return OUTPUTDIR+"/lib/"+fn[:-4]+".a"
|
||||||
if (fn.endswith(".ilb")): return OUTPUTDIR+"/tmp/"+fn[:-4]+".a"
|
if (fn.endswith(".ilb")): return OUTPUTDIR+"/tmp/"+fn[:-4]+".a"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user