Added an option to force the compilation of Raspberry Pi specific bits.

Useful when the VC4 legacy driver is not used for GLES, but usage of 'omxplayer' is still desired.
This commit is contained in:
Cristi Mitrana 2019-07-17 14:53:10 +03:00
parent 13819ec0d9
commit 0903bb36ff

View file

@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 2.8)
option(GLES "Set to ON if targeting OpenGL ES" ${GLES})
option(GL "Set to ON if targeting Desktop OpenGL" ${GL})
option(RPI "Set to ON to enable the Raspberry PI video player (omxplayer)" ${RPI})
project(emulationstation-all)
@ -67,7 +68,7 @@ endif()
#-------------------------------------------------------------------------------
#set up compiler flags and excutable names
if(DEFINED BCMHOST)
if(DEFINED BCMHOST OR RPI)
add_definitions(-D_RPI_)
endif()