hwcontext_vaapi: Fix build with libva 2.0
[ffmpeg.git] / libavutil / Makefile
1 NAME = avutil
2 DESC = FFmpeg utility library
3
4 HEADERS = adler32.h                                                     \
5           aes.h                                                         \
6           aes_ctr.h                                                     \
7           attributes.h                                                  \
8           audio_fifo.h                                                  \
9           avassert.h                                                    \
10           avstring.h                                                    \
11           avutil.h                                                      \
12           base64.h                                                      \
13           blowfish.h                                                    \
14           bprint.h                                                      \
15           bswap.h                                                       \
16           buffer.h                                                      \
17           cast5.h                                                       \
18           camellia.h                                                    \
19           channel_layout.h                                              \
20           common.h                                                      \
21           cpu.h                                                         \
22           crc.h                                                         \
23           des.h                                                         \
24           dict.h                                                        \
25           display.h                                                     \
26           downmix_info.h                                                \
27           error.h                                                       \
28           eval.h                                                        \
29           fifo.h                                                        \
30           file.h                                                        \
31           frame.h                                                       \
32           hash.h                                                        \
33           hmac.h                                                        \
34           hwcontext.h                                                   \
35           hwcontext_cuda.h                                              \
36           hwcontext_d3d11va.h                                           \
37           hwcontext_drm.h                                               \
38           hwcontext_dxva2.h                                             \
39           hwcontext_qsv.h                                               \
40           hwcontext_vaapi.h                                             \
41           hwcontext_videotoolbox.h                                      \
42           hwcontext_vdpau.h                                             \
43           imgutils.h                                                    \
44           intfloat.h                                                    \
45           intreadwrite.h                                                \
46           lfg.h                                                         \
47           log.h                                                         \
48           macros.h                                                      \
49           mathematics.h                                                 \
50           mastering_display_metadata.h                                  \
51           md5.h                                                         \
52           mem.h                                                         \
53           motion_vector.h                                               \
54           murmur3.h                                                     \
55           opt.h                                                         \
56           parseutils.h                                                  \
57           pixdesc.h                                                     \
58           pixelutils.h                                                  \
59           pixfmt.h                                                      \
60           random_seed.h                                                 \
61           rc4.h                                                         \
62           rational.h                                                    \
63           replaygain.h                                                  \
64           ripemd.h                                                      \
65           samplefmt.h                                                   \
66           sha.h                                                         \
67           sha512.h                                                      \
68           spherical.h                                                   \
69           stereo3d.h                                                    \
70           threadmessage.h                                               \
71           time.h                                                        \
72           timecode.h                                                    \
73           timestamp.h                                                   \
74           tree.h                                                        \
75           twofish.h                                                     \
76           version.h                                                     \
77           xtea.h                                                        \
78           tea.h                                                         \
79
80 HEADERS-$(CONFIG_LZO)                   += lzo.h
81
82 HEADERS-$(CONFIG_OPENCL)                += opencl.h
83
84 ARCH_HEADERS = bswap.h                                                  \
85                intmath.h                                                \
86                intreadwrite.h                                           \
87                timer.h                                                  \
88
89 BUILT_HEADERS = avconfig.h                                              \
90                 ffversion.h
91
92 OBJS = adler32.o                                                        \
93        aes.o                                                            \
94        aes_ctr.o                                                        \
95        audio_fifo.o                                                     \
96        avstring.o                                                       \
97        base64.o                                                         \
98        blowfish.o                                                       \
99        bprint.o                                                         \
100        buffer.o                                                         \
101        cast5.o                                                          \
102        camellia.o                                                       \
103        channel_layout.o                                                 \
104        color_utils.o                                                    \
105        cpu.o                                                            \
106        crc.o                                                            \
107        des.o                                                            \
108        dict.o                                                           \
109        display.o                                                        \
110        downmix_info.o                                                   \
111        error.o                                                          \
112        eval.o                                                           \
113        fifo.o                                                           \
114        file.o                                                           \
115        file_open.o                                                      \
116        float_dsp.o                                                      \
117        fixed_dsp.o                                                      \
118        frame.o                                                          \
119        hash.o                                                           \
120        hmac.o                                                           \
121        hwcontext.o                                                      \
122        imgutils.o                                                       \
123        integer.o                                                        \
124        intmath.o                                                        \
125        lfg.o                                                            \
126        lls.o                                                            \
127        log.o                                                            \
128        log2_tab.o                                                       \
129        mathematics.o                                                    \
130        mastering_display_metadata.o                                     \
131        md5.o                                                            \
132        mem.o                                                            \
133        murmur3.o                                                        \
134        opt.o                                                            \
135        parseutils.o                                                     \
136        pixdesc.o                                                        \
137        pixelutils.o                                                     \
138        random_seed.o                                                    \
139        rational.o                                                       \
140        reverse.o                                                        \
141        rc4.o                                                            \
142        ripemd.o                                                         \
143        samplefmt.o                                                      \
144        sha.o                                                            \
145        sha512.o                                                         \
146        slicethread.o                                                    \
147        spherical.o                                                      \
148        stereo3d.o                                                       \
149        threadmessage.o                                                  \
150        time.o                                                           \
151        timecode.o                                                       \
152        tree.o                                                           \
153        twofish.o                                                        \
154        utils.o                                                          \
155        xga_font_data.o                                                  \
156        xtea.o                                                           \
157        tea.o                                                            \
158
159 OBJS-$(!HAVE_ATOMICS_NATIVE)            += atomic.o                     \
160
161 OBJS-$(CONFIG_CUDA)                     += hwcontext_cuda.o
162 OBJS-$(CONFIG_D3D11VA)                  += hwcontext_d3d11va.o
163 OBJS-$(CONFIG_DXVA2)                    += hwcontext_dxva2.o
164 OBJS-$(CONFIG_QSV)                   += hwcontext_qsv.o
165 OBJS-$(CONFIG_LIBDRM)                   += hwcontext_drm.o
166 OBJS-$(CONFIG_LZO)                      += lzo.o
167 OBJS-$(CONFIG_OPENCL)                   += opencl.o opencl_internal.o
168 OBJS-$(CONFIG_VAAPI)                    += hwcontext_vaapi.o
169 OBJS-$(CONFIG_VIDEOTOOLBOX)             += hwcontext_videotoolbox.o
170 OBJS-$(CONFIG_VDPAU)                    += hwcontext_vdpau.o
171
172 OBJS += $(COMPAT_OBJS:%=../compat/%)
173
174 # Windows resource file
175 SLIBOBJS-$(HAVE_GNU_WINDRES)            += avutilres.o
176
177 SKIPHEADERS-$(HAVE_CUDA_H)             += hwcontext_cuda.h
178 SKIPHEADERS-$(CONFIG_CUDA)             += hwcontext_cuda_internal.h
179 SKIPHEADERS-$(CONFIG_D3D11VA)          += hwcontext_d3d11va.h
180 SKIPHEADERS-$(CONFIG_DXVA2)            += hwcontext_dxva2.h
181 SKIPHEADERS-$(CONFIG_QSV)           += hwcontext_qsv.h
182 SKIPHEADERS-$(CONFIG_VAAPI)            += hwcontext_vaapi.h
183 SKIPHEADERS-$(CONFIG_VIDEOTOOLBOX)     += hwcontext_videotoolbox.h
184 SKIPHEADERS-$(CONFIG_VDPAU)            += hwcontext_vdpau.h
185 SKIPHEADERS-$(HAVE_ATOMICS_GCC)        += atomic_gcc.h
186 SKIPHEADERS-$(HAVE_ATOMICS_SUNCC)      += atomic_suncc.h
187 SKIPHEADERS-$(HAVE_ATOMICS_WIN32)      += atomic_win32.h
188 SKIPHEADERS-$(CONFIG_OPENCL)           += opencl.h
189
190 TESTPROGS = adler32                                                     \
191             aes                                                         \
192             aes_ctr                                                     \
193             atomic                                                      \
194             audio_fifo                                                  \
195             avstring                                                    \
196             base64                                                      \
197             blowfish                                                    \
198             bprint                                                      \
199             cast5                                                       \
200             camellia                                                    \
201             color_utils                                                 \
202             cpu                                                         \
203             crc                                                         \
204             des                                                         \
205             dict                                                        \
206             display                                                     \
207             error                                                       \
208             eval                                                        \
209             file                                                        \
210             fifo                                                        \
211             hash                                                        \
212             hmac                                                        \
213             imgutils                                                    \
214             lfg                                                         \
215             lls                                                         \
216             log                                                         \
217             md5                                                         \
218             murmur3                                                     \
219             opt                                                         \
220             pca                                                         \
221             parseutils                                                  \
222             pixdesc                                                     \
223             pixelutils                                                  \
224             pixfmt_best                                                 \
225             random_seed                                                 \
226             rational                                                    \
227             ripemd                                                      \
228             sha                                                         \
229             sha512                                                      \
230             softfloat                                                   \
231             tree                                                        \
232             twofish                                                     \
233             utf8                                                        \
234             xtea                                                        \
235             tea                                                         \
236
237 TESTPROGS-$(HAVE_THREADS)            += cpu_init
238 TESTPROGS-$(HAVE_LZO1X_999_COMPRESS) += lzo
239
240 TOOLS = crypto_bench ffhash ffeval ffescape
241
242 tools/crypto_bench$(EXESUF): ELIBS += $(if $(VERSUS),$(subst +, -l,+$(VERSUS)),)
243 tools/crypto_bench$(EXESUF): CFLAGS += -DUSE_EXT_LIBS=0$(if $(VERSUS),$(subst +,+USE_,+$(VERSUS)),)
244
245 $(SUBDIR)tests/lzo$(EXESUF): ELIBS = -llzo2