Title: [138217] trunk
Revision
138217
Author
commit-qu...@webkit.org
Date
2012-12-19 21:27:12 -0800 (Wed, 19 Dec 2012)

Log Message

[EFL] Allow the build system to find OpenGL ES
https://bugs.webkit.org/show_bug.cgi?id=104760

Patch by Yael Aharon <yael.aha...@intel.com> on 2012-12-19
Reviewed by Laszlo Gombos.

Add a way to find if GLESv2 is supported by the build system.
Support for GLESv2 will be added separately.

* Source/cmake/FindGLES.cmake: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/ChangeLog (138216 => 138217)


--- trunk/ChangeLog	2012-12-20 05:25:15 UTC (rev 138216)
+++ trunk/ChangeLog	2012-12-20 05:27:12 UTC (rev 138217)
@@ -1,3 +1,15 @@
+2012-12-19  Yael Aharon  <yael.aha...@intel.com>
+
+        [EFL] Allow the build system to find OpenGL ES
+        https://bugs.webkit.org/show_bug.cgi?id=104760
+
+        Reviewed by Laszlo Gombos.
+
+        Add a way to find if GLESv2 is supported by the build system.
+        Support for GLESv2 will be added separately.
+
+        * Source/cmake/FindGLES.cmake: Added.
+
 2012-12-19  Alexis Menard  <ale...@webkit.org>
 
         Implement CSS parsing for CSS transitions unprefixed.

Added: trunk/Source/cmake/FindGLES.cmake (0 => 138217)


--- trunk/Source/cmake/FindGLES.cmake	                        (rev 0)
+++ trunk/Source/cmake/FindGLES.cmake	2012-12-20 05:27:12 UTC (rev 138217)
@@ -0,0 +1,38 @@
+# - Try to find OpenGLES
+# Once done this will define
+#  
+#  OPENGLES2_FOUND        - system has OpenGLESv2 installed.
+#  OPENGLES2_INCLUDE_DIR  - directories which contain the OpenGlEsv2 headers.
+#  OPENGLES2_LIBRARIES    - libraries required to link against OpenGLESv2
+#
+# Copyright (C) 2012 Intel Corporation. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1.  Redistributions of source code must retain the above copyright
+#     notice, this list of conditions and the following disclaimer.
+# 2.  Redistributions in binary form must reproduce the above copyright
+#     notice, this list of conditions and the following disclaimer in the
+#     documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND ITS CONTRIBUTORS ``AS
+# IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR ITS
+# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+find_path(OPENGLES2_INCLUDE_DIR NAMES GLES2/gl2.h)
+
+find_library(OPENGLES2_LIBRARY NAMES GLESv2)
+
+include(FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(GLESv2 DEFAULT_MSG OPENGLES2_INCLUDE_DIR OPENGLES2_LIBRARY)
+
+mark_as_advanced(OPENGLES2_INCLUDE_DIR OPENGLES2_LIBRARY)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to