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" ] |