• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 # Copyright (c) 2007 Intel Corporation. All Rights Reserved.
2 #
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:
10 #
11 # The above copyright notice and this permission notice (including the
12 # next paragraph) shall be included in all copies or substantial portions
13 # of the Software.
14 #
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.
22 
23 SUBDIRS =
24 
25 INCLUDES = \
26 	$(LIBVA_CFLAGS) \
27 	-I$(top_srcdir) \
28 	-I$(top_srcdir)/va/x11 \
29 	-I$(top_srcdir)/va/vendor/intel \
30 	-DVA_DRIVERS_PATH="\"$(LIBVA_DRIVERS_PATH)\""
31 
32 LDADD = \
33 	$(LIBVA_LT_LDFLAGS)
34 
35 libva_source_c = \
36 	va.c			\
37 	va_compat.c		\
38 	va_fool.c		\
39 	va_trace.c		\
40 	$(NULL)
41 
42 libva_source_h = \
43 	va.h			\
44 	va_backend.h		\
45 	va_backend_tpi.h	\
46 	va_backend_vpp.h	\
47 	va_compat.h		\
48 	va_dec_hevc.h		\
49 	va_dec_jpeg.h		\
50 	va_dec_vp8.h		\
51 	va_dec_vp9.h		\
52 	va_drmcommon.h		\
53 	va_enc.h		\
54 	va_enc_h264.h		\
55 	va_enc_jpeg.h		\
56 	va_enc_vp8.h		\
57 	va_enc_mpeg2.h		\
58 	va_tpi.h		\
59 	va_version.h		\
60 	va_vpp.h		\
61 	$(NULL)
62 
63 libva_source_h_priv = \
64 	sysdeps.h		\
65 	va_fool.h		\
66 	va_trace.h		\
67 	$(NULL)
68 
69 libva_ldflags = \
70 	$(LDADD) -no-undefined	\
71 	-Wl,-version-script,libva.syms \
72 	$(NULL)
73 
74 lib_LTLIBRARIES			= libva.la
75 libvaincludedir			= ${includedir}/va
76 libvainclude_HEADERS		= $(libva_source_h)
77 noinst_HEADERS			= $(libva_source_h_priv)
78 libva_la_SOURCES		= $(libva_source_c)
79 libva_la_LDFLAGS		= $(libva_ldflags)
80 libva_la_DEPENDENCIES		= libva.syms
81 libva_la_LIBADD			= $(LIBVA_LIBS) -ldl
82 
83 lib_LTLIBRARIES			+= libva-tpi.la
84 libva_tpi_la_SOURCES		= va_tpi.c
85 libva_tpi_la_LDFLAGS		= $(LDADD) -no-undefined
86 libva_tpi_la_DEPENDENCIES	= libva.la
87 libva_tpi_la_LIBADD		= libva.la -ldl
88 
89 if USE_DRM
90 SUBDIRS				+= drm
91 lib_LTLIBRARIES			+= libva-drm.la
92 libva_drm_la_SOURCES		=
93 libva_drm_la_LDFLAGS		= $(LDADD)
94 libva_drm_la_DEPENDENCIES	= libva.la drm/libva_drm.la
95 libva_drm_la_LIBADD		= libva.la drm/libva_drm.la \
96 	$(LIBVA_LIBS) $(DRM_LIBS) -ldl
97 endif
98 
99 if USE_X11
100 SUBDIRS				+= x11
101 lib_LTLIBRARIES			+= libva-x11.la
102 libva_source_h			+= va_x11.h
103 libva_x11_la_SOURCES		=
104 libva_x11_la_LDFLAGS		= $(LDADD)
105 libva_x11_la_DEPENDENCIES	= libva.la x11/libva_x11.la
106 libva_x11_la_LIBADD		= libva.la x11/libva_x11.la \
107 	$(LIBVA_LIBS) $(X11_LIBS) $(XEXT_LIBS) $(XFIXES_LIBS) $(DRM_LIBS) -ldl
108 endif
109 
110 if USE_GLX
111 SUBDIRS				+= glx
112 lib_LTLIBRARIES			+= libva-glx.la
113 libva_glx_la_SOURCES		=
114 libva_glx_la_LDFLAGS		= $(LDADD)
115 libva_glx_la_DEPENDENCIES	= libva.la glx/libva_glx.la libva-x11.la
116 libva_glx_la_LIBADD		= libva.la glx/libva_glx.la libva-x11.la \
117 	$(GLX_LIBS) -ldl
118 endif
119 
120 if USE_EGL
121 SUBDIRS				+= egl
122 lib_LTLIBRARIES			+= libva-egl.la
123 libva_egl_la_SOURCES		=
124 libva_egl_la_LDFLAGS		= $(LDADD)
125 libva_egl_la_DEPENDENCIES	= libva.la egl/libva_egl.la
126 libva_egl_la_LIBADD		= libva.la egl/libva_egl.la \
127 	$(EGL_LIBS) -ldl
128 endif
129 
130 if USE_WAYLAND
131 SUBDIRS				+= wayland
132 lib_LTLIBRARIES			+= libva-wayland.la
133 libva_wayland_la_SOURCES	=
134 libva_wayland_la_LDFLAGS	= $(LDADD)
135 libva_wayland_la_DEPENDENCIES	= libva.la wayland/libva_wayland.la
136 libva_wayland_la_LIBADD		= libva.la wayland/libva_wayland.la \
137 	$(WAYLAND_LIBS) $(DRM_LIBS) -ldl
138 endif
139 
140 
141 DIST_SUBDIRS = x11 glx egl drm wayland
142 
143 DISTCLEANFILES = \
144 	va_version.h		\
145 	$(NULL)
146 
147 EXTRA_DIST = \
148 	va_version.h.in		\
149 	libva.syms		\
150 	$(NULL)
151