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 ":embedder", | 10 ":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("embedder") { | 17 python_binary_module("embedder") { |
18 python_base_module = "mojo" | 18 python_base_module = "mojo" |
19 sources = [ | 19 cython_sources = [ |
20 "system/mojo/embedder.pyx", | 20 "system/mojo/embedder.pyx", |
21 ] | 21 ] |
22 deps = [ | 22 deps = [ |
23 "//mojo/edk/system", | 23 "//mojo/edk/system", |
24 ] | 24 ] |
25 datadeps = [ | 25 datadeps = [ |
26 "//mojo/public/python:system", | 26 "//mojo/public/python:system", |
27 ] | 27 ] |
28 } | 28 } |
29 | 29 |
30 copy("tests_module") { | 30 copy("tests_module") { |
31 sources = [ | 31 sources = [ |
32 "system/mojo/tests/__init__.py", | 32 "system/mojo/tests/__init__.py", |
33 ] | 33 ] |
34 outputs = [ | 34 outputs = [ |
35 "$root_out_dir/python/mojo/tests/{{source_file_part}}", | 35 "$root_out_dir/python/mojo/tests/{{source_file_part}}", |
36 ] | 36 ] |
37 } | 37 } |
38 | 38 |
39 python_binary_module("validation_util") { | 39 python_binary_module("validation_util") { |
40 python_base_module = "mojo/tests" | 40 python_base_module = "mojo/tests" |
41 sources = [ | 41 cython_sources = [ |
42 "system/mojo/tests/validation_util.pyx", | 42 "system/mojo/tests/validation_util.pyx", |
43 ] | 43 ] |
44 deps = [ | 44 deps = [ |
45 "//mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils", | 45 "//mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils", |
46 ] | 46 ] |
47 datadeps = [ | 47 datadeps = [ |
48 ":tests_module", | 48 ":tests_module", |
49 ] | 49 ] |
50 } | 50 } |
OLD | NEW |