summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-05 02:21:29 +0200
committerwm4 <wm4@nowhere>2014-08-05 02:21:29 +0200
commitbdf607ea5f218b1aa60dff9abc94b68e1a934368 (patch)
tree3e11cc1f51f63d11ab0b3df6adee97edb142fc96 /wscript_build.py
parent62a79ae5569de6e5b18b3ddb2a856adfdaf5288d (diff)
downloadmpv-bdf607ea5f218b1aa60dff9abc94b68e1a934368.tar.bz2
mpv-bdf607ea5f218b1aa60dff9abc94b68e1a934368.tar.xz
build: list exported symbols explicitly
Instead of using a regex to match names to be exported from the libmpv dynamic shared library, use a libmpv.def file, which lists all exported functions explicitly. This reduces the platform specifics in syms.py. I'm not sure if the separate compile_sym task is still needed (it could probably be collapsed, which would concentrate the platform specifics into one place).
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wscript_build.py b/wscript_build.py
index 87bf54de43..5eebf89ee8 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -469,7 +469,7 @@ def build(ctx):
includes = [ctx.bldnode.abspath(), ctx.srcnode.abspath()] + \
ctx.dependencies_includes(),
features = features,
- export_symbols_regex = 'mpv_.*',
+ export_symbols_def = "etc/libmpv.def",
install_path = ctx.env.LIBDIR,
vnum = libversion,
)