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

Unified Diff: client/dom/scripts/dartdomgenerator.py

Issue 9290020: Add support for native bindings generation to dartgenerator.py. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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
Index: client/dom/scripts/dartdomgenerator.py
diff --git a/client/dom/scripts/dartdomgenerator.py b/client/dom/scripts/dartdomgenerator.py
index 4e8bc2a6a3fd8a77e6e45a747219dde0aa3f3e19..9c261cc7e665cd12061d262408fb768068c29d99 100755
--- a/client/dom/scripts/dartdomgenerator.py
+++ b/client/dom/scripts/dartdomgenerator.py
@@ -31,7 +31,7 @@ _webkit_renames = {
_webkit_renames_inverse = dict((v,k) for k, v in _webkit_renames.iteritems())
-def GenerateDOM(output_dir):
+def GenerateDOM(native, output_dir):
# TODO(sra): Make this entry point also generate HTML.
current_dir = os.path.dirname(__file__)
@@ -79,19 +79,21 @@ def GenerateDOM(output_dir):
source_filter = ['WebKit', 'Dart'],
super_database = common_database,
common_prefix = 'common',
- super_map = _webkit_renames_inverse)
+ super_map = _webkit_renames_inverse,
+ native = native)
generator.Flush()
- # Install default DOM library.
- default = os.path.join(output_dir, DOM_DEFAULT_LIBRARY)
- target = os.path.join(output_dir, DOM_LIBRARY)
- shutil.copyfile(default, target)
+ if not native:
antonm 2012/01/26 11:06:14 cannot you move this logic into main of this file
podivilov 2012/01/26 14:18:57 Done.
+ # Install default DOM library.
+ default = os.path.join(output_dir, DOM_DEFAULT_LIBRARY)
+ target = os.path.join(output_dir, DOM_LIBRARY)
+ shutil.copyfile(default, target)
def main():
current_dir = os.path.dirname(__file__)
logging.config.fileConfig(os.path.join(current_dir, 'logging.conf'))
- GenerateDOM(os.path.join(current_dir, '..'))
+ GenerateDOM(False, os.path.join(current_dir, '..'))
if __name__ == '__main__':
sys.exit(main())

Powered by Google App Engine
This is Rietveld 408576698