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

Unified Diff: mojo/public/bindings/generators/run_cpp_generator.py

Issue 226263002: Mojo: Move mojo/public/bindings to mojo/public/tools/bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 9 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: mojo/public/bindings/generators/run_cpp_generator.py
diff --git a/mojo/public/bindings/generators/run_cpp_generator.py b/mojo/public/bindings/generators/run_cpp_generator.py
deleted file mode 100755
index 36ef8bc9edb0f5a6f6b311fec421b11432222be8..0000000000000000000000000000000000000000
--- a/mojo/public/bindings/generators/run_cpp_generator.py
+++ /dev/null
@@ -1,28 +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.
-
-import ast
-import os
-import sys
-
-script_dir = os.path.dirname(os.path.realpath(__file__))
-sys.path.insert(0, os.path.join(script_dir, os.pardir, "pylib"))
-
-from generate import mojom_data
-import mojom_cpp_generator
-
-def ReadDict(file):
- with open(file, 'r') as f:
- s = f.read()
- dict = ast.literal_eval(s)
- return dict
-
-dict = ReadDict(sys.argv[1])
-module = mojom_data.ModuleFromData(dict)
-dir = None
-if len(sys.argv) > 2:
- dir = sys.argv[2]
-cpp = mojom_cpp_generator.Generator(module, ".", dir)
-cpp.GenerateFiles()
« no previous file with comments | « mojo/public/bindings/generators/mojom_js_generator.py ('k') | mojo/public/bindings/mojom_bindings_generator.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698