Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4358 Serge 1
# Copyright © 2012 Intel Corporation
2
#
3
# Permission is hereby granted, free of charge, to any person obtaining a
4
# copy of this software and associated documentation files (the "Software"),
5
# to deal in the Software without restriction, including without limitation
6
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
7
# and/or sell copies of the Software, and to permit persons to whom the
8
# Software is furnished to do so, subject to the following conditions:
9
#
10
# The above copyright notice and this permission notice (including the next
11
# paragraph) shall be included in all copies or substantial portions of the
12
# Software.
13
#
14
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20
# IN THE SOFTWARE.
21
 
22
AM_CPPFLAGS = \
23
	$(DEFINES) \
24
	-I$(top_srcdir)/include \
25
	-I$(top_srcdir)/src/mapi \
26
	-DMAPI_MODE_BRIDGE \
27
	-DMAPI_ABI_HEADER=\"glapi_mapi_tmp.h\"
28
 
29
AM_CFLAGS = $(VISIBILITY_CFLAGS)
30
 
31
TESTS = ABI-check
32
 
33
pkgconfigdir = $(libdir)/pkgconfig
34
pkgconfig_DATA = glesv2.pc
35
 
36
GLES2_includedir = $(includedir)/GLES2
37
GLES2_include_HEADERS = \
38
	$(top_srcdir)/include/GLES2/gl2.h \
39
	$(top_srcdir)/include/GLES2/gl2ext.h \
40
	$(top_srcdir)/include/GLES2/gl2platform.h
41
GLES3_includedir = $(includedir)/GLES3
42
GLES3_include_HEADERS = \
43
	$(top_srcdir)/include/GLES3/gl3.h \
44
	$(top_srcdir)/include/GLES3/gl3ext.h \
45
	$(top_srcdir)/include/GLES3/gl3platform.h
46
 
47
lib_LTLIBRARIES = libGLESv2.la
48
 
49
libGLESv2_la_SOURCES = ../entry.c glapi_mapi_tmp.h
50
libGLESv2_la_LIBADD = $(GLESv2_LIB_DEPS)
51
libGLESv2_la_LDFLAGS = -version-number 2 -no-undefined
52
 
53
if HAVE_SHARED_GLAPI
54
libGLESv2_la_LIBADD += ../shared-glapi/libglapi.la
55
endif
56
 
57
include ../glapi/gen/glapi_gen.mk
58
glapi_mapi_tmp.h: ../glapi/gen/gl_and_es_API.xml $(glapi_gen_mapi_deps)
59
	$(call glapi_gen_mapi,$<,es2api)
60
 
61
BUILT_SOURCES = glapi_mapi_tmp.h
62
CLEANFILES = $(BUILT_SOURCES)
63
 
64
# Provide compatibility with scripts for the old Mesa build system for
65
# a while by putting a link to the driver into /lib of the build tree.
66
all-local: libGLESv2.la
67
	$(MKDIR_P) $(top_builddir)/$(LIB_DIR);
68
	ln -f .libs/libGLESv2.so $(top_builddir)/$(LIB_DIR)/libGLESv2.so
69
	ln -f .libs/libGLESv2.so.2 $(top_builddir)/$(LIB_DIR)/libGLESv2.so.2
70
	ln -f .libs/libGLESv2.so.2.0.0 $(top_builddir)/$(LIB_DIR)/libGLESv2.so.2.0.0