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

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

Issue 52973003: mojo: break struct headers into headers and source (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add constant for header size Created 7 years, 2 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 | « mojo/public/bindings/generators/run_cpp_generator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/bindings/mojo_idl.py
diff --git a/mojo/public/bindings/mojo_idl.py b/mojo/public/bindings/mojo_idl.py
index 48a01ab76faab6a40852f4f0d3441642c2c69dd8..4f149bc5fd34f6da65760009aaaafa9153bc5d06 100755
--- a/mojo/public/bindings/mojo_idl.py
+++ b/mojo/public/bindings/mojo_idl.py
@@ -16,7 +16,9 @@ from generators import mojom_cpp_generator
def Main():
parser = OptionParser(usage="usage: %prog [options] filename1 [filename2...]")
- parser.add_option("-o", "--outdir", dest="outdir", default=".",
+ parser.add_option("-i", "--include_dir", dest="include_dir", default=".",
+ help="specify directory for #includes")
+ parser.add_option("-o", "--output_dir", dest="output_dir", default=".",
help="specify output directory")
(options, args) = parser.parse_args()
@@ -30,8 +32,9 @@ def Main():
tree = mojo_parser.Parse(filename)
mojom = mojo_translate.Translate(tree)
module = mojom_data.ModuleFromData(mojom)
- cpp = mojom_cpp_generator.CPPGenerator(module)
- cpp.GenerateFiles(options.outdir)
+ cpp = mojom_cpp_generator.CPPGenerator(
+ module, options.include_dir, options.output_dir)
+ cpp.GenerateFiles()
if __name__ == '__main__':
« no previous file with comments | « mojo/public/bindings/generators/run_cpp_generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698