From 0903bb36ff87879b24d366eb27c59721e780c928 Mon Sep 17 00:00:00 2001 From: Cristi Mitrana <31816814+cmitu@users.noreply.github.com> Date: Wed, 17 Jul 2019 14:53:10 +0300 Subject: [PATCH] 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. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ef2d778a2..f1f2c1be0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()