mirror of https://github.com/mpv-player/mpv
wscript_build: disable SONAME generation when building for Android
Android is well-known for not supporting SONAME'd libraries. All libraries imported into an APK have to end with '.so'.
This commit is contained in:
parent
4b97869e5f
commit
8af7112802
|
@ -491,17 +491,24 @@ def build(ctx):
|
||||||
features += "cshlib syms"
|
features += "cshlib syms"
|
||||||
else:
|
else:
|
||||||
features += "cstlib"
|
features += "cstlib"
|
||||||
ctx(
|
|
||||||
target = "mpv",
|
libmpv_kwargs = {
|
||||||
source = ctx.filtered_sources(sources),
|
"target": "mpv",
|
||||||
use = ctx.dependencies_use(),
|
"source": ctx.filtered_sources(sources),
|
||||||
includes = [ctx.bldnode.abspath(), ctx.srcnode.abspath()] + \
|
"use": ctx.dependencies_use(),
|
||||||
ctx.dependencies_includes(),
|
"includes": [ctx.bldnode.abspath(), ctx.srcnode.abspath()] + \
|
||||||
features = features,
|
ctx.dependencies_includes(),
|
||||||
export_symbols_def = "libmpv/mpv.def",
|
"features": features,
|
||||||
install_path = ctx.env.LIBDIR,
|
"export_symbols_def": "libmpv/mpv.def",
|
||||||
vnum = libversion,
|
"install_path": ctx.env.LIBDIR,
|
||||||
)
|
}
|
||||||
|
|
||||||
|
if not ctx.dependency_satisfied('android'):
|
||||||
|
# for all other configurations we want SONAME to be used
|
||||||
|
libmpv_kwargs["vnum"] = libversion
|
||||||
|
|
||||||
|
ctx(**libmpv_kwargs)
|
||||||
|
|
||||||
if build_shared:
|
if build_shared:
|
||||||
_build_libmpv(True)
|
_build_libmpv(True)
|
||||||
if build_static:
|
if build_static:
|
||||||
|
|
Loading…
Reference in New Issue