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

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

Issue 10038015: Put Dartium generated idl in a separate directory so they don't interfere with JS DOM generation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « lib/dom/scripts/dartdomgenerator.py ('k') | 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 d7ad39dc6bfc596f31407c1b4ed271b2c0a0e298..f351466b4d4abe9f75261ac31ac6d0143129077f 100755
--- a/lib/dom/scripts/fremontcutbuilder.py
+++ b/lib/dom/scripts/fremontcutbuilder.py
@@ -11,13 +11,13 @@ import os.path
import tempfile
import sys
-def build_database(idl_list_file_name):
+def build_database(idl_list_file_name, database_dir):
"""This code reconstructs the FremontCut IDL database from W3C,
WebKit and Dart IDL files."""
current_dir = os.path.dirname(__file__)
logging.config.fileConfig(os.path.join(current_dir, "logging.conf"))
- db = database.Database(os.path.join(current_dir, '..', 'database'))
+ db = database.Database(database_dir)
# Delete all existing IDLs in the DB.
db.Delete()
@@ -160,6 +160,8 @@ def build_database(idl_list_file_name):
db.Save()
def main():
+ current_dir = os.path.dirname(__file__)
+
webkit_dirs = [
'Modules/speech',
'Modules/indexeddb',
@@ -188,8 +190,8 @@ def main():
(idl_list_file, idl_list_file_name) = tempfile.mkstemp()
- webcore_dir = os.path.join(os.path.dirname(__file__), '..', '..', '..',
- 'third_party', 'WebCore')
+ webcore_dir = os.path.join(current_dir, '..', '..', '..',
+ 'third_party', 'WebCore')
if not os.path.exists(webcore_dir):
raise RuntimeError('directory not found: %s' % webcore_dir)
@@ -207,7 +209,8 @@ def main():
os.close(idl_list_file)
- return build_database(idl_list_file_name)
+ database_dir = os.path.join(current_dir, '..', 'database')
+ return build_database(idl_list_file_name, database_dir)
if __name__ == '__main__':
sys.exit(main())
« no previous file with comments | « lib/dom/scripts/dartdomgenerator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698