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("//third_party/cython/rules.gni") | 5 import("//third_party/cython/rules.gni") |
6 | 6 |
7 # GYP version: mojo/mojo.gyp:mojo_python | 7 # GYP version: mojo/mojo.gyp:mojo_python |
8 group("python") { | 8 group("python") { |
9 deps = [ | 9 deps = [ |
10 ":mojo_embedder", | 10 ":mojo_embedder", |
11 ":validation_util", | 11 ":validation_util", |
12 "//mojo/public/python", | 12 "//mojo/public/python", |
13 ] | 13 ] |
14 } | 14 } |
15 | 15 |
16 # GYP version: mojo/mojo.gyp:mojo_python_embedder | 16 # GYP version: mojo/mojo.gyp:mojo_python_embedder |
17 python_binary_module("mojo_embedder") { | 17 python_binary_module("mojo_embedder") { |
18 python_base_module = "" | |
19 cython_sources = [ "system/mojo_embedder.pyx" ] | 18 cython_sources = [ "system/mojo_embedder.pyx" ] |
20 deps = [ | 19 deps = [ |
21 "//mojo/edk/system", | 20 "//mojo/edk/system", |
22 ] | 21 ] |
23 datadeps = [ | 22 datadeps = [ |
24 "//mojo/public/python:mojo_system", | 23 "//mojo/public/python:mojo_system", |
25 ] | 24 ] |
26 } | 25 } |
27 | 26 |
28 copy("tests_module") { | 27 copy("tests_module") { |
29 sources = [ | 28 sources = [ |
30 "system/mojo_tests/__init__.py", | 29 "system/mojo_tests/__init__.py", |
31 ] | 30 ] |
32 outputs = [ | 31 outputs = [ |
33 "$root_out_dir/python/mojo_tests/{{source_file_part}}", | 32 "$root_out_dir/python/mojo_tests/{{source_file_part}}", |
34 ] | 33 ] |
35 } | 34 } |
36 | 35 |
37 python_binary_module("validation_util") { | 36 python_binary_module("validation_util") { |
38 python_base_module = "mojo_tests" | 37 python_base_module = "mojo_tests" |
39 cython_sources = [ "system/mojo_tests/validation_util.pyx" ] | 38 cython_sources = [ "system/mojo_tests/validation_util.pyx" ] |
40 deps = [ | 39 deps = [ |
41 "//mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils", | 40 "//mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils", |
42 ] | 41 ] |
43 datadeps = [ | 42 datadeps = [ |
44 ":tests_module", | 43 ":tests_module", |
45 ] | 44 ] |
46 } | 45 } |
OLD | NEW |