mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
I think I'm getting pretty close to getting the panda3d.exe static linking working.
This commit is contained in:
parent
22ecb56db2
commit
5d77dca8a5
@ -782,7 +782,7 @@ def CompileLink(dll, obj, opts):
|
||||
cmd += ' ' + GetOutputDir() + '/lib/' + x[len(GetOutputDir()+"/bin/"):-4] + ".lib"
|
||||
elif (x.endswith(".lib")):
|
||||
dname = x[:-4]+".dll"
|
||||
if (os.path.exists(GetOutputDir()+"/bin/" + x[len(GetOutputDir()+"/bin/"):-4] + ".dll")):
|
||||
if (GetOrigExt(x) != ".ilb" and os.path.exists(GetOutputDir()+"/bin/" + x[len(GetOutputDir()+"/bin/"):-4] + ".dll")):
|
||||
exit("Error: in makepanda, specify "+dname+", not "+x)
|
||||
cmd += ' ' + BracketNameWithQuotes(x)
|
||||
elif (x.endswith(".def")):
|
||||
@ -1848,6 +1848,10 @@ TargetAdd('test_interrogate.exe', opts=['ADVAPI', 'OPENSSL'])
|
||||
OPTS=['DIR:panda/src/pandabase', 'BUILDING:PANDAEXPRESS']
|
||||
TargetAdd('pandabase_pandabase.obj', opts=OPTS, input='pandabase.cxx')
|
||||
|
||||
if (sys.platform.startswith("win") and PkgSkip("PLUGIN")==0 and PkgSkip("TINYXML")==0):
|
||||
OPTS=['DIR:panda/src/pandabase', 'LINK_ALL_STATIC']
|
||||
TargetAdd('static_pandabase_pandabase.obj', opts=OPTS, input='pandabase.cxx')
|
||||
|
||||
#
|
||||
# DIRECTORY: panda/src/express/
|
||||
#
|
||||
@ -3124,7 +3128,7 @@ if (PkgSkip("PLUGIN")==0 and PkgSkip("TINYXML")==0 and PkgSkip("NPAPI")==0):
|
||||
#
|
||||
|
||||
if (PkgSkip("PLUGIN")==0 and PkgSkip("TINYXML")==0):
|
||||
OPTS=['DIR:direct/src/plugin_standalone', 'TINYXML', 'OPENSSL']
|
||||
OPTS=['DIR:direct/src/plugin_standalone', 'LINK_ALL_STATIC', 'TINYXML', 'OPENSSL']
|
||||
TargetAdd('plugin_standalone_panda3d.obj', opts=OPTS, input='panda3d.cxx')
|
||||
TargetAdd('panda3d.exe', input='plugin_standalone_panda3d.obj')
|
||||
TargetAdd('panda3d.exe', input='plugin_common.obj')
|
||||
|
Loading…
x
Reference in New Issue
Block a user