Index: compile |
=================================================================== |
--- a/compile |
+++ b/compile |
@@ -4,18 +4,19 @@ import json |
import os |
import re |
import subprocess |
import warnings |
EMSCRIPTEN_PATH = '../emscripten' |
SOURCE_DIR = './compiled' |
SOURCE_FILES = [ |
- os.path.join(SOURCE_DIR, f) |
- for f in os.listdir(SOURCE_DIR) |
+ os.path.join(path, f) |
+ for (path, dirs, files) in os.walk(SOURCE_DIR) |
+ for f in files |
if f.endswith('.cpp') |
] |
BINDINGS_FILE = os.path.join(SOURCE_DIR, 'bindings.cpp') |
BINDINGS_GENERATOR = os.path.join(SOURCE_DIR, 'bindings.cpp.js') |
BINDINGS_OUTPUT = os.path.join(SOURCE_DIR, 'bindings.js') |
COMPILER_OUTPUT = './lib/compiled.js' |
GENERATION_PARAMS = { |
'SHELL_FILE': "'%s'" % os.path.abspath(os.path.join(SOURCE_DIR, 'shell.js')), |