forked from kodi-pvr/pvr.vdr.vnsi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- new FindEmbedded - it looks for presence of RPI or IMX6 - if Embedded found: - OpenGL find is skipped (this might find libGL.so on IMX6 otherwise) - pkgconfig is skipped (this might find Mesa libs on RPI if installed) (that means, for IMX6 GLES2 will be used, on RPI as well with preference of /opt/vc if found)
- Loading branch information
Showing
3 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# - Try to find embedded platforms (RPI/IMX6) | ||
# Once done this will define | ||
# | ||
# EMBEDDED_FOUND - system is RPI / IMX6 and we most probably want to compile for GLES2 support | ||
# (don't configure for OpenGL) | ||
|
||
string(REGEX MATCH "^arm" TARGET_ARCH_ARM "${CMAKE_SYSTEM_PROCESSOR}") | ||
if(NOT CMAKE_CROSSCOMPILING AND NOT TARGET_ARCH_ARM) | ||
return() | ||
endif(NOT CMAKE_CROSSCOMPILING AND NOT TARGET_ARCH_ARM) | ||
|
||
find_path(EMBEDDED_FOUND NAMES include/linux/imxfb.h include/bcm_host.h PATHS /opt/vc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters