| Index: compile |
| =================================================================== |
| --- a/compile |
| +++ b/compile |
| @@ -71,16 +71,17 @@ def getenv(emscripten_config): |
| }) |
| return env |
| def generate_bindings(env): |
| params = [ |
| env['PYTHON'], os.path.join(env['EMSCRIPTEN'], 'emcc'), |
| '-o', BINDINGS_GENERATOR, '-std=gnu++14', '--js-library', JS_LIBRARY, |
| + '--js-library', os.path.join(SOURCE_DIR, 'bindings', 'library.js'), |
| ] + list(get_source_files('bindings')) |
| subprocess.check_call(params, env=env) |
| with open(BINDINGS_OUTPUT, 'w') as file: |
| subprocess.check_call([env['NODE_JS'], BINDINGS_GENERATOR], |
| stdout=file) |