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 | 15 # GYP version: mojo.gyp:mojo_python_system |
16 python_binary_module("system") { | 16 python_binary_module("system") { |
17 python_base_module = "mojo" | 17 python_base_module = "mojo" |
18 sources = [ | 18 sources = [ |
19 "mojo/c_core.pxd", | 19 "mojo/c_core.pxd", |
| 20 "mojo/c_environment.pxd", |
20 "mojo/system.pyx", | 21 "mojo/system.pyx", |
21 ] | 22 ] |
| 23 additional_sources = [ |
| 24 "src/python_system_helper.cc", |
| 25 "src/python_system_helper.h", |
| 26 ] |
22 deps = [ | 27 deps = [ |
23 "//mojo/public/c/system", | 28 "//mojo/public/c/system", |
| 29 "//mojo/public/cpp/environment:standalone", |
| 30 "//mojo/public/cpp/utility", |
24 ":base", | 31 ":base", |
25 ] | 32 ] |
26 } | 33 } |
27 | 34 |
28 copy("base") { | 35 copy("base") { |
29 sources = [ | 36 sources = [ |
30 "mojo/__init__.py", | 37 "mojo/__init__.py", |
31 ] | 38 ] |
32 outputs = [ | 39 outputs = [ |
33 "$root_out_dir/python/mojo/{{source_file_part}}", | 40 "$root_out_dir/python/mojo/{{source_file_part}}", |
34 ] | 41 ] |
35 } | 42 } |
36 | 43 |
37 # GYP version: mojo.gyp:mojo_python_bindings | 44 # GYP version: mojo.gyp:mojo_python_bindings |
38 copy("bindings") { | 45 copy("bindings") { |
39 sources = [ | 46 sources = [ |
40 "mojo/bindings/__init__.py", | 47 "mojo/bindings/__init__.py", |
41 "mojo/bindings/descriptor.py", | 48 "mojo/bindings/descriptor.py", |
42 "mojo/bindings/reflection.py", | 49 "mojo/bindings/reflection.py", |
43 "mojo/bindings/serialization.py", | 50 "mojo/bindings/serialization.py", |
44 ] | 51 ] |
45 outputs = [ | 52 outputs = [ |
46 "$root_out_dir/python/mojo/bindings/{{source_file_part}}", | 53 "$root_out_dir/python/mojo/bindings/{{source_file_part}}", |
47 ] | 54 ] |
48 deps = [ | 55 deps = [ |
49 ":base", | 56 ":base", |
50 ":system", | 57 ":system", |
51 ] | 58 ] |
52 } | 59 } |
OLD | NEW |