mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
makepanda: don't build with OpenCV if we have ffmpeg enabled
(except on macOS, where we use OpenCV to provide webcam support)
This commit is contained in:
parent
90f96fc1a9
commit
751299d65a
@ -835,6 +835,7 @@ if (COMPILER=="GCC"):
|
||||
# Needed when linking ffmpeg statically on Linux.
|
||||
LibName("FFMPEG", "-Wl,-Bsymbolic")
|
||||
|
||||
if PkgSkip("FFMPEG") or GetTarget() == "darwin":
|
||||
cv_lib = ChooseLib(("opencv_core", "cv"), "OPENCV")
|
||||
if cv_lib == "opencv_core":
|
||||
OPENCV_VER_23 = True
|
||||
@ -842,6 +843,8 @@ if (COMPILER=="GCC"):
|
||||
else:
|
||||
SmartPkgEnable("OPENCV", "opencv", ("cv", "highgui", "cvaux", "ml", "cxcore"),
|
||||
("opencv", "opencv/cv.h", "opencv/cxcore.h", "opencv/highgui.h"))
|
||||
else:
|
||||
PkgDisable("OPENCV")
|
||||
|
||||
rocket_libs = ("RocketCore", "RocketControls")
|
||||
if (GetOptimize() <= 3):
|
||||
|
Loading…
x
Reference in New Issue
Block a user