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

Unified Diff: third_party/mojo/src/mojo/public/tools/dart_list_mojoms.py

Issue 1348903003: third_party/mojo: Remove python/go/dart bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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: third_party/mojo/src/mojo/public/tools/dart_list_mojoms.py
diff --git a/third_party/mojo/src/mojo/public/tools/dart_list_mojoms.py b/third_party/mojo/src/mojo/public/tools/dart_list_mojoms.py
deleted file mode 100755
index ce27afd50083611217538c682913e5c9dea89bb1..0000000000000000000000000000000000000000
--- a/third_party/mojo/src/mojo/public/tools/dart_list_mojoms.py
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/python
-# Copyright 2015 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.
-
-# This script scans a directory tree for any .mojom files and outputs a list.
-
-import argparse
-import os
-import sys
-
-def main(args):
- parser = argparse.ArgumentParser(
- description='Prints list of generated dart binding source files.')
- parser.add_argument('source_directory',
- metavar='source_directory',
- help='Path to source directory tree containing .mojom'
- ' files')
- parser.add_argument('relative_directory_root',
- metavar='relative_directory_root',
- help='Path to directory which all outputted paths will'
- 'be relative to.')
- args = parser.parse_args()
- # Directory to start searching for .mojom files.
- source_directory = args.source_directory
- # Prefix to chop off output.
- root_prefix = os.path.abspath(args.relative_directory_root)
- for dirname, dirnames, filenames in os.walk(source_directory):
- # filter for .mojom files.
- filenames = [f for f in filenames if f.endswith('.mojom')]
- # Skip any directories that start with 'test'.
- dirnames[:] = [d for d in dirnames if not d.startswith('test')]
- for f in filenames:
- path = os.path.abspath(os.path.join(dirname, f))
- path = os.path.relpath(path, root_prefix)
- print(path)
-
-if __name__ == '__main__':
- sys.exit(main(sys.argv[1:]))
-

Powered by Google App Engine
This is Rietveld 408576698