diff options
author | wm4 <wm4@nowhere> | 2013-07-29 00:58:44 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-29 00:59:07 +0200 |
commit | fece4e3053b7be7b5d736a9609bb2b1b8deef4bd (patch) | |
tree | bfb9c0c5acde42683bb0ef13c6f5f051e046e752 /video/out/vo_vdpau.c | |
parent | 050997addff73aef98e2d469d57e62f58192e506 (diff) | |
download | mpv-fece4e3053b7be7b5d736a9609bb2b1b8deef4bd.tar.bz2 mpv-fece4e3053b7be7b5d736a9609bb2b1b8deef4bd.tar.xz |
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).
Diffstat (limited to 'video/out/vo_vdpau.c')
-rw-r--r-- | video/out/vo_vdpau.c | 2 |
1 files changed, 1 insertions, 1 deletions
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} }; |