Merge pull request #5343 from gizmo98/master

Broadcom VC4: Add Videocore config option
This commit is contained in:
Twinaphex 2017-08-19 19:57:38 +02:00 committed by GitHub
commit d17bc12b32
2 changed files with 7 additions and 4 deletions

View File

@ -35,11 +35,13 @@ fi
add_define_make DYLIB_LIB "$DYLIB"
[ "$OS" = 'Darwin' ] && HAVE_X11=no # X11 breaks on recent OSXes even if present.
[ -d /opt/vc/lib ] && add_library_dirs /opt/vc/lib && add_library_dirs /opt/vc/lib/GL
check_lib VIDEOCORE -lbcm_host bcm_host_init "-lvcos -lvchiq_arm"
check_lib SYSTEMD -lsystemd sd_get_machine_names
if [ "$HAVE_VIDEOCORE" != "no" ]; then
[ -d /opt/vc/lib ] && add_library_dirs /opt/vc/lib && add_library_dirs /opt/vc/lib/GL
check_lib VIDEOCORE -lbcm_host bcm_host_init "-lvcos -lvchiq_arm"
fi
if [ "$HAVE_VIDEOCORE" = 'yes' ]; then
[ -d /opt/vc/include ] && add_include_dirs /opt/vc/include
[ -d /opt/vc/include/interface/vcos/pthreads ] && add_include_dirs /opt/vc/include/interface/vcos/pthreads
@ -109,7 +111,7 @@ if [ "$HAVE_EGL" != "no" -a "$OS" != 'Win32' ]; then
fi
fi
if [ "HAVE_SSA" != "no" ]; then
if [ "$HAVE_SSA" != "no" ]; then
check_lib SSA -lass ass_library_init
fi

View File

@ -103,3 +103,4 @@ HAVE_HID=yes # Low-level HID (Human Interface Device) support
HAVE_LANGEXTRA=yes # Multi-language support
HAVE_OSMESA=no # Off-screen Mesa rendering
HAVE_VIDEOPROCESSOR=auto # Enable video processor core
HAVE_VIDEOCORE=auto # Broadcom Videocore 4 support