X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Ftype3_AndroidCloud%2Fanbox-master%2Fcmake%2FFindEGL.cmake;fp=src%2Ftype3_AndroidCloud%2Fanbox-master%2Fcmake%2FFindEGL.cmake;h=2ef95ff4448ed912cf1bbe3d9f3f97fbe4b33408;hb=e26c1ec581be598521517829adba8c8dd23a768f;hp=0000000000000000000000000000000000000000;hpb=6699c1aea74eeb0eb400e6299079f0c7576f716f;p=iec.git diff --git a/src/type3_AndroidCloud/anbox-master/cmake/FindEGL.cmake b/src/type3_AndroidCloud/anbox-master/cmake/FindEGL.cmake new file mode 100644 index 0000000..2ef95ff --- /dev/null +++ b/src/type3_AndroidCloud/anbox-master/cmake/FindEGL.cmake @@ -0,0 +1,25 @@ +# - Try to find EGL +# Once done this will define +# EGL_FOUND - System has EGL +# EGL_INCLUDE_DIRS - The EGL include directories +# EGL_LIBRARIES - The libraries needed to use EGL + +find_package(PkgConfig) +pkg_check_modules(PC_EGL QUIET egl) + +find_path(EGL_INCLUDE_DIR EGL/egl.h + HINTS ${PC_EGL_INCLUDEDIR} ${PC_EGL_INCLUDE_DIRS}) + +find_library(EGL_LIBRARY EGL + HINTS ${PC_EGL_LIBDIR} ${PC_EGL_LIBRARY_DIRS}) + +set(EGL_LIBRARIES ${EGL_LIBRARY}) +set(EGL_INCLUDE_DIRS ${EGL_INCLUDE_DIR}) + +include(FindPackageHandleStandardArgs) +# handle the QUIETLY and REQUIRED arguments and set EGL_FOUND to TRUE +# if all listed variables are TRUE +find_package_handle_standard_args(EGL DEFAULT_MSG + EGL_LIBRARY EGL_INCLUDE_DIR) + +mark_as_advanced(EGL_INCLUDE_DIR EGL_LIBRARY)