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

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

Issue 9836096: Use IDL under third_party/WebCore (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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: lib/dom/scripts/fremontcutbuilder.py
diff --git a/lib/dom/scripts/fremontcutbuilder.py b/lib/dom/scripts/fremontcutbuilder.py
index eb70421ff9105688210d299880b7e5a143263ad8..e6079cefc35d2b728914c8c6365984bb64b0494d 100755
--- a/lib/dom/scripts/fremontcutbuilder.py
+++ b/lib/dom/scripts/fremontcutbuilder.py
@@ -149,9 +149,17 @@ def main():
('IDBDatabase', 'transaction', 'mode'),
]
+ # Assume standard Dart checkout.
+ webcore_path = os.path.join(current_dir, '..', '..', '..',
+ 'third_party', 'WebCore')
+
+ if not os.path.exists(webcore_path):
+ # Dartium checkout.
+ webcore_path = os.path.join(current_dir, '..', '..', '..', '..',
+ 'third_party', 'WebKit', 'Source', 'WebCore')
+
for dir_name in webkit_dirs:
- dir_path = os.path.join(current_dir, '..', '..', '..', '..',
- 'third_party', 'WebKit', 'Source', 'WebCore', dir_name)
+ dir_path = os.path.join(webcore_path, dir_name)
builder.import_idl_directory(dir_path, webkit_options)
webkit_supplemental_options = databasebuilder.DatabaseBuilderOptions(
« 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