1 #-------------------------------------------------------------------------
2 # drawElements CMake utilities
3 # ----------------------------
5 # Copyright 2016 The Android Open Source Project
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
11 # http://www.apache.org/licenses/LICENSE-2.0
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.
19 #-------------------------------------------------------------------------
22 message("*** Using Android")
23 set(DEQP_TARGET_NAME "Android")
24 set(DEQP_SUPPORT_GLES1 ON)
27 find_library(GLES1_LIBRARY GLESv1_CM PATHS /usr/lib)
28 set(DEQP_GLES1_LIBRARIES ${GLES1_LIBRARY})
31 find_library(GLES2_LIBRARY GLESv2 PATHS /usr/lib)
32 set(DEQP_GLES2_LIBRARIES ${GLES2_LIBRARY})
35 find_library(EGL_LIBRARY EGL PATHS /usr/lib)
36 set(DEQP_EGL_LIBRARIES ${EGL_LIBRARY})
39 find_library(LOG_LIBRARY NAMES log PATHS /usr/lib)
40 set(DEQP_PLATFORM_LIBRARIES ${DEQP_PLATFORM_LIBRARIES} ${LOG_LIBRARY})
42 if (DE_ANDROID_API GREATER 8)
43 # libandroid for NativeActivity APIs
44 find_library(ANDROID_LIBRARY NAMES android PATHS /usr/lib)
45 set(DEQP_PLATFORM_LIBRARIES ${DEQP_PLATFORM_LIBRARIES} ${ANDROID_LIBRARY})
48 # Android uses customized execserver
49 include_directories(execserver)
50 set(DEQP_PLATFORM_LIBRARIES xscore ${DEQP_PLATFORM_LIBRARIES})