Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Unified Diff: tools/dom/scripts/fremontcutbuilder.py

Issue 13932010: Blacklist directories to be skipped while searching for IDLs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/fremontcutbuilder.py
diff --git a/tools/dom/scripts/fremontcutbuilder.py b/tools/dom/scripts/fremontcutbuilder.py
index c0919fb700e47348d75bddbc8d9ec6f1425265d0..bb82b2674b6ca21f1ff11dec8201de50d2837e2b 100755
--- a/tools/dom/scripts/fremontcutbuilder.py
+++ b/tools/dom/scripts/fremontcutbuilder.py
@@ -148,36 +148,6 @@ def build_database(idl_files, database_dir, feature_defines=None,
def main(parallel=False):
current_dir = os.path.dirname(__file__)
- webkit_dirs = [
- 'css',
- 'dom',
- 'fileapi',
- 'html',
- 'html/canvas',
- 'inspector',
- 'loader',
- 'loader/appcache',
- 'Modules/battery',
- 'Modules/filesystem',
- 'Modules/gamepad',
- 'Modules/geolocation',
- 'Modules/indexeddb',
- 'Modules/mediasource',
- 'Modules/mediastream',
- 'Modules/notifications',
- 'Modules/quota',
- 'Modules/speech',
- 'Modules/webaudio',
- 'Modules/webdatabase',
- 'Modules/websockets',
- 'page',
- 'plugins',
- 'storage',
- 'svg',
- 'workers',
- 'xml',
- ]
-
ignored_idls = [
'AbstractView.idl',
]
@@ -190,15 +160,15 @@ def main(parallel=False):
raise RuntimeError('directory not found: %s' % webcore_dir)
def visitor(arg, dir_name, names):
+ if os.path.basename(dir_name) in ['bindings', 'testing']:
+ names[:] = [] # Do not go underneath
for name in names:
file_name = os.path.join(dir_name, name)
(interface, ext) = os.path.splitext(file_name)
if ext == '.idl' and name not in ignored_idls:
idl_files.append(file_name)
- for dir_name in webkit_dirs:
- dir_path = os.path.join(webcore_dir, dir_name)
- os.path.walk(dir_path, visitor, None)
+ os.path.walk(webcore_dir, visitor, webcore_dir)
database_dir = os.path.join(current_dir, '..', 'database')
return build_database(idl_files, database_dir, parallel=parallel)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698