target-helpers: Do not build kms_dri on libdrm-less platforms.
[mesa.git] / src / gallium / targets / 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,
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 SUBDIRS =
24
25 if HAVE_DRI2
26 SUBDIRS += dri
27 else
28 if HAVE_DRISW
29 SUBDIRS += dri
30 endif
31 endif
32
33 if HAVE_X11_DRIVER
34 SUBDIRS += libgl-xlib
35 endif
36
37 if HAVE_ST_OMX
38 SUBDIRS += omx
39 endif
40
41 if HAVE_GALLIUM_OSMESA
42 SUBDIRS += osmesa
43 endif
44
45 if HAVE_GALLIUM_GBM
46 SUBDIRS += gbm
47 endif
48
49 if HAVE_ST_VDPAU
50 SUBDIRS += vdpau
51 endif
52
53 if HAVE_ST_XA
54 SUBDIRS += xa
55 endif
56
57 if HAVE_ST_XVMC
58 SUBDIRS += xvmc
59 endif
60
61 if HAVE_CLOVER
62 SUBDIRS += opencl
63 endif
64
65 if NEED_GALLIUM_LOADER
66 SUBDIRS += pipe-loader
67 endif
68
69 if HAVE_GALLIUM_EGL
70 SUBDIRS += egl-static
71 endif