• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Raspberry Pi target
2message("*** Using Raspberry Pi")
3set(DEQP_TARGET_NAME	"Raspberry Pi")
4set(DEQP_SUPPORT_GLES2	ON)
5set(DEQP_SUPPORT_VG		ON)
6set(DEQP_SUPPORT_EGL	ON)
7
8find_path(SYSTEM_INCLUDE bcm_host.h PATHS /usr/include /opt/vc/include)
9include_directories(
10	${SYSTEM_INCLUDE}
11	${SYSTEM_INCLUDE}/interface/vcos/pthreads
12	)
13
14# GLESv2 lib
15find_library(GLES2_LIBRARY GLESv2 PATHS /usr/lib /opt/vc/lib)
16set(DEQP_GLES2_LIBRARIES ${GLES2_LIBRARY})
17
18# OpenVG lib
19find_library(OPENVG_LIBRARY OpenVG PATHS /usr/lib /opt/vc/lib)
20set(DEQP_VG_LIBRARIES ${OPENVG_LIBRARY})
21
22# EGL lib
23find_library(EGL_LIBRARY EGL PATHS /usr/lib /opt/vc/lib)
24set(DEQP_EGL_LIBRARIES ${EGL_LIBRARY})
25
26# Platform libs
27find_library(BCM_HOST_LIBRARY NAMES bcm_host PATHS /usr/lib /opt/vc/lib)
28set(DEQP_PLATFORM_LIBRARIES ${DEQP_PLATFORM_LIBRARIES} ${BCM_HOST_LIBRARY} ${GLES2_LIBRARY} ${EGL_LIBRARY})
29
30get_filename_component(SYSLIB_PATH ${BCM_HOST_LIBRARY} PATH)
31set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath-link,${SYSLIB_PATH}")
32
33# Platform sources
34set(TCUTIL_PLATFORM_SRCS
35	raspi/tcuRaspiPlatform.cpp
36	raspi/tcuRaspiPlatform.hpp
37	tcuMain.cpp
38	)
39