mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
find swscale in ffmpeg thirdparty package
This commit is contained in:
parent
1f6b7283bc
commit
b53d78d694
@ -1063,6 +1063,11 @@ def SmartPkgEnable(pkg, pkgconfig = None, libs = None, incs = None, defs = None,
|
|||||||
for d in olddefs:
|
for d in olddefs:
|
||||||
defs[d] = ""
|
defs[d] = ""
|
||||||
|
|
||||||
|
if (pkg.lower() == "swscale" and os.path.isfile(GetThirdpartyDir() + "ffmpeg/include/libswscale/swscale.h")):
|
||||||
|
# Let it be handled by the ffmpeg package
|
||||||
|
LibName(pkg, "-lswscale")
|
||||||
|
return
|
||||||
|
|
||||||
if (os.path.isdir(GetThirdpartyDir() + pkg.lower())):
|
if (os.path.isdir(GetThirdpartyDir() + pkg.lower())):
|
||||||
IncDirectory(pkg, GetThirdpartyDir() + pkg.lower() + "/include")
|
IncDirectory(pkg, GetThirdpartyDir() + pkg.lower() + "/include")
|
||||||
LibDirectory(pkg, GetThirdpartyDir() + pkg.lower() + "/lib")
|
LibDirectory(pkg, GetThirdpartyDir() + pkg.lower() + "/lib")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user