Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: compile

Issue 29383816: Issue 4989 - [emscripten] Move filter class files into a separate directory (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Created March 14, 2017, 3:34 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | compiled/bindings.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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')),
« no previous file with comments | « no previous file | compiled/bindings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld