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 - [patch] Raspberry PI support using CMake
Summary: [patch] Raspberry PI support using CMake
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.1
Hardware: ARM Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-12 20:10 UTC by Tobias Himmer
Modified: 2014-08-17 06:29 UTC (History)
0 users

See Also:


Attachments
Raspberry PI support using CMake (2.81 KB, patch)
2014-08-12 20:10 UTC, Tobias Himmer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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