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:
Jan Ekström 2016-02-08 22:39:57 +02:00 committed by wm4
parent 4b97869e5f
commit 8af7112802
1 changed files with 18 additions and 11 deletions

View File

@ -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: