hardware/intel/libva
Revision | b817eb2feb0f691dfcf543f2f3d1f7bba415b878 (tree) |
---|---|
Time | 2009-05-12 20:12:30 |
Author | Austin Yuan <shengquan.yuan@inte...> |
Commiter | Austin Yuan |
Added build information (build date/time, git commit point) into the library
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
@@ -30,6 +30,16 @@ libva_la_LDFLAGS = -version-number 0:30:0 -no-undefined | ||
30 | 30 | libva_la_LIBADD = $(LIBVA_LIBS) -ldl -ldrm -lX11 -lXext -lXv X11/libva_X11.la |
31 | 31 | CFLAGS = -ansi -O2 |
32 | 32 | |
33 | +nodist_libva_la_SOURCES = va_version.h | |
34 | +BUILT_SOURCES = va_version.h | |
35 | + | |
36 | +CLEANFILES = va_version.h | |
37 | + | |
38 | +va_version.h: Makefile | |
39 | + echo "#define VA_BUILD_DATE \"$(shell date +'%Y%m%d') $(shell date +'1%H%M%S') \"" > va_version.h | |
40 | + echo "#define VA_BUILD_GIT \"($(shell git log | head -n1 | cut -f2 -d' ')) \" " >> va_version.h | |
41 | + | |
42 | + | |
33 | 43 | SUBDIRS = X11 |
34 | 44 | |
35 | 45 | libva_la_SOURCES = va.c |
@@ -25,6 +25,8 @@ | ||
25 | 25 | #include "va.h" |
26 | 26 | #include "va_backend.h" |
27 | 27 | |
28 | +#include "va_version.h" | |
29 | + | |
28 | 30 | #include <assert.h> |
29 | 31 | #include <stdarg.h> |
30 | 32 | #include <stdio.h> |
@@ -32,6 +34,8 @@ | ||
32 | 34 | #include <dlfcn.h> |
33 | 35 | #include <unistd.h> |
34 | 36 | |
37 | +#define VA_STR_VERSION VA_BUILD_DATE VA_BUILD_GIT | |
38 | + | |
35 | 39 | #define VA_MAJOR_VERSION 0 |
36 | 40 | #define VA_MINOR_VERSION 30 |
37 | 41 | #define DRIVER_INIT_FUNC "__vaDriverInit_0_30" |
@@ -325,6 +329,8 @@ VAStatus vaInitialize ( | ||
325 | 329 | |
326 | 330 | va_debug_trace = (getenv("LIBVA_DEBUG_TRACE") != NULL); |
327 | 331 | |
332 | + va_infoMessage("libva build on %s\n", VA_STR_VERSION); | |
333 | + | |
328 | 334 | vaStatus = va_getDriverName(dpy, &driver_name); |
329 | 335 | va_infoMessage("va_getDriverName() returns %d\n", vaStatus); |
330 | 336 |