detect Raspberry Pi through bcm_host library

This commit is contained in:
Toad King 2012-06-19 12:42:32 -04:00
parent 9a35040fe6
commit 8e360138d3
1 changed files with 8 additions and 8 deletions

View File

@ -10,15 +10,15 @@ add_define_make NOUNUSED "$HAVE_NOUNUSED"
if [ "$OS" = 'BSD' ]; then DYLIB=-lc; else DYLIB=-ldl; fi if [ "$OS" = 'BSD' ]; then DYLIB=-lc; else DYLIB=-ldl; fi
if [ -d /opt/vc/lib ]; then [ -d /opt/vc/lib ] && add_library_dirs /opt/vc/lib
add_library_dirs /opt/vc/lib check_lib RPI -lbcm_host bcm_host_init
add_include_dirs /opt/vc/include
add_include_dirs /opt/vc/include/interface/vcos/pthreads if [ "$HAVE_RPI" = '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
# the gles library gets messed up with the gl library if available, so turn it off # the gles library gets messed up with the gl library if available, so turn it off
HAVE_OPENGL=no HAVE_OPENGL='no'
HAVE_RPI=yes
else
HAVE_RPI=no
fi fi
if [ "$LIBRETRO" ]; then if [ "$LIBRETRO" ]; then