summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2012-07-02 02:09:03 +0300
committerUoti Urpala <uau@mplayer2.org>2012-07-16 21:08:42 +0300
commit39a45c7a175acf7ef5546073f62f5b9b7f83a893 (patch)
tree119a4015e788128b5fcc6e4f9a013f43eff1467f /TOOLS
parent86571435baf116a91a31451d26224600f3575270 (diff)
downloadmpv-39a45c7a175acf7ef5546073f62f5b9b7f83a893.tar.bz2
mpv-39a45c7a175acf7ef5546073f62f5b9b7f83a893.tar.xz
build: use python3 to generate some files previously in git
Some files used during build are generated with Python scripts in TOOLS/. Before, the generated files were included in the git tree. Start creating them at build time. This introduces a build-dependency on python3. The files in question are: libvo/vdpau_template.c libmpdemux/ebml_types.h libmpdemux/ebml_defs.c
Diffstat (limited to 'TOOLS')
-rwxr-xr-xTOOLS/matroska.py2
-rwxr-xr-x[-rw-r--r--]TOOLS/vdpau_functions.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/TOOLS/matroska.py b/TOOLS/matroska.py
index 375fb8b279..ffa388e47b 100755
--- a/TOOLS/matroska.py
+++ b/TOOLS/matroska.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
"""
Generate C definitions for parsing Matroska files.
Can also be used to directly parse Matroska files and display their contents.
diff --git a/TOOLS/vdpau_functions.py b/TOOLS/vdpau_functions.py
index 27d6ff45f3..39e38a8bbe 100644..100755
--- a/TOOLS/vdpau_functions.py
+++ b/TOOLS/vdpau_functions.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
# Generate vdpau_template.c
functions = """