summaryrefslogtreecommitdiff
path: root/src/gallium/targets/pipe-loader/Makefile.am
blob: 400b198fe29ed4508905f4b073cdaba0ee1d1bcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
# Copyright © 2012 Intel Corporation
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice (including the next
# paragraph) shall be included in all copies or substantial portions of the
# Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.

include $(top_srcdir)/src/gallium/Automake.inc

AM_CPPFLAGS = \
	$(GALLIUM_CFLAGS) \
	-I$(top_srcdir)/include \
	-I$(top_srcdir)/src/gallium/drivers \
	-I$(top_srcdir)/src/gallium/winsys \
	-I$(top_builddir)/src/util \
	$(GALLIUM_PIPE_LOADER_DEFINES) \
	$(LIBDRM_CFLAGS) \
	$(VISIBILITY_CFLAGS) \
	-DGALLIUM_RBUG \
	-DGALLIUM_TRACE

pipedir = $(libdir)/gallium-pipe
pipe_LTLIBRARIES =

PIPE_LIBS =

if NEED_GALLIUM_VL
PIPE_LIBS += \
	$(top_builddir)/src/gallium/auxiliary/libgalliumvl.la
else
PIPE_LIBS += \
	$(top_builddir)/src/gallium/auxiliary/libgalliumvl_stub.la
endif

if NEED_GALLIUM_VL_WINSYS
PIPE_LIBS+= \
	$(top_builddir)/src/gallium/auxiliary/libgalliumvlwinsys.la
endif

PIPE_LIBS += \
	$(top_builddir)/src/gallium/auxiliary/libgallium.la \
	$(top_builddir)/src/compiler/nir/libnir.la \
	$(top_builddir)/src/util/libmesautil.la \
	$(top_builddir)/src/gallium/drivers/rbug/librbug.la \
	$(top_builddir)/src/gallium/drivers/trace/libtrace.la \
	$(GALLIUM_COMMON_LIB_DEPS)

AM_LDFLAGS = \
	-module \
	-no-undefined \
	-avoid-version \
	$(GC_SECTIONS) \
	$(LD_NO_UNDEFINED)

if HAVE_LD_VERSION_SCRIPT
AM_LDFLAGS += \
	-Wl,--version-script=$(top_srcdir)/src/gallium/targets/pipe-loader/pipe.sym
endif

if HAVE_GALLIUM_LLVM
PIPE_LIBS += $(LLVM_LIBS)
AM_LDFLAGS += $(LLVM_LDFLAGS)
endif

if HAVE_GALLIUM_I915
pipe_LTLIBRARIES += pipe_i915.la

pipe_i915_la_SOURCES = pipe_i915.c
nodist_EXTRA_pipe_i915_la_SOURCES = dummy.cpp
pipe_i915_la_LIBADD = \
	$(PIPE_LIBS) \
	$(top_builddir)/src/gallium/winsys/i915/drm/libi915drm.la \
	$(top_builddir)/src/gallium/drivers/i915/libi915.la \
	$(LIBDRM_LIBS) \
	$(I915_LIBS)

endif

if HAVE_GALLIUM_NOUVEAU
pipe_LTLIBRARIES += pipe_nouveau.la

pipe_nouveau_la_SOURCES = pipe_nouveau.c
nodist_EXTRA_pipe_nouveau_la_SOURCES = dummy.cpp
pipe_nouveau_la_LIBADD = \
	$(PIPE_LIBS) \
	$(top_builddir)/src/gallium/winsys/nouveau/drm/libnouveaudrm.la \
	$(top_builddir)/src/gallium/drivers/nouveau/libnouveau.la \
	$(LIBDRM_LIBS) \
	$(NOUVEAU_LIBS)

endif

if HAVE_GALLIUM_R300
pipe_LTLIBRARIES += pipe_r300.la

pipe_r300_la_SOURCES = pipe_r300.c
nodist_EXTRA_pipe_r300_la_SOURCES = dummy.cpp
pipe_r300_la_LIBADD = \
	$(PIPE_LIBS) \
	$(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
	$(top_builddir)/src/gallium/drivers/r300/libr300.la \
	$(LIBDRM_LIBS) \
	$(RADEON_LIBS)

endif

if HAVE_GALLIUM_R600
pipe_LTLIBRARIES += pipe_r600.la

pipe_r600_la_SOURCES = pipe_r600.c
nodist_EXTRA_pipe_r600_la_SOURCES = dummy.cpp
pipe_r600_la_LIBADD = \
	$(PIPE_LIBS) \
	$(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
	$(top_builddir)/src/gallium/drivers/radeon/libradeon.la \
	$(top_builddir)/src/gallium/drivers/r600/libr600.la \
	$(LIBDRM_LIBS) \
	$(RADEON_LIBS) \
	$(LIBELF_LIBS)
endif

if HAVE_GALLIUM_RADEONSI
pipe_LTLIBRARIES += pipe_radeonsi.la

pipe_radeonsi_la_SOURCES = pipe_radeonsi.c
nodist_EXTRA_pipe_radeonsi_la_SOURCES = dummy.cpp
pipe_radeonsi_la_LIBADD = \
	$(PIPE_LIBS) \
	$(top_builddir)/src/gallium/winsys/radeon/drm/libradeonwinsys.la \
	$(top_builddir)/src/gallium/winsys/amdgpu/drm/libamdgpuwinsys.la \
	$(top_builddir)/src/gallium/drivers/radeon/libradeon.la \
	$(top_builddir)/src/gallium/drivers/radeonsi/libradeonsi.la \
	$(top_builddir)/src/amd/common/libamd_common.la \
	$(LIBDRM_LIBS) \
	$(RADEON_LIBS) \
	$(AMDGPU_LIBS)

endif

if HAVE_GALLIUM_FREEDRENO
pipe_LTLIBRARIES += pipe_msm.la

pipe_msm_la_SOURCES = pipe_msm.c
nodist_EXTRA_pipe_msm_la_SOURCES = dummy.cpp
pipe_msm_la_LIBADD = \
	$(PIPE_LIBS) \
	$(top_builddir)/src/gallium/winsys/freedreno/drm/libfreedrenodrm.la \
	$(top_builddir)/src/gallium/drivers/freedreno/libfreedreno.la \
	$(LIBDRM_LIBS) \
	$(FREEDRENO_LIBS)

endif

if HAVE_GALLIUM_SVGA
pipe_LTLIBRARIES += pipe_vmwgfx.la

pipe_vmwgfx_la_SOURCES = pipe_vmwgfx.c
nodist_EXTRA_pipe_vmwgfx_la_SOURCES = dummy.cpp

pipe_vmwgfx_la_LIBADD = \
	$(PIPE_LIBS) \
	$(top_builddir)/src/gallium/winsys/svga/drm/libsvgadrm.la \
	$(top_builddir)/src/gallium/drivers/svga/libsvga.la \
	$(LIBDRM_LIBS)

endif

if HAVE_GALLIUM_SWRAST
pipe_LTLIBRARIES += pipe_swrast.la
pipe_swrast_la_SOURCES = pipe_swrast.c
nodist_EXTRA_pipe_swrast_la_SOURCES = dummy.cpp
pipe_swrast_la_LIBADD = $(PIPE_LIBS)

if HAVE_GALLIUM_SOFTPIPE
AM_CPPFLAGS += -DGALLIUM_SOFTPIPE

pipe_swrast_la_LIBADD += \
	$(top_builddir)/src/gallium/drivers/softpipe/libsoftpipe.la
endif

if HAVE_GALLIUM_LLVMPIPE
AM_CPPFLAGS += -DGALLIUM_LLVMPIPE

pipe_swrast_la_LIBADD += \
	$(top_builddir)/src/gallium/drivers/llvmpipe/libllvmpipe.la
endif

if HAVE_GALLIUM_SWR
AM_CPPFLAGS += -DGALLIUM_SWR

pipe_swrast_la_LIBADD += \
	$(top_builddir)/src/gallium/drivers/swr/libmesaswr.la
endif

pipe_swrast_la_LIBADD += \
	$(GALLIUM_PIPE_LOADER_WINSYS_LIBS)

endif

EXTRA_DIST = pipe.sym