st/nine: Refactor how user constbufs sizes are calculated
[mesa.git] / src / gallium / state_trackers / egl / Makefile.am
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 Makefile.sources
26 include $(top_srcdir)/src/gallium/Automake.inc
27
28 AM_CFLAGS = \
29 $(GALLIUM_CFLAGS) \
30 $(VISIBILITY_CFLAGS)
31
32 AM_CPPFLAGS = \
33 -I$(top_srcdir)/src/egl/main \
34 -I$(top_builddir)/src/egl/wayland/wayland-drm/ \
35 -I$(top_srcdir)/src/gallium/winsys
36
37 noinst_LTLIBRARIES = libegl.la
38 libegl_la_SOURCES = $(common_FILES)
39
40 if HAVE_EGL_PLATFORM_X11
41 libegl_la_SOURCES += $(x11_FILES) $(x11_drm_FILES)
42 AM_CFLAGS += \
43 $(X11_INCLUDES) \
44 $(LIBDRM_CFLAGS) \
45 $(DRI2PROTO_CFLAGS)
46 AM_CPPFLAGS += \
47 -I$(top_srcdir)/src/glx \
48 -I$(top_srcdir)/src/mapi \
49 -I$(top_srcdir)/src/mesa \
50 -DHAVE_X11_BACKEND
51 endif
52
53 if HAVE_EGL_PLATFORM_WAYLAND
54 libegl_la_SOURCES += $(wayland_FILES)
55 AM_CFLAGS += \
56 $(LIBDRM_CFLAGS) \
57 $(WAYLAND_CFLAGS)
58 AM_CPPFLAGS += \
59 -I$(top_srcdir)/src/egl/wayland/wayland-egl \
60 -I$(top_srcdir)/src/egl/wayland/wayland-drm \
61 -I$(top_builddir)/src/egl/wayland/wayland-drm \
62 -DHAVE_WAYLAND_BACKEND
63 endif
64
65 if HAVE_EGL_PLATFORM_DRM
66 libegl_la_SOURCES += $(drm_FILES)
67 AM_CFLAGS += \
68 $(LIBDRM_CFLAGS)
69 AM_CPPFLAGS += \
70 -I$(top_srcdir)/src/loader \
71 -I$(top_srcdir)/src/gbm/main \
72 -I$(top_srcdir)/src/gallium/state_trackers/gbm \
73 -DHAVE_DRM_BACKEND
74 endif
75
76 if HAVE_EGL_PLATFORM_FBDEV
77 libegl_la_SOURCES += $(fbdev_FILES)
78 AM_CPPFLAGS += \
79 -DHAVE_FBDEV_BACKEND
80 endif
81
82 if HAVE_EGL_PLATFORM_NULL
83 libegl_la_SOURCES += $(null_FILES)
84 AM_CPPFLAGS += \
85 -DHAVE_NULL_BACKEND
86 endif
87
88 if HAVE_OPENGL
89 AM_CPPFLAGS += \
90 -DFEATURE_GL=1
91 endif
92
93 if HAVE_OPENGL_ES1
94 AM_CPPFLAGS += \
95 -DFEATURE_ES1=1
96 endif
97
98 if HAVE_OPENGL_ES2
99 AM_CPPFLAGS += \
100 -DFEATURE_ES2=1
101 endif
102
103 if HAVE_OPENVG
104 AM_CPPFLAGS += \
105 -DFEATURE_VG=1
106 endif
107
108 EXTRA_DIST = \
109 SConscript \
110 $(android_FILES) $(gdi_FILES)