OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
| 5 import("//mojo/public/python/rules.gni") |
5 import("//third_party/cython/rules.gni") | 6 import("//third_party/cython/rules.gni") |
6 | 7 |
7 # GYP version: mojo/mojo.gyp:mojo_python | 8 # GYP version: mojo/mojo.gyp:mojo_python |
8 group("python") { | 9 group("python") { |
9 deps = [ | 10 deps = [ |
10 ":mojo_embedder", | 11 ":mojo_embedder", |
| 12 ":packaged_utils", |
| 13 ":utils", |
11 ":validation_util", | 14 ":validation_util", |
12 "//mojo/public/python", | 15 "//mojo/public/python", |
13 ] | 16 ] |
14 } | 17 } |
15 | 18 |
| 19 copy("utils") { |
| 20 sources = [ |
| 21 "mojo_utils/__init__.py", |
| 22 "mojo_utils/data_pipe_utils.py", |
| 23 ] |
| 24 outputs = [ |
| 25 "$root_out_dir/python/mojo_utils/{{source_file_part}}", |
| 26 ] |
| 27 } |
| 28 |
| 29 python_package("packaged_utils") { |
| 30 sources = [ |
| 31 "mojo_utils/__init__.py", |
| 32 "mojo_utils/data_pipe_utils.py", |
| 33 ] |
| 34 datadeps = [ |
| 35 "//mojo/public/python:mojo_system", |
| 36 ] |
| 37 } |
| 38 |
16 # GYP version: mojo/mojo.gyp:mojo_python_embedder | 39 # GYP version: mojo/mojo.gyp:mojo_python_embedder |
17 python_binary_module("mojo_embedder") { | 40 python_binary_module("mojo_embedder") { |
18 cython_sources = [ "system/mojo_embedder.pyx" ] | 41 cython_sources = [ "system/mojo_embedder.pyx" ] |
19 deps = [ | 42 deps = [ |
20 "//mojo/edk/system", | 43 "//mojo/edk/system", |
21 ] | 44 ] |
22 datadeps = [ | 45 datadeps = [ |
23 "//mojo/public/python:mojo_system", | 46 "//mojo/public/python:mojo_system", |
24 ] | 47 ] |
25 } | 48 } |
(...skipping 10 matching lines...) Expand all Loading... |
36 python_binary_module("validation_util") { | 59 python_binary_module("validation_util") { |
37 python_base_module = "mojo_tests" | 60 python_base_module = "mojo_tests" |
38 cython_sources = [ "system/mojo_tests/validation_util.pyx" ] | 61 cython_sources = [ "system/mojo_tests/validation_util.pyx" ] |
39 deps = [ | 62 deps = [ |
40 "//mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils", | 63 "//mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils", |
41 ] | 64 ] |
42 datadeps = [ | 65 datadeps = [ |
43 ":tests_module", | 66 ":tests_module", |
44 ] | 67 ] |
45 } | 68 } |
OLD | NEW |