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