dri: fromPlanar() can return NULL as a valid result
[mesa.git] / src / Makefile.am
1 # Copyright © 2013 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 .PHONY: git_sha1.h
23 git_sha1.h: $(top_srcdir)/src/git_sha1.h.in
24 @echo "updating $@"
25 @$(PYTHON2) $(top_srcdir)/bin/git_sha1_gen.py --output $@
26
27 BUILT_SOURCES = git_sha1.h
28 CLEANFILES = $(BUILT_SOURCES)
29 EXTRA_DIST = git_sha1.h.in meson.build
30
31 SUBDIRS = . gtest util mapi/glapi/gen mapi
32
33 if HAVE_OPENGL
34 gldir = $(includedir)/GL
35 gl_HEADERS = \
36 $(top_srcdir)/include/GL/gl.h \
37 $(top_srcdir)/include/GL/glext.h \
38 $(top_srcdir)/include/GL/glcorearb.h \
39 $(top_srcdir)/include/GL/gl_mangle.h
40 endif
41
42 if HAVE_GLX
43 glxdir = $(includedir)/GL
44 glx_HEADERS = \
45 $(top_srcdir)/include/GL/glx.h \
46 $(top_srcdir)/include/GL/glxext.h \
47 $(top_srcdir)/include/GL/glx_mangle.h
48 pkgconfigdir = $(libdir)/pkgconfig
49 pkgconfig_DATA = mesa/gl.pc
50 endif
51
52 if HAVE_COMMON_OSMESA
53 osmesadir = $(includedir)/GL
54 osmesa_HEADERS = $(top_srcdir)/include/GL/osmesa.h
55 endif
56
57 # include only conditionally ?
58 SUBDIRS += compiler
59
60 ## Optionally required by EGL
61 if HAVE_PLATFORM_WAYLAND
62 SUBDIRS += egl/wayland/wayland-drm
63 endif
64
65 if HAVE_VULKAN_COMMON
66 SUBDIRS += vulkan
67 endif
68
69 EXTRA_DIST += vulkan/registry/vk.xml
70 EXTRA_DIST += vulkan/registry/vk_android_native_buffer.xml
71
72 if HAVE_AMD_DRIVERS
73 SUBDIRS += amd
74 endif
75
76 if HAVE_INTEL_DRIVERS
77 SUBDIRS += intel
78 endif
79
80 if HAVE_BROADCOM_DRIVERS
81 SUBDIRS += broadcom
82 endif
83
84 if NEED_OPENGL_COMMON
85 SUBDIRS += mesa
86 endif
87
88 SUBDIRS += loader
89
90 if HAVE_DRI_GLX
91 SUBDIRS += glx
92 endif
93
94 ## Optionally required by EGL (aka PLATFORM_GBM)
95 if HAVE_GBM
96 SUBDIRS += gbm
97 endif
98
99 ## Optionally required by EGL
100 if HAVE_PLATFORM_WAYLAND
101 SUBDIRS += egl/wayland/wayland-egl
102 endif
103
104 if HAVE_EGL
105 SUBDIRS += egl
106 endif
107
108 # Requires wayland-drm
109 if HAVE_RADEON_VULKAN
110 SUBDIRS += amd/vulkan
111 endif
112
113 if HAVE_GALLIUM
114 SUBDIRS += gallium
115 endif
116
117 EXTRA_DIST += \
118 getopt hgl SConscript \
119 $(top_srcdir)/include/GL/mesa_glinterop.h
120
121 AM_CFLAGS = $(VISIBILITY_CFLAGS)
122 AM_CXXFLAGS = $(VISIBILITY_CXXFLAGS)
123
124 AM_CPPFLAGS = \
125 -I$(top_srcdir)/include/ \
126 -I$(top_srcdir)/src/mapi/ \
127 -I$(top_srcdir)/src/mesa/ \
128 -I$(top_srcdir)/src/gallium/include \
129 -I$(top_srcdir)/src/gallium/auxiliary \
130 $(DEFINES)
131
132 noinst_LTLIBRARIES = libglsl_util.la
133
134 libglsl_util_la_SOURCES = \
135 mesa/main/extensions_table.c \
136 mesa/main/imports.c \
137 mesa/program/prog_parameter.c \
138 mesa/program/symbol_table.c \
139 mesa/program/dummy_errors.c