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 group("python") { | 7 group("python") { |
8 deps = [ | 8 deps = [ |
9 ":base", | 9 ":base", |
10 ":bindings", | 10 ":bindings", |
11 ":system", | 11 ":system", |
12 ] | 12 ] |
13 } | 13 } |
14 | 14 |
15 # GYP version: mojo.gyp:mojo_python_system | |
16 python_binary_module("system") { | 15 python_binary_module("system") { |
17 python_base_module = "mojo" | 16 python_base_module = "mojo" |
18 sources = [ | 17 sources = [ |
19 "mojo/c_core.pxd", | 18 "mojo/c_core.pxd", |
20 "mojo/c_environment.pxd", | 19 "mojo/c_environment.pxd", |
21 "mojo/system.pyx", | 20 "mojo/system.pyx", |
22 ] | 21 ] |
23 additional_sources = [ | 22 additional_sources = [ |
24 "src/python_system_helper.cc", | 23 "src/python_system_helper.cc", |
25 "src/python_system_helper.h", | 24 "src/python_system_helper.h", |
(...skipping 11 matching lines...) Expand all Loading... |
37 | 36 |
38 copy("base") { | 37 copy("base") { |
39 sources = [ | 38 sources = [ |
40 "mojo/__init__.py", | 39 "mojo/__init__.py", |
41 ] | 40 ] |
42 outputs = [ | 41 outputs = [ |
43 "$root_out_dir/python/mojo/{{source_file_part}}", | 42 "$root_out_dir/python/mojo/{{source_file_part}}", |
44 ] | 43 ] |
45 } | 44 } |
46 | 45 |
47 # GYP version: mojo.gyp:mojo_python_bindings | |
48 copy("bindings") { | 46 copy("bindings") { |
49 sources = [ | 47 sources = [ |
50 "mojo/bindings/__init__.py", | 48 "mojo/bindings/__init__.py", |
51 "mojo/bindings/descriptor.py", | 49 "mojo/bindings/descriptor.py", |
52 "mojo/bindings/messaging.py", | 50 "mojo/bindings/messaging.py", |
53 "mojo/bindings/promise.py", | 51 "mojo/bindings/promise.py", |
54 "mojo/bindings/reflection.py", | 52 "mojo/bindings/reflection.py", |
55 "mojo/bindings/serialization.py", | 53 "mojo/bindings/serialization.py", |
56 ] | 54 ] |
57 outputs = [ | 55 outputs = [ |
58 "$root_out_dir/python/mojo/bindings/{{source_file_part}}", | 56 "$root_out_dir/python/mojo/bindings/{{source_file_part}}", |
59 ] | 57 ] |
60 deps = [ | 58 deps = [ |
61 ":base", | 59 ":base", |
62 ":system", | 60 ":system", |
63 ] | 61 ] |
64 } | 62 } |
OLD | NEW |