1 # Copyright © 2013 Intel Corporation
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:
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
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
23 git_sha1.h: $(top_srcdir)/src/git_sha1.h.in
25 @$(PYTHON2) $(top_srcdir)/bin/git_sha1_gen.py --output $@
27 BUILT_SOURCES = git_sha1.h
28 CLEANFILES = $(BUILT_SOURCES)
29 EXTRA_DIST = git_sha1.h.in meson.build
31 SUBDIRS = . gtest util mapi/glapi/gen mapi
34 gldir = $(includedir)/GL
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
43 glxdir = $(includedir)/GL
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
53 osmesadir = $(includedir)/GL
54 osmesa_HEADERS = $(top_srcdir)/include/GL/osmesa.h
57 # include only conditionally ?
60 ## Optionally required by EGL
61 if HAVE_PLATFORM_WAYLAND
62 SUBDIRS += egl/wayland/wayland-drm
69 EXTRA_DIST += vulkan/registry/vk.xml
79 if HAVE_BROADCOM_DRIVERS
93 ## Optionally required by EGL (aka PLATFORM_GBM)
102 # Requires wayland-drm
103 if HAVE_RADEON_VULKAN
104 SUBDIRS += amd/vulkan
112 getopt hgl SConscript \
113 $(top_srcdir)/include/GL/mesa_glinterop.h
115 AM_CFLAGS = $(VISIBILITY_CFLAGS)
116 AM_CXXFLAGS = $(VISIBILITY_CXXFLAGS)
119 -I$(top_srcdir)/include/ \
120 -I$(top_srcdir)/src/mapi/ \
121 -I$(top_srcdir)/src/mesa/ \
122 -I$(top_srcdir)/src/gallium/include \
123 -I$(top_srcdir)/src/gallium/auxiliary \
126 noinst_LTLIBRARIES = libglsl_util.la
128 libglsl_util_la_SOURCES = \
129 mesa/main/extensions_table.c \
130 mesa/main/imports.c \
131 mesa/program/prog_parameter.c \
132 mesa/program/symbol_table.c \
133 mesa/program/dummy_errors.c