Index: mojo/public/python/BUILD.gn |
diff --git a/mojo/public/python/BUILD.gn b/mojo/public/python/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c1c6fbcf51aad6e46dd29d5a09d3ac5b2ab3c347 |
--- /dev/null |
+++ b/mojo/public/python/BUILD.gn |
@@ -0,0 +1,33 @@ |
+# 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("//third_party/cython/rules.gni") |
+ |
+group("python") { |
+ deps = [ |
+ ":base", |
+ ":system", |
+ ] |
+} |
+ |
+python_binary_module("system") { |
+ python_base_module = "mojo" |
+ sources = [ |
+ "mojo/c_core.pxd", |
+ "mojo/system.pyx", |
+ ] |
+ deps = [ |
+ "//mojo/public/c/system", |
+ ":base", |
+ ] |
+} |
+ |
+copy("base") { |
+ sources = [ |
+ "mojo/__init__.py", |
+ ] |
+ outputs = [ |
+ "$root_out_dir/python/mojo/__init__.py", |
+ ] |
+} |