Implement GLESv1.

Added a Makefile to build libGLESv1_CM.so. It's copied and adapted from the one
for libOpenGL.so.

The GLESv1 library currently exports all of the core functions in gl.xml for
GLES version 1.0.
This commit is contained in:
Kyle Brenneman 2015-11-13 15:17:20 -07:00
parent c0d9bbf184
commit 4038efca1f
5 changed files with 46 additions and 0 deletions

View file

@ -302,6 +302,7 @@ AC_CONFIG_FILES([Makefile
src/Makefile
src/GL/Makefile
src/OpenGL/Makefile
src/GLESv1/Makefile
src/GLESv2/Makefile
src/GLX/Makefile
src/x11glvnd/Makefile

43
src/GLESv1/Makefile.am Normal file
View file

@ -0,0 +1,43 @@
# Copyright (c) 2015, NVIDIA CORPORATION.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and/or associated documentation files (the
# "Materials"), to deal in the Materials without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Materials, and to
# permit persons to whom the Materials are furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# unaltered in all copies or substantial portions of the Materials.
# Any additions, deletions, or changes to the original source files
# must be clearly indicated in accompanying documentation.
#
# If only executable code is distributed, then the accompanying
# documentation must state that "this software is based in part on the
# work of the Khronos Group."
#
# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
lib_LTLIBRARIES = libGLESv1_CM.la
ENTRYPOINT_TARGET=glesv1
include $(top_srcdir)/src/OpenGL/entrypoint_common.mk
libGLESv1_CM_la_SOURCES = $(ENTRYPOINT_COMMON_FILES)
libGLESv1_CM_la_CFLAGS = $(ENTRYPOINT_COMMON_CFLAGS)
EXTRA_libGLESv1_CM_la_DEPENDENCIES = $(ENTRYPOINT_COMMON_DEPENDENCIES)
libGLESv1_CM_la_LDFLAGS = $(ENTRYPOINT_COMMON_LDFLAGS) \
-version-info 1
libGLESv1_CM_la_LIBADD = $(ENTRYPOINT_COMMON_LIBADD)

View file

View file

@ -3,6 +3,7 @@ SUBDIRS = util \
x11glvnd \
GLX \
OpenGL \
GLESv1 \
GLESv2 \
GL

View file

@ -42,6 +42,7 @@ _LIBRARY_FEATURE_NAMES = {
"GL_VERSION_3_2", "GL_VERSION_3_3", "GL_VERSION_4_0", "GL_VERSION_4_1",
"GL_VERSION_4_2", "GL_VERSION_4_3", "GL_VERSION_4_4", "GL_VERSION_4_5",
)),
"glesv1" : frozenset(("GL_VERSION_ES_CM_1_0",)),
"glesv2" : frozenset(("GL_ES_VERSION_2_0", "GL_ES_VERSION_3_0",
"GL_ES_VERSION_3_1" "GL_ES_VERSION_3_2",
)),