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

Unified Diff: mojo/public/tools/bindings/mojom_tool.py

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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/tools/bindings/mojom_tool.py
diff --git a/mojo/public/tools/bindings/mojom_tool.py b/mojo/public/tools/bindings/mojom_tool.py
deleted file mode 100755
index 06d7dcd7aa0ba994653d7570ef9e39da1be73004..0000000000000000000000000000000000000000
--- a/mojo/public/tools/bindings/mojom_tool.py
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/env python
-# Copyright 2016 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.
-
-# mojom_tool.py invokes the mojom tool built for the operating system and
-# architecture on which this script is run. It forwards all of its command
-# line arguments to the mojom tool blindly. This script's exit code is the
-# mojom tool's exit code.
-
-import os
-import platform
-import subprocess
-import sys
-
-def main(args):
- # We assume this script is located in the Mojo SDK in tools/bindings.
- this_dir = os.path.abspath(os.path.dirname(__file__))
-
- system_dirs = {
- ('Linux', '64bit'): 'linux64',
- ('Darwin', '64bit'): 'mac64',
- }
- system = (platform.system(), platform.architecture()[0])
- if system not in system_dirs:
- raise Exception('The mojom tool only supports Linux or Mac 64 bits.')
-
- mojom_tool = os.path.join(
- this_dir, 'mojom_tool', 'bin', system_dirs[system], 'mojom')
-
- if not os.path.exists(mojom_tool):
- raise Exception(
- "The mojom tool could not be found at %s. "
- "You may need to run gclient sync."
- % mojom_tool)
-
- cmd = [mojom_tool]
- cmd.extend(args)
-
- process = subprocess.Popen(cmd)
- return process.wait()
-
-if __name__ == "__main__":
- sys.exit(main(sys.argv[1:]))
« no previous file with comments | « mojo/public/tools/bindings/mojom_list_dart_outputs.py ('k') | mojo/public/tools/bindings/mojom_tool/bin/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698