1 # Copyright © 2012 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,
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.
23 include $(top_srcdir)/src/gallium/Automake.inc
27 -I$(top_srcdir)/include \
28 -I$(top_srcdir)/src/gallium/drivers \
29 -I$(top_srcdir)/src/gallium/winsys \
30 $(GALLIUM_PIPE_LOADER_DEFINES) \
32 $(VISIBILITY_CFLAGS) \
36 pipedir = $(libdir)/gallium-pipe
43 $(top_builddir)/src/gallium/auxiliary/libgalliumvl.la
46 $(top_builddir)/src/gallium/auxiliary/libgalliumvl_stub.la
49 if NEED_GALLIUM_VL_WINSYS
51 $(top_builddir)/src/gallium/auxiliary/libgalliumvlwinsys.la
55 $(top_builddir)/src/gallium/auxiliary/libgallium.la \
56 $(top_builddir)/src/compiler/nir/libnir.la \
57 $(top_builddir)/src/util/libmesautil.la \
58 $(top_builddir)/src/gallium/drivers/rbug/librbug.la \
59 $(top_builddir)/src/gallium/drivers/trace/libtrace.la \
60 $(GALLIUM_COMMON_LIB_DEPS)
69 if HAVE_LD_VERSION_SCRIPT
71 -Wl,--version-script=$(top_srcdir)/src/gallium/targets/pipe-loader/pipe.sym
75 PIPE_LIBS += $(LLVM_LIBS)
76 AM_LDFLAGS += $(LLVM_LDFLAGS)
80 pipe_LTLIBRARIES += pipe_i915.la
82 pipe_i915_la_SOURCES = pipe_i915.c
83 nodist_EXTRA_pipe_i915_la_SOURCES = dummy.cpp
84 pipe_i915_la_LIBADD = \
86 $(top_builddir)/src/gallium/winsys/i915/drm/libi915drm.la \
87 $(top_builddir)/src/gallium/drivers/i915/libi915.la \
94 pipe_LTLIBRARIES += pipe_i965.la
96 pipe_i965_la_SOURCES = pipe_i965.c
97 nodist_EXTRA_pipe_i965_la_SOURCES = dummy.cpp
98 pipe_i965_la_LIBADD = \
100 $(top_builddir)/src/gallium/winsys/intel/drm/libintelwinsys.la \
101 $(top_builddir)/src/gallium/drivers/ilo/libilo.la \
107 if HAVE_GALLIUM_NOUVEAU
108 pipe_LTLIBRARIES += pipe_nouveau.la
110 pipe_nouveau_la_SOURCES = pipe_nouveau.c
111 nodist_EXTRA_pipe_nouveau_la_SOURCES = dummy.cpp
112 pipe_nouveau_la_LIBADD = \
114 $(top_builddir)/src/gallium/winsys/nouveau/drm/libnouveaudrm.la \
115 $(top_builddir)/src/gallium/drivers/nouveau/libnouveau.la \
122 pipe_LTLIBRARIES += pipe_r300.la
124 pipe_r300_la_SOURCES = pipe_r300.c
125 nodist_EXTRA_pipe_r300_la_SOURCES = dummy.cpp
126 pipe_r300_la_LIBADD = \
128 $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
129 $(top_builddir)/src/gallium/drivers/r300/libr300.la \
136 pipe_LTLIBRARIES += pipe_r600.la
138 pipe_r600_la_SOURCES = pipe_r600.c
139 nodist_EXTRA_pipe_r600_la_SOURCES = dummy.cpp
140 pipe_r600_la_LIBADD = \
142 $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
143 $(top_builddir)/src/gallium/drivers/radeon/libradeon.la \
144 $(top_builddir)/src/gallium/drivers/r600/libr600.la \
150 if HAVE_GALLIUM_RADEONSI
151 pipe_LTLIBRARIES += pipe_radeonsi.la
153 pipe_radeonsi_la_SOURCES = pipe_radeonsi.c
154 nodist_EXTRA_pipe_radeonsi_la_SOURCES = dummy.cpp
155 pipe_radeonsi_la_LIBADD = \
157 $(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
158 $(top_builddir)/src/gallium/winsys/amdgpu/drm/libamdgpuwinsys.la \
159 $(top_builddir)/src/gallium/drivers/radeon/libradeon.la \
160 $(top_builddir)/src/gallium/drivers/radeonsi/libradeonsi.la \
167 if HAVE_GALLIUM_FREEDRENO
168 pipe_LTLIBRARIES += pipe_msm.la
170 pipe_msm_la_SOURCES = pipe_msm.c
171 nodist_EXTRA_pipe_msm_la_SOURCES = dummy.cpp
172 pipe_msm_la_LIBADD = \
174 $(top_builddir)/src/gallium/winsys/freedreno/drm/libfreedrenodrm.la \
175 $(top_builddir)/src/gallium/drivers/freedreno/libfreedreno.la \
182 pipe_LTLIBRARIES += pipe_vmwgfx.la
184 pipe_vmwgfx_la_SOURCES = pipe_vmwgfx.c
185 nodist_EXTRA_pipe_vmwgfx_la_SOURCES = dummy.cpp
187 pipe_vmwgfx_la_LIBADD = \
189 $(top_builddir)/src/gallium/winsys/svga/drm/libsvgadrm.la \
190 $(top_builddir)/src/gallium/drivers/svga/libsvga.la \
195 if HAVE_GALLIUM_SWRAST
196 pipe_LTLIBRARIES += pipe_swrast.la
197 pipe_swrast_la_SOURCES = pipe_swrast.c
198 nodist_EXTRA_pipe_swrast_la_SOURCES = dummy.cpp
199 pipe_swrast_la_LIBADD = $(PIPE_LIBS)
201 if HAVE_GALLIUM_SOFTPIPE
202 AM_CPPFLAGS += -DGALLIUM_SOFTPIPE
204 pipe_swrast_la_LIBADD += \
205 $(top_builddir)/src/gallium/drivers/softpipe/libsoftpipe.la
208 if HAVE_GALLIUM_LLVMPIPE
209 AM_CPPFLAGS += -DGALLIUM_LLVMPIPE
211 pipe_swrast_la_LIBADD += \
212 $(top_builddir)/src/gallium/drivers/llvmpipe/libllvmpipe.la
216 AM_CPPFLAGS += -DGALLIUM_SWR
218 pipe_swrast_la_LIBADD += \
219 $(top_builddir)/src/gallium/drivers/swr/libmesaswr.la
222 pipe_swrast_la_LIBADD += \
223 $(GALLIUM_PIPE_LOADER_WINSYS_LIBS)
227 EXTRA_DIST = pipe.sym