gallium/radeon: invalidate busy linear textures for whole-texture uploads
[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 git_sha1.h:
23 @if test -e $(top_srcdir)/.git; then \
24 if which git > /dev/null; then \
25 git --git-dir=$(top_srcdir)/.git log -n 1 --oneline | \
26 sed 's/^\([^ ]*\) .*/#define MESA_GIT_SHA1 "git-\1"/' \
27 > git_sha1.h ; \
28 fi \
29 fi
30
31 BUILT_SOURCES = git_sha1.h
32
33 SUBDIRS = . gtest util mapi/glapi/gen mapi
34
35 # include only conditionally ?
36 SUBDIRS += compiler
37
38 if HAVE_INTEL_DRIVERS
39 SUBDIRS += intel
40 endif
41
42 if NEED_OPENGL_COMMON
43 SUBDIRS += mesa
44 endif
45
46 SUBDIRS += loader
47
48 if HAVE_DRI_GLX
49 SUBDIRS += glx
50 endif
51
52 ## Optionally required by GBM and EGL
53 if HAVE_PLATFORM_WAYLAND
54 SUBDIRS += egl/wayland/wayland-drm
55 endif
56
57 ## Optionally required by EGL (aka PLATFORM_GBM)
58 if HAVE_GBM
59 SUBDIRS += gbm
60 endif
61
62 ## Optionally required by EGL
63 if HAVE_PLATFORM_WAYLAND
64 SUBDIRS += egl/wayland/wayland-egl
65 endif
66
67 if HAVE_EGL
68 SUBDIRS += egl
69 endif
70
71 ## Requires the i965 compiler (part of mesa) and wayland-drm
72 if HAVE_INTEL_VULKAN
73 SUBDIRS += intel/vulkan
74 endif
75
76 if HAVE_GALLIUM
77 SUBDIRS += gallium
78 endif
79
80 EXTRA_DIST = \
81 getopt hgl SConscript git_sha1.h
82
83 AM_CFLAGS = $(VISIBILITY_CFLAGS)
84 AM_CXXFLAGS = $(VISIBILITY_CXXFLAGS)
85
86 AM_CPPFLAGS = \
87 -I$(top_srcdir)/include/ \
88 -I$(top_srcdir)/src/mapi/ \
89 -I$(top_srcdir)/src/mesa/ \
90 $(DEFINES)
91
92 noinst_LTLIBRARIES = libglsl_util.la
93
94 libglsl_util_la_SOURCES = \
95 mesa/main/imports.c \
96 mesa/program/prog_hash_table.c \
97 mesa/program/symbol_table.c \
98 mesa/program/dummy_errors.c