radeonsi: enable GL_EXT_shader_image_load_formatted
[mesa.git] / src / gallium / targets / pipe-loader / 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 include $(top_srcdir)/src/gallium/Automake.inc
24
25 AM_CPPFLAGS = \
26 $(GALLIUM_CFLAGS) \
27 -I$(top_srcdir)/include \
28 -I$(top_builddir)/src/gallium/drivers \
29 -I$(top_srcdir)/src/gallium/drivers \
30 -I$(top_srcdir)/src/gallium/winsys \
31 -I$(top_builddir)/src/util \
32 $(GALLIUM_PIPE_LOADER_DEFINES) \
33 $(LIBDRM_CFLAGS) \
34 $(VISIBILITY_CFLAGS)
35
36 pipedir = $(libdir)/gallium-pipe
37 pipe_LTLIBRARIES =
38
39 PIPE_LIBS =
40
41 if NEED_GALLIUM_VL
42 PIPE_LIBS += \
43 $(top_builddir)/src/gallium/auxiliary/libgalliumvl.la
44 else
45 PIPE_LIBS += \
46 $(top_builddir)/src/gallium/auxiliary/libgalliumvl_stub.la
47 endif
48
49 if NEED_GALLIUM_VL_WINSYS
50 PIPE_LIBS+= \
51 $(top_builddir)/src/gallium/auxiliary/libgalliumvlwinsys.la
52 endif
53
54 PIPE_LIBS += \
55 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
56 $(top_builddir)/src/compiler/nir/libnir.la \
57 $(top_builddir)/src/util/libmesautil.la \
58 $(GALLIUM_COMMON_LIB_DEPS)
59
60 AM_LDFLAGS = \
61 -module \
62 -no-undefined \
63 -avoid-version \
64 $(GC_SECTIONS)
65
66 if HAVE_LD_VERSION_SCRIPT
67 AM_LDFLAGS += \
68 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/pipe-loader/pipe.sym
69 endif
70
71 if HAVE_GALLIUM_LLVM
72 PIPE_LIBS += $(LLVM_LIBS)
73 AM_LDFLAGS += $(LLVM_LDFLAGS)
74 endif
75
76 if HAVE_GALLIUM_I915
77 pipe_LTLIBRARIES += pipe_i915.la
78
79 pipe_i915_la_SOURCES = pipe_i915.c
80 nodist_EXTRA_pipe_i915_la_SOURCES = dummy.cpp
81 pipe_i915_la_LIBADD = \
82 $(PIPE_LIBS) \
83 $(top_builddir)/src/gallium/winsys/i915/drm/libi915drm.la \
84 $(top_builddir)/src/gallium/drivers/i915/libi915.la \
85 $(LIBDRM_LIBS) \
86 $(I915_LIBS)
87
88 endif
89
90 if HAVE_GALLIUM_NOUVEAU
91 pipe_LTLIBRARIES += pipe_nouveau.la
92
93 pipe_nouveau_la_SOURCES = pipe_nouveau.c
94 nodist_EXTRA_pipe_nouveau_la_SOURCES = dummy.cpp
95 pipe_nouveau_la_LIBADD = \
96 $(PIPE_LIBS) \
97 $(top_builddir)/src/gallium/winsys/nouveau/drm/libnouveaudrm.la \
98 $(top_builddir)/src/gallium/drivers/nouveau/libnouveau.la \
99 $(LIBDRM_LIBS) \
100 $(NOUVEAU_LIBS)
101
102 endif
103
104 if HAVE_GALLIUM_R300
105 pipe_LTLIBRARIES += pipe_r300.la
106
107 pipe_r300_la_SOURCES = pipe_r300.c
108 nodist_EXTRA_pipe_r300_la_SOURCES = dummy.cpp
109 pipe_r300_la_LIBADD = \
110 $(PIPE_LIBS) \
111 $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
112 $(top_builddir)/src/gallium/drivers/r300/libr300.la \
113 $(LIBDRM_LIBS) \
114 $(RADEON_LIBS)
115
116 endif
117
118 if HAVE_GALLIUM_R600
119 pipe_LTLIBRARIES += pipe_r600.la
120
121 pipe_r600_la_SOURCES = pipe_r600.c
122 nodist_EXTRA_pipe_r600_la_SOURCES = dummy.cpp
123 pipe_r600_la_LIBADD = \
124 $(PIPE_LIBS) \
125 $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
126 $(top_builddir)/src/gallium/drivers/r600/libr600.la \
127 $(LIBDRM_LIBS) \
128 $(RADEON_LIBS) \
129 $(LIBELF_LIBS)
130 endif
131
132 if HAVE_GALLIUM_RADEONSI
133 pipe_LTLIBRARIES += pipe_radeonsi.la
134
135 pipe_radeonsi_la_SOURCES = pipe_radeonsi.c
136 nodist_EXTRA_pipe_radeonsi_la_SOURCES = dummy.cpp
137 pipe_radeonsi_la_LIBADD = \
138 $(PIPE_LIBS) \
139 $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
140 $(top_builddir)/src/gallium/winsys/amdgpu/drm/libamdgpuwinsys.la \
141 $(top_builddir)/src/gallium/drivers/radeonsi/libradeonsi.la \
142 $(top_builddir)/src/amd/common/libamd_common.la \
143 $(top_builddir)/src/util/libxmlconfig.la \
144 $(LIBDRM_LIBS) \
145 $(RADEON_LIBS) \
146 $(AMDGPU_LIBS)
147
148 endif
149
150 if HAVE_GALLIUM_FREEDRENO
151 pipe_LTLIBRARIES += pipe_msm.la
152
153 pipe_msm_la_SOURCES = pipe_msm.c
154 nodist_EXTRA_pipe_msm_la_SOURCES = dummy.cpp
155 pipe_msm_la_LIBADD = \
156 $(PIPE_LIBS) \
157 $(top_builddir)/src/gallium/winsys/freedreno/drm/libfreedrenodrm.la \
158 $(top_builddir)/src/gallium/drivers/freedreno/libfreedreno.la \
159 $(top_builddir)/src/freedreno/libfreedreno_drm.la \
160 $(top_builddir)/src/freedreno/libfreedreno_ir3.la \
161 $(LIBDRM_LIBS) \
162 $(FREEDRENO_LIBS)
163
164 endif
165
166 if HAVE_GALLIUM_SVGA
167 pipe_LTLIBRARIES += pipe_vmwgfx.la
168
169 pipe_vmwgfx_la_SOURCES = pipe_vmwgfx.c
170 nodist_EXTRA_pipe_vmwgfx_la_SOURCES = dummy.cpp
171
172 pipe_vmwgfx_la_LIBADD = \
173 $(PIPE_LIBS) \
174 $(top_builddir)/src/gallium/winsys/svga/drm/libsvgadrm.la \
175 $(top_builddir)/src/gallium/drivers/svga/libsvga.la \
176 $(LIBDRM_LIBS)
177
178 endif
179
180 if HAVE_GALLIUM_SWRAST
181 pipe_LTLIBRARIES += pipe_swrast.la
182 pipe_swrast_la_SOURCES = pipe_swrast.c
183 nodist_EXTRA_pipe_swrast_la_SOURCES = dummy.cpp
184 pipe_swrast_la_LIBADD = $(PIPE_LIBS)
185
186 if HAVE_GALLIUM_SOFTPIPE
187 AM_CPPFLAGS += -DGALLIUM_SOFTPIPE
188
189 pipe_swrast_la_LIBADD += \
190 $(top_builddir)/src/gallium/drivers/softpipe/libsoftpipe.la
191 endif
192
193 if HAVE_GALLIUM_LLVMPIPE
194 AM_CPPFLAGS += -DGALLIUM_LLVMPIPE
195
196 pipe_swrast_la_LIBADD += \
197 $(top_builddir)/src/gallium/drivers/llvmpipe/libllvmpipe.la
198 endif
199
200 if HAVE_GALLIUM_SWR
201 AM_CPPFLAGS += -DGALLIUM_SWR
202
203 pipe_swrast_la_LIBADD += \
204 $(top_builddir)/src/gallium/drivers/swr/libmesaswr.la
205 endif
206
207 pipe_swrast_la_LIBADD += \
208 $(GALLIUM_PIPE_LOADER_WINSYS_LIBS)
209
210 endif
211
212 EXTRA_DIST = pipe.sym meson.build