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

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

Issue 728553002: Update mojo sdk to rev afb4440fd5a10cba980878c326180b7ad7960480 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: mojo/public/tools/bindings/mojom_list_outputs.py
diff --git a/mojo/public/tools/bindings/mojom_list_outputs.py b/mojo/public/tools/bindings/mojom_list_outputs.py
new file mode 100755
index 0000000000000000000000000000000000000000..8ac94e8c2aab3109a37edaae9aa6c4ac4f544eab
--- /dev/null
+++ b/mojo/public/tools/bindings/mojom_list_outputs.py
@@ -0,0 +1,34 @@
+#!/usr/bin/env python
+# Copyright 2014 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 argparse
+import os.path
+import sys
+
+def main():
+ parser = argparse.ArgumentParser(
+ description="GYP helper script for mapping mojoms => generated outputs.")
+ parser.add_argument("--basedir", required=True)
+ parser.add_argument("mojom", nargs="*")
+
+ args = parser.parse_args()
+
+ for mojom in args.mojom:
+ full = os.path.join("<(SHARED_INTERMEDIATE_DIR)", args.basedir, mojom)
+ base, ext = os.path.splitext(full)
+ assert ext == ".mojom", mojom
+ # Fix filename escaping issues on Windows.
+ base = base.replace("\\", "/")
+ print base + ".mojom.cc"
+ print base + ".mojom.h"
+ print base + ".mojom-internal.h"
+ print base + ".mojom.js"
+ print base + ".mojom.html"
+ print base + "_mojom.py"
+
+ return 0
+
+if __name__ == "__main__":
+ sys.exit(main())
« no previous file with comments | « mojo/public/tools/bindings/mojom_bindings_generator_variables.gypi ('k') | mojo/services/public/cpp/view_manager/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698