Cherry-pick image_format_properties changes from upstream
[platform/upstream/VK-GL-CTS.git] / targets / wayland / wayland.cmake
1 #-------------------------------------------------------------------------
2 # drawElements CMake utilities
3 # ----------------------------
4 #
5 # Copyright (c) 2016 The Khronos Group Inc.
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 message("*** Using Wayland target")
22 set(DEQP_TARGET_NAME    "WAYLAND")
23 set(DEQP_RUNTIME_LINK   ON)
24 set(DEQP_SUPPORT_GLES2  ON)
25 set(DEQP_SUPPORT_GLES3  ON)
26 set(DEQP_SUPPORT_EGL    ON)
27
28 # Use Wayland target
29 set(DEQP_USE_WAYLAND    ON)
30
31 # Add FindWayland module
32 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/targets/wayland")
33
34 find_package(Wayland)
35 if (NOT WAYLAND_FOUND)
36         message(FATAL_ERROR "Wayland development package not found")
37 endif ()
38
39 set(DEQP_PLATFORM_LIBRARIES ${WAYLAND_LIBRARIES})
40 include_directories(${WAYLAND_INCLUDE_DIR})
41
42 # Platform sources
43 set(TCUTIL_PLATFORM_SRCS
44         wayland/tcuWayland.cpp
45         wayland/tcuWayland.hpp
46         wayland/tcuWaylandPlatform.cpp
47         wayland/tcuWaylandPlatform.hpp
48         wayland/tcuWaylandEglPlatform.cpp
49         wayland/tcuWaylandEglPlatform.hpp
50         )