build: be less strict about line endings

This is a shitty hack, but also not terribly offensive.
This commit is contained in:
wm4 2016-03-11 17:22:50 +01:00
parent 717380ad71
commit 3c59f54ec8
1 changed files with 2 additions and 2 deletions

View File

@ -486,9 +486,9 @@ def build(ctx):
if build_shared:
waftoolsdir = os.path.join(os.path.dirname(__file__), "waftools")
ctx.load("syms", tooldir=waftoolsdir)
vre = '^#define MPV_CLIENT_API_VERSION MPV_MAKE_VERSION\((.*), (.*)\)$'
vre = '#define MPV_CLIENT_API_VERSION MPV_MAKE_VERSION\((.*), (.*)\)'
libmpv_header = ctx.path.find_node("libmpv/client.h").read()
major, minor = re.search(vre, libmpv_header, re.M).groups()
major, minor = re.search(vre, libmpv_header).groups()
libversion = major + '.' + minor + '.0'
def _build_libmpv(shared):