path: root/wscript
diff options
authorwm4 <wm4@nowhere>2014-08-05 02:21:29 +0200
committerwm4 <wm4@nowhere>2014-08-05 02:21:29 +0200
commitbdf607ea5f218b1aa60dff9abc94b68e1a934368 (patch)
tree3e11cc1f51f63d11ab0b3df6adee97edb142fc96 /wscript
parent62a79ae5569de6e5b18b3ddb2a856adfdaf5288d (diff)
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 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')
1 files changed, 1 insertions, 3 deletions
diff --git a/wscript b/wscript
index 23cac828f8..2c82eac3e2 100644
--- a/wscript
+++ b/wscript
@@ -789,13 +789,12 @@ def is_debug_build(ctx):
def configure(ctx):
target = os.environ.get('TARGET')
- (cc, pkg_config, windres, nm) = ('cc', 'pkg-config', 'windres', 'nm')
+ (cc, pkg_config, windres) = ('cc', 'pkg-config', 'windres')
if target:
cc = '-'.join([target, 'gcc'])
pkg_config = '-'.join([target, pkg_config])
windres = '-'.join([target, windres])
- nm = '-'.join([target, nm])
ctx.find_program(cc, var='CC')
ctx.find_program(pkg_config, var='PKG_CONFIG')
@@ -803,7 +802,6 @@ def configure(ctx):
ctx.find_program('rst2man', var='RST2MAN', mandatory=False)
ctx.find_program('rst2pdf', var='RST2PDF', mandatory=False)
ctx.find_program(windres, var='WINDRES', mandatory=False)
- ctx.find_program(nm, var='NM', mandatory=False)
for ident, _, _ in _INSTALL_DIRS_LIST:
varname = ident.upper()