mirror of https://github.com/mpv-player/mpv
wscript: add proper non-version'd SONAME for Android
This seems to have become a requirement since API target 23+, and matches what FFmpeg does.
This commit is contained in:
parent
f95cde60ff
commit
aaf6e3b58d
|
@ -513,7 +513,13 @@ def build(ctx):
|
||||||
"install_path": ctx.env.LIBDIR,
|
"install_path": ctx.env.LIBDIR,
|
||||||
}
|
}
|
||||||
|
|
||||||
if not ctx.dependency_satisfied('android'):
|
if shared and ctx.dependency_satisfied('android'):
|
||||||
|
# for Android we just add the linker flag without version
|
||||||
|
# as we still need the SONAME for proper linkage.
|
||||||
|
# (LINKFLAGS logic taken from waf's apply_vnum in ccroot.py)
|
||||||
|
v=ctx.env.SONAME_ST%'libmpv.so'
|
||||||
|
ctx.env.append_value('LINKFLAGS',v.split())
|
||||||
|
else:
|
||||||
# for all other configurations we want SONAME to be used
|
# for all other configurations we want SONAME to be used
|
||||||
libmpv_kwargs["vnum"] = libversion
|
libmpv_kwargs["vnum"] = libversion
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue