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

Unified Diff: mojo/public/bindings/mojom_bindings_generator.py

Issue 53173008: Add mojom_bindings_generator.gypi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One more rename Created 7 years, 1 month 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 | « mojo/public/bindings/mojom_bindings_generator.gypi ('k') | mojo/public/bindings/parse/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/bindings/mojom_bindings_generator.py
diff --git a/mojo/public/bindings/mojo_idl.py b/mojo/public/bindings/mojom_bindings_generator.py
similarity index 90%
rename from mojo/public/bindings/mojo_idl.py
rename to mojo/public/bindings/mojom_bindings_generator.py
index 567adf7113c414e78c71ad893e54d5e3df427124..16cd9e67b508a0b1578cb4fc80cd2c198392dbd9 100755
--- a/mojo/public/bindings/mojo_idl.py
+++ b/mojo/public/bindings/mojom_bindings_generator.py
@@ -9,8 +9,8 @@
import os
import sys
from optparse import OptionParser
-from parser import mojo_parser
-from parser import mojo_translate
+from parse import mojo_parser
+from parse import mojo_translate
from generators import mojom_data
from generators import mojom_cpp_generator
@@ -27,6 +27,9 @@ def Main():
parser.print_help()
sys.exit(1)
+ if not os.path.exists(options.output_dir):
+ os.makedirs(options.output_dir)
+
for filename in args:
name = os.path.splitext(os.path.basename(filename))[0]
# TODO(darin): There's clearly too many layers of translation here! We can
« no previous file with comments | « mojo/public/bindings/mojom_bindings_generator.gypi ('k') | mojo/public/bindings/parse/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698