mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-23 21:21:19 +00:00
detect Raspberry Pi through bcm_host library
This commit is contained in:
parent
9a35040fe6
commit
8e360138d3
@ -10,15 +10,15 @@ add_define_make NOUNUSED "$HAVE_NOUNUSED"
|
||||
|
||||
if [ "$OS" = 'BSD' ]; then DYLIB=-lc; else DYLIB=-ldl; fi
|
||||
|
||||
if [ -d /opt/vc/lib ]; then
|
||||
add_library_dirs /opt/vc/lib
|
||||
add_include_dirs /opt/vc/include
|
||||
add_include_dirs /opt/vc/include/interface/vcos/pthreads
|
||||
[ -d /opt/vc/lib ] && add_library_dirs /opt/vc/lib
|
||||
check_lib RPI -lbcm_host bcm_host_init
|
||||
|
||||
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
|
||||
HAVE_OPENGL=no
|
||||
HAVE_RPI=yes
|
||||
else
|
||||
HAVE_RPI=no
|
||||
HAVE_OPENGL='no'
|
||||
fi
|
||||
|
||||
if [ "$LIBRETRO" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user