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

Unified Diff: mojo/public/bindings/mojo_idl.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/mojo.gyp ('k') | mojo/public/bindings/mojom_bindings_generator.gypi » ('j') | 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
deleted file mode 100755
index 567adf7113c414e78c71ad893e54d5e3df427124..0000000000000000000000000000000000000000
--- a/mojo/public/bindings/mojo_idl.py
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/usr/bin/env python
-# Copyright 2013 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""The frontend for the Mojo bindings system."""
-
-
-import os
-import sys
-from optparse import OptionParser
-from parser import mojo_parser
-from parser import mojo_translate
-from generators import mojom_data
-from generators import mojom_cpp_generator
-
-
-def Main():
- parser = OptionParser(usage="usage: %prog [options] filename1 [filename2...]")
- 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()
-
- if len(args) < 1:
- parser.print_help()
- sys.exit(1)
-
- 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
- # at least avoid generating the serialized Mojom IR.
- tree = mojo_parser.Parse(filename)
- mojom = mojo_translate.Translate(tree, name)
- module = mojom_data.ModuleFromData(mojom)
- cpp = mojom_cpp_generator.CPPGenerator(
- module, options.include_dir, options.output_dir)
- cpp.GenerateFiles()
-
-
-if __name__ == '__main__':
- Main()
« no previous file with comments | « mojo/mojo.gyp ('k') | mojo/public/bindings/mojom_bindings_generator.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698