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,
15
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
# NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
# DEALINGS IN THE SOFTWARE.
22
 
23
AUTOMAKE_OPTIONS = subdir-objects
24
 
25
include $(top_srcdir)/src/gallium/Automake.inc
26
 
27
AM_CFLAGS = $(GALLIUM_CFLAGS)
28
AM_CPPFLAGS = \
29
	-I$(top_srcdir)/src/egl/main \
30
	-I$(top_builddir)/src/egl/wayland/wayland-drm/ \
31
	-I$(top_srcdir)/include
32
 
33
noinst_LTLIBRARIES = libegl.la
34
libegl_la_SOURCES = \
35
	common/egl_g3d_api.c \
36
	common/egl_g3d.c \
37
	common/egl_g3d_image.c \
38
	common/egl_g3d_st.c \
39
	common/egl_g3d_sync.c \
40
	common/native_helper.c \
41
	common/native_wayland_drm_bufmgr_helper.c
42
 
43
if HAVE_EGL_PLATFORM_X11
44
libegl_la_SOURCES += \
45
	x11/glxinit.c \
46
	x11/native_dri2.c \
47
	x11/native_x11.c \
48
	x11/native_ximage.c \
49
	x11/x11_screen.c \
50
	x11/dri2.c
51
AM_CFLAGS += \
52
	$(X11_CFLAGS) \
53
	$(LIBDRM_CFLAGS) \
54
	$(DRI2PROTO_CFLAGS)
55
AM_CPPFLAGS += \
56
	-I$(top_srcdir)/src/gallium/drivers \
57
	-I$(top_srcdir)/src/glx \
58
	-I$(top_srcdir)/src/mapi \
59
	-I$(top_srcdir)/src/mesa \
60
	-DHAVE_X11_BACKEND
61
endif
62
 
63
if HAVE_EGL_PLATFORM_WAYLAND
64
libegl_la_SOURCES += \
65
	wayland/native_drm.c \
66
	wayland/native_shm.c \
67
	wayland/native_wayland.c
68
AM_CFLAGS += \
69
	$(LIBDRM_CFLAGS) \
70
	$(WAYLAND_CFLAGS)
71
AM_CPPFLAGS += \
72
	-I$(top_srcdir)/src/gallium/winsys \
73
	-I$(top_srcdir)/src/egl/wayland/wayland-egl \
74
	-I$(top_srcdir)/src/egl/wayland/wayland-drm \
75
	-I$(top_builddir)/src/egl/wayland/wayland-drm \
76
	-DHAVE_WAYLAND_BACKEND
77
endif
78
 
79
if HAVE_EGL_PLATFORM_DRM
80
libegl_la_SOURCES += \
81
	drm/modeset.c \
82
	drm/native_drm.c
83
AM_CFLAGS += \
84
	$(LIBDRM_CFLAGS)
85
AM_CPPFLAGS += \
86
	-I$(top_srcdir)/src/gallium/winsys \
87
	-I$(top_srcdir)/src/gbm/main \
88
	-I$(top_srcdir)/src/gallium/state_trackers/gbm \
89
	-DHAVE_DRM_BACKEND
90
endif
91
 
92
if HAVE_EGL_PLATFORM_FBDEV
93
libegl_la_SOURCES += fbdev/native_fbdev.c
94
AM_CPPFLAGS += \
95
	-I$(top_srcdir)/src/gallium/winsys/sw \
96
	-DHAVE_FBDEV_BACKEND
97
endif
98
 
99
if HAVE_EGL_PLATFORM_NULL
100
libegl_la_SOURCES += null/native_null.c
101
AM_CPPFLAGS += \
102
	-I$(top_srcdir)/src/gallium/winsys/sw \
103
	-DHAVE_NULL_BACKEND
104
endif