mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
Merge branch 'release/1.10.x'
This commit is contained in:
commit
25a468ba12
@ -658,23 +658,39 @@ if (COMPILER == "MSVC"):
|
||||
else:
|
||||
LibName("TIFF", GetThirdpartyDir() + "tiff/lib/tiff.lib")
|
||||
if (PkgSkip("OPENEXR")==0):
|
||||
suffix = ""
|
||||
if os.path.isfile(GetThirdpartyDir() + "openexr/lib/IlmImf-2_2.lib"):
|
||||
suffix = "-2_2"
|
||||
elif os.path.isfile(GetThirdpartyDir() + "openexr/lib/IlmImf-2_3.lib"):
|
||||
suffix = "-2_3"
|
||||
elif os.path.isfile(GetThirdpartyDir() + "openexr/lib/IlmImf-2_4.lib"):
|
||||
suffix = "-2_4"
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/Imath" + suffix + ".lib")
|
||||
if os.path.isfile(GetThirdpartyDir() + "openexr/lib/IlmImf" + suffix + "_s.lib"):
|
||||
suffix += "_s" # _s suffix observed for OpenEXR 2.3 only so far
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/IlmImf" + suffix + ".lib")
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/IlmThread" + suffix + ".lib")
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/Iex" + suffix + ".lib")
|
||||
if suffix == "-2_2":
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/Half.lib")
|
||||
if os.path.isfile(GetThirdpartyDir() + "openexr/lib/OpenEXRCore-3_1.lib"):
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/OpenEXR-3_1.lib")
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/IlmThread-3_1.lib")
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/Imath-3_1.lib")
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/Iex-3_1.lib")
|
||||
elif os.path.isfile(GetThirdpartyDir() + "openexr/lib/OpenEXR-3_0.lib"):
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/OpenEXR-3_0.lib")
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/IlmThread-3_0.lib")
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/Imath-3_0.lib")
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/Iex-3_0.lib")
|
||||
elif os.path.isfile(GetThirdpartyDir() + "openexr/lib/OpenEXR.lib"):
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/OpenEXR.lib")
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/IlmThread.lib")
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/Imath.lib")
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/Iex.lib")
|
||||
else:
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/Half" + suffix + ".lib")
|
||||
suffix = ""
|
||||
if os.path.isfile(GetThirdpartyDir() + "openexr/lib/IlmImf-2_2.lib"):
|
||||
suffix = "-2_2"
|
||||
elif os.path.isfile(GetThirdpartyDir() + "openexr/lib/IlmImf-2_3.lib"):
|
||||
suffix = "-2_3"
|
||||
elif os.path.isfile(GetThirdpartyDir() + "openexr/lib/IlmImf-2_4.lib"):
|
||||
suffix = "-2_4"
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/Imath" + suffix + ".lib")
|
||||
if os.path.isfile(GetThirdpartyDir() + "openexr/lib/IlmImf" + suffix + "_s.lib"):
|
||||
suffix += "_s" # _s suffix observed for OpenEXR 2.3 only so far
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/IlmImf" + suffix + ".lib")
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/IlmThread" + suffix + ".lib")
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/Iex" + suffix + ".lib")
|
||||
if suffix == "-2_2":
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/Half.lib")
|
||||
else:
|
||||
LibName("OPENEXR", GetThirdpartyDir() + "openexr/lib/Half" + suffix + ".lib")
|
||||
IncDirectory("OPENEXR", GetThirdpartyDir() + "openexr/include/OpenEXR")
|
||||
IncDirectory("OPENEXR", GetThirdpartyDir() + "openexr/include/Imath")
|
||||
if (PkgSkip("JPEG")==0): LibName("JPEG", GetThirdpartyDir() + "jpeg/lib/jpeg-static.lib")
|
||||
|
@ -635,6 +635,9 @@ def oscmd(cmd, ignoreError = False, cwd=None):
|
||||
|
||||
res = os.spawnl(os.P_WAIT, exe_path, cmd)
|
||||
|
||||
if res == -1073741510: # 0xc000013a
|
||||
exit("keyboard interrupt")
|
||||
|
||||
if cwd is not None:
|
||||
os.chdir(pwd)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user