File: FindEMBEDDED.cmake

package info (click to toggle)
kodi-pvr-vdr-vnsi 3.6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,068 kB
  • sloc: cpp: 6,536; xml: 2,400; makefile: 16
file content (12 lines) | stat: -rw-r--r-- 516 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
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)