Bump libdeqp to android-22. am: e0ef7118f8 am: ce83935903 am: e695cc060c am: fb3620d081
[platform/upstream/VK-GL-CTS.git] / targets / raspi / raspi.cmake
1 #-------------------------------------------------------------------------
2 # drawElements CMake utilities
3 # ----------------------------
4 #
5 # Copyright 2016 The Android Open Source Project
6 #
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
10 #
11 #      http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 #
19 #-------------------------------------------------------------------------
20
21 # Raspberry Pi target
22 message("*** Using Raspberry Pi")
23 set(DEQP_TARGET_NAME    "Raspberry Pi")
24 set(DEQP_SUPPORT_VG             ON)
25
26 find_path(SYSTEM_INCLUDE bcm_host.h PATHS /usr/include /opt/vc/include)
27 include_directories(
28         ${SYSTEM_INCLUDE}
29         ${SYSTEM_INCLUDE}/interface/vcos/pthreads
30         )
31
32 # GLESv2 lib
33 find_library(GLES2_LIBRARY GLESv2 PATHS /usr/lib /opt/vc/lib)
34 set(DEQP_GLES2_LIBRARIES ${GLES2_LIBRARY})
35
36 # OpenVG lib
37 find_library(OPENVG_LIBRARY OpenVG PATHS /usr/lib /opt/vc/lib)
38 set(DEQP_VG_LIBRARIES ${OPENVG_LIBRARY})
39
40 # EGL lib
41 find_library(EGL_LIBRARY EGL PATHS /usr/lib /opt/vc/lib)
42 set(DEQP_EGL_LIBRARIES ${EGL_LIBRARY})
43
44 # Platform libs
45 find_library(BCM_HOST_LIBRARY NAMES bcm_host PATHS /usr/lib /opt/vc/lib)
46 set(DEQP_PLATFORM_LIBRARIES ${DEQP_PLATFORM_LIBRARIES} ${BCM_HOST_LIBRARY} ${GLES2_LIBRARY} ${EGL_LIBRARY})
47
48 get_filename_component(SYSLIB_PATH ${BCM_HOST_LIBRARY} PATH)
49 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath-link,${SYSLIB_PATH}")
50
51 # Platform sources
52 set(TCUTIL_PLATFORM_SRCS
53         raspi/tcuRaspiPlatform.cpp
54         raspi/tcuRaspiPlatform.hpp
55         tcuMain.cpp
56         )