We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2683

Summary: [patch] Raspberry PI support using CMake
Product: SDL Reporter: Tobias Himmer <provisorisch>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.1   
Hardware: ARM   
OS: Linux   
Attachments: Raspberry PI support using CMake

Description Tobias Himmer 2014-08-12 20:10:12 UTC
Created attachment 1813 [details]
Raspberry PI support using CMake

Hi,

this patch adds a check to the CMake build script to detect whether the VideoCore API is available.
If it is found, it enables SDL_VIDEO_DRIVER_RPI and will also add the needed include/library directory flags to CMAKE_C_FLAGS so the subsequent check for GLES succeeds in picking up the headers.

Seems to work fine on Raspbian.
Comment 1 Sam Lantinga 2014-08-17 06:29:06 UTC
Looks good, thanks!
https://hg.libsdl.org/SDL/rev/28e6de55eb07