mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 20:27:23 +00:00
build: fix libmpv build when using system waf
Since the 'syms' tool is shipped in waf's extras, when using system waf the default tool overrides our own. Force our syms tool by providing the tooldir. Fixes #1006
This commit is contained in:
parent
9ed9c68fda
commit
69d5356d76
@ -451,7 +451,9 @@ def build(ctx):
|
||||
build_static = ctx.dependency_satisfied('libmpv-static')
|
||||
if build_shared or build_static:
|
||||
if build_shared:
|
||||
ctx.load("syms")
|
||||
import os
|
||||
waftoolsdir = os.path.join(os.path.dirname(__file__), "waftools")
|
||||
ctx.load("syms", tooldir=waftoolsdir)
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user