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

Unified Diff: mojo/public/python/BUILD.gn

Issue 545433002: mojo: Generate top level enums for python bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Follow sdefresne suugestions. Created 6 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: mojo/public/python/BUILD.gn
diff --git a/mojo/public/python/BUILD.gn b/mojo/public/python/BUILD.gn
index c1c6fbcf51aad6e46dd29d5a09d3ac5b2ab3c347..b0d1ee4dc264e1276f7b6d00bb1fb614583d7288 100644
--- a/mojo/public/python/BUILD.gn
+++ b/mojo/public/python/BUILD.gn
@@ -7,6 +7,7 @@ import("//third_party/cython/rules.gni")
group("python") {
deps = [
":base",
+ ":bindings",
":system",
]
}
@@ -28,6 +29,20 @@ copy("base") {
"mojo/__init__.py",
]
outputs = [
- "$root_out_dir/python/mojo/__init__.py",
+ "$root_out_dir/python/mojo/{{source_file_part}}",
+ ]
+}
+
+copy("bindings") {
+ sources = [
+ "mojo/bindings/__init__.py",
+ "mojo/bindings/reflection.py",
+ ]
+ outputs = [
+ "$root_out_dir/python/mojo/bindings/{{source_file_part}}",
+ ]
+ deps = [
+ ":base",
+ ":system",
]
}

Powered by Google App Engine
This is Rietveld 408576698