From bdf607ea5f218b1aa60dff9abc94b68e1a934368 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 5 Aug 2014 02:21:29 +0200 Subject: 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). --- wscript | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'wscript') 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): ctx.check_waf_version(mini='1.7.15') 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() -- cgit v1.2.3