ref: 09894ba3e04df4dbd74a5b73fd2732684206cc9c
parent: 40792b2ef7f967e07626b22f6f120397a5f76317
author: Martin Hermant <martin.hermant@gmail.com>
date: Mon May 29 14:31:44 EDT 2017
wscript : set memory-init file as a part of generated aubio js lib for easier integration in web
--- a/wscript
+++ b/wscript
@@ -247,6 +247,8 @@
exported_funcnames = get_all_func_names_from_lib(lib)
c_mangled_names = ['_'+s for s in exported_funcnames]
ctx.env.LINKFLAGS_cshlib += ['-s','EXPORTED_FUNCTIONS=%s'%c_mangled_names]
+ # put memory file inside generated js files
+ ctx.env.LINKFLAGS_cshlib+=['--memory-init-file','0']
ctx.env.cprogram_PATTERN = "%s.js"
if (ctx.options.enable_atlas != True):
ctx.options.enable_atlas = False