Set the library path for GLESv1 and GLESv2 74/168774/3
authorHoyub Lee <hoyub.lee@samsung.com>
Wed, 26 Apr 2017 08:21:09 +0000 (17:21 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Wed, 31 Jan 2018 06:12:09 +0000 (06:12 +0000)
On EGL test cases(dEQP-EGL*), there are tests which uses GLES function
like glClear(). If library path is not set, each test cases will try
eglGetProcAddress to find gl symbols. However, normal gl symbol which is
not extension cannot be found if KHR_get_all_proc_address is not set.
Therefore, this patch sets the library path to cover up this case.

Change-Id: Ifa9ee7c7574fff0dfae09064eb68bfb3fc1832a1
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
targets/wayland/wayland.cmake

index 8adc417..a9de5cc 100644 (file)
@@ -24,6 +24,14 @@ set(DEQP_TARGET_NAME "Wayland")
 # Use Wayland target
 set(DEQP_USE_WAYLAND   ON)
 
+# GLESv1 lib
+find_library(GLES1_LIBRARY GLESv1_CM PATHS /usr/lib)
+set(DEQP_GLES1_LIBRARIES ${GLES1_LIBRARY})
+
+# GLESv2 lib
+find_library(GLES2_LIBRARY GLESv2 PATHS /usr/lib)
+set(DEQP_GLES2_LIBRARIES ${GLES2_LIBRARY})
+
 # Add FindWayland module
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/targets/default")
 
@@ -33,4 +41,4 @@ if (NOT WAYLAND_FOUND)
 endif ()
 
 set(DEQP_PLATFORM_LIBRARIES ${WAYLAND_LIBRARIES})
-include_directories(${WAYLAND_INCLUDE_DIR})
\ No newline at end of file
+include_directories(${WAYLAND_INCLUDE_DIR})