mirror of https://github.com/mpv-player/mpv
build: be less strict about line endings
This is a shitty hack, but also not terribly offensive.
This commit is contained in:
parent
717380ad71
commit
3c59f54ec8
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue