Skip to content

Commit a1b5c6f

Browse files
committed
makepanda: look for vorbis library without _static suffix
Fixes: panda3d#202
1 parent 42f8978 commit a1b5c6f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

makepanda/makepanda.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -651,9 +651,11 @@ def parseopts(args):
651651
DefSymbol("WX", "_UNICODE", "")
652652
DefSymbol("WX", "UNICODE", "")
653653
if (PkgSkip("VORBIS")==0):
654-
LibName("VORBIS", GetThirdpartyDir() + "vorbis/lib/libogg_static.lib")
655-
LibName("VORBIS", GetThirdpartyDir() + "vorbis/lib/libvorbis_static.lib")
656-
LibName("VORBIS", GetThirdpartyDir() + "vorbis/lib/libvorbisfile_static.lib")
654+
for lib in ('ogg', 'vorbis', 'vorbisfile'):
655+
path = GetThirdpartyDir() + "vorbis/lib/lib{0}_static.lib".format(lib)
656+
if not os.path.isfile(path):
657+
path = GetThirdpartyDir() + "vorbis/lib/{0}.lib".format(lib)
658+
LibName("VORBIS", path)
657659
for pkg in MAYAVERSIONS:
658660
if (PkgSkip(pkg)==0):
659661
LibName(pkg, '"' + SDK[pkg] + '/lib/Foundation.lib"')

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy