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.
24 DIST_SUBDIRS = $(SUBDIRS)
31 $(LIBVA_DEPS_CFLAGS) \
32 -DVA_DRIVERS_PATH="\"$(LIBVA_DRIVERS_PATH)\"" \
48 $(DRM_LIBS) -ldrm_intel \
72 gen75_picture_process.c \
76 gen9_post_processing.c \
78 i965_avc_hw_scoreboard.c\
80 i965_decoder_utils.c \
84 i965_encoder_utils.c \
90 i965_post_processing.c \
92 gen8_post_processing.c \
98 intel_batchbuffer_dump.c\
102 intel_media_common.c \
106 gen9_vp9_encoder_kernels.c \
107 gen9_vp9_const_def.c \
109 intel_common_vpp_internal.c \
110 i965_encoder_const_def.c \
111 gen9_avc_const_def.c \
112 gen9_avc_encoder_kernels.c \
113 i965_avc_encoder_common.c \
115 gen9_hevc_enc_kernels_binary.c \
116 gen9_hevc_encoder.c \
117 gen9_hevc_enc_utils.c \
126 gen75_picture_process.h \
129 gen8_post_processing.h \
134 i965_avc_hw_scoreboard.h\
137 i965_decoder_utils.h \
141 i965_encoder_utils.h \
149 i965_post_processing.h \
154 intel_batchbuffer.h \
155 intel_batchbuffer_dump.h\
166 va_backend_compat.h \
170 gen9_vp9_const_def.h \
171 gen9_vp9_encoder_kernels.h \
173 intel_common_vpp_internal.h \
174 i965_encoder_common.h \
176 gen9_avc_const_def.h \
177 gen9_avc_encoder_kernels.h \
179 i965_avc_encoder_common.h \
180 gen9_hevc_enc_const_def.h \
181 gen9_hevc_enc_kernels.h \
182 gen9_hevc_enc_utils.h \
183 gen9_hevc_encoder.h \
186 # convenience library that can be linked by driver and tests
187 noinst_LTLIBRARIES = libi965_drv_video.la
188 libi965_drv_video_la_CFLAGS = $(driver_cflags)
189 libi965_drv_video_la_LDFLAGS = $(driver_ldflags)
190 libi965_drv_video_la_LIBADD = $(driver_libs)
191 libi965_drv_video_la_SOURCES = $(source_c)
194 i965_drv_video_la_LTLIBRARIES = i965_drv_video.la
195 i965_drv_video_ladir = $(LIBVA_DRIVERS_PATH)
196 i965_drv_video_la_CFLAGS = $(driver_cflags)
197 i965_drv_video_la_LDFLAGS = -module $(driver_ldflags)
198 i965_drv_video_la_LIBADD = libi965_drv_video.la $(driver_libs)
199 i965_drv_video_la_SOURCES =
201 noinst_HEADERS = $(source_h)
204 source_c += i965_output_dri.c
205 source_h += i965_output_dri.h
209 source_c += i965_output_wayland.c
210 source_h += i965_output_wayland.h
211 source_h += $(protocol_source_h)
212 driver_cflags += $(WAYLAND_CFLAGS) $(WAYLAND_CLIENT_CFLAGS)
216 VERSION_FILE = .VERSION
217 OLD_VERSION_FILE = $(VERSION_FILE).old
218 NEW_VERSION_FILE = $(VERSION_FILE).new
219 PKG_VERSION_FILE = $(VERSION_FILE).pkg
221 intel_version.h: gen-version
223 OV=`[ -f $(OLD_VERSION_FILE) ] && cat $(OLD_VERSION_FILE) || :`; \
224 NV=`cat $(NEW_VERSION_FILE)`; \
225 if [ "$$OV" != "$$NV" -o ! -f intel_version.h ]; then \
226 cp -f $(NEW_VERSION_FILE) $(OLD_VERSION_FILE); \
227 $(SED) -e "s|\@INTEL_DRIVER_GIT_VERSION\@|$${NV}|" \
228 $(srcdir)/intel_version.h.in > intel_version.h; \
232 @echo $(VERSION) > $(NEW_VERSION_FILE)
234 @[ -d $(top_srcdir)/.git ] && \
235 (cd $(top_srcdir) && $(GIT) describe --tags) > $(NEW_VERSION_FILE) || :
237 @[ -f $(srcdir)/$(PKG_VERSION_FILE) ] && \
238 cp -f $(srcdir)/$(PKG_VERSION_FILE) $(NEW_VERSION_FILE) || :
240 $(PKG_VERSION_FILE): $(NEW_VERSION_FILE)
243 BUILT_SOURCES += intel_version.h
244 EXTRA_DIST += Android.mk intel_version.h.in $(PKG_VERSION_FILE)
247 protocol_source_h = wayland-drm-client-protocol.h
248 i965_output_wayland.c: $(protocol_source_h)
249 %-client-protocol.h : %.xml
250 $(AM_V_GEN)$(WAYLAND_SCANNER) client-header < $< > $@
256 # Extra clean files so that maintainer-clean removes *everything*
257 MAINTAINERCLEANFILES = Makefile.in config.h.in