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). --- Makefile | 4 --- TOOLS/vdpau_functions.pl | 74 ----------------------------------------------- video/out/vo_vdpau.c | 2 +- video/vdpau.h | 2 +- video/vdpau_functions.inc | 41 ++++++++++++++++++++++++++ 5 files changed, 43 insertions(+), 80 deletions(-) delete mode 100755 TOOLS/vdpau_functions.pl create mode 100644 video/vdpau_functions.inc diff --git a/Makefile b/Makefile index 900e7db136..7d70836a55 100644 --- a/Makefile +++ b/Makefile @@ -349,10 +349,6 @@ core/input/input.c: core/input/input_conf.h core/input/input_conf.h: TOOLS/file2string.pl etc/input.conf ./$^ >$@ -video/vdpau.h: video/out/vdpau_template.c -video/out/vdpau_template.c: TOOLS/vdpau_functions.pl - ./$< > $@ - MKVLIB_DEPS = TOOLS/lib/Parse/Matroska.pm \ TOOLS/lib/Parse/Matroska/Definitions.pm \ TOOLS/lib/Parse/Matroska/Element.pm \ diff --git a/TOOLS/vdpau_functions.pl b/TOOLS/vdpau_functions.pl deleted file mode 100755 index 8bab4e533b..0000000000 --- a/TOOLS/vdpau_functions.pl +++ /dev/null @@ -1,74 +0,0 @@ -#! /usr/bin/env perl - -# Generates vdpau_template.c - -use strict; -use warnings; - -sub camelize($) { - my $s = shift; - $s =~ s/(?:^|_)([a-z])/\u$1/g; - $s; -} - -print <) { - # strip whitespace, ignore anything after a '#' - $f =~ /^\s*(.*?)\s*(?:(?