From fece4e3053b7be7b5d736a9609bb2b1b8deef4bd Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 29 Jul 2013 00:58:44 +0200 Subject: build: fix build with vdpau, simplify Instead of generating vdpau_template.c with a Perl script, just include the generated file in git. This is ok because it changes very rarely, and the script is larger than the output it generates. It also simplify the Makefile, and fixes the build. The problem was that transitive dependencies do not work with generated files: there is no dependency information yet when building it the first time. I overlooked this because I didn't delete the .d files for testing (which contained the correct dependencies, but only _after_ a first successful build). --- video/out/vo_vdpau.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/vo_vdpau.c') diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c index 414071b5a0..57d747dc4b 100644 --- a/video/out/vo_vdpau.c +++ b/video/out/vo_vdpau.c @@ -421,7 +421,7 @@ static int win_x11_init_vdpau_procs(struct vo *vo) static const struct vdp_function vdp_func[] = { #define VDP_FUNCTION(_, macro_name, mp_name) {macro_name, offsetof(struct vdp_functions, mp_name)}, -#include "vdpau_template.c" +#include "video/vdpau_functions.inc" #undef VDP_FUNCTION {0, -1} }; -- cgit v1.2.3