1 # Copyright (c) 2007 Intel Corporation. All Rights Reserved.
3 # Permission is hereby granted, free of charge, to any person obtaining a
4 # copy of this software and associated documentation files (the
5 # "Software"), to deal in the Software without restriction, including
6 # without limitation the rights to use, copy, modify, merge, publish,
7 # distribute, sub license, and/or sell copies of the Software, and to
8 # permit persons to whom the Software is furnished to do so, subject to
9 # the following conditions:
11 # The above copyright notice and this permission notice (including the
12 # next paragraph) shall be included in all copies or substantial portions
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
18 # IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
19 # ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 -DVA_DRIVERS_PATH="\"$(LIBVA_DRIVERS_PATH)\""
66 libva_source_h_priv = \
74 $(LDADD) -no-undefined \
75 -Wl,-version-script,${srcdir}/libva.syms \
83 libva_cflags += -fstack-protector
86 lib_LTLIBRARIES = libva.la
87 libvaincludedir = ${includedir}/va
88 libvainclude_HEADERS = $(libva_source_h)
89 noinst_HEADERS = $(libva_source_h_priv)
90 libva_la_SOURCES = $(libva_source_c)
91 libva_la_CFLAGS = $(libva_cflags)
92 libva_la_LDFLAGS = $(libva_ldflags)
93 libva_la_DEPENDENCIES = libva.syms
94 libva_la_LIBADD = $(LIBVA_LIBS) -ldl
98 lib_LTLIBRARIES += libva-drm.la
99 libva_drm_la_SOURCES =
100 libva_drm_la_CFLAGS = $(libva_cflags)
101 libva_drm_la_LDFLAGS = $(LDADD)
102 libva_drm_la_DEPENDENCIES = libva.la drm/libva_drm.la
103 libva_drm_la_LIBADD = libva.la drm/libva_drm.la \
104 $(LIBVA_LIBS) $(DRM_LIBS) -ldl
109 lib_LTLIBRARIES += libva-x11.la
110 libva_source_h += va_x11.h
111 libva_x11_la_SOURCES =
112 libva_x11_la_CFLAGS = $(libva_cflags)
113 libva_x11_la_LDFLAGS = $(LDADD)
114 libva_x11_la_DEPENDENCIES = libva.la x11/libva_x11.la
115 libva_x11_la_LIBADD = libva.la x11/libva_x11.la \
116 $(LIBVA_LIBS) $(X11_LIBS) $(XEXT_LIBS) $(XFIXES_LIBS) $(DRM_LIBS) -ldl
121 lib_LTLIBRARIES += libva-glx.la
122 libva_glx_la_SOURCES =
123 libva_glx_la_CFLAGS = $(libva_cflags)
124 libva_glx_la_LDFLAGS = $(LDADD)
125 libva_glx_la_DEPENDENCIES = libva.la glx/libva_glx.la libva-x11.la
126 libva_glx_la_LIBADD = libva.la glx/libva_glx.la libva-x11.la \
132 lib_LTLIBRARIES += libva-wayland.la
133 libva_wayland_la_SOURCES =
134 libva_wayland_la_CFLAGS = $(libva_cflags)
135 libva_wayland_la_LDFLAGS = $(LDADD)
136 libva_wayland_la_DEPENDENCIES = libva.la wayland/libva_wayland.la
137 libva_wayland_la_LIBADD = libva.la wayland/libva_wayland.la \
138 $(WAYLAND_LIBS) $(DRM_LIBS) -ldl
141 DIST_SUBDIRS = x11 glx drm wayland