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

Unified Diff: mojo/python/BUILD.gn

Issue 952223002: Add Python util to read from a data pipe into a bytearray (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Response to review Created 5 years, 10 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
« no previous file with comments | « no previous file | mojo/python/mojo_utils/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/python/BUILD.gn
diff --git a/mojo/python/BUILD.gn b/mojo/python/BUILD.gn
index 041dbc083934478d1298a9fc3533ac4ec36a50d5..972e0c683db7433b11f684da0ed4988a82b8c2fc 100644
--- a/mojo/python/BUILD.gn
+++ b/mojo/python/BUILD.gn
@@ -2,17 +2,40 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//mojo/public/python/rules.gni")
import("//third_party/cython/rules.gni")
# GYP version: mojo/mojo.gyp:mojo_python
group("python") {
deps = [
":mojo_embedder",
+ ":packaged_utils",
+ ":utils",
":validation_util",
"//mojo/public/python",
]
}
+copy("utils") {
+ sources = [
+ "mojo_utils/__init__.py",
+ "mojo_utils/data_pipe_utils.py",
+ ]
+ outputs = [
+ "$root_out_dir/python/mojo_utils/{{source_file_part}}",
+ ]
+}
+
+python_package("packaged_utils") {
+ sources = [
+ "mojo_utils/__init__.py",
+ "mojo_utils/data_pipe_utils.py",
+ ]
+ datadeps = [
+ "//mojo/public/python:mojo_system",
+ ]
+}
+
# GYP version: mojo/mojo.gyp:mojo_python_embedder
python_binary_module("mojo_embedder") {
cython_sources = [ "system/mojo_embedder.pyx" ]
« no previous file with comments | « no previous file | mojo/python/mojo_utils/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698