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 ":system_impl", | 12 ":system_impl", |
13 ] | 13 ] |
14 } | 14 } |
15 | 15 |
16 # GYP version: mojo.gyp:mojo_python_system | 16 # GYP version: mojo.gyp:mojo_python_system |
17 python_binary_module("system") { | 17 python_binary_module("system") { |
18 python_base_module = "mojo" | 18 python_base_module = "mojo" |
19 sources = [ | 19 sources = [ |
20 "mojo/c_core.pxd", | 20 "mojo/c_core.pxd", |
21 "mojo/system.pyx", | 21 "mojo/system.pyx", |
22 ] | 22 ] |
23 deps = [ | 23 deps = [ |
24 ":base", | 24 ":base", |
25 "../c/environment", | 25 "../c/environment", |
26 "../c/system:for_shared_library", | 26 "../c/system", |
27 "../cpp/environment:standalone", | 27 "../cpp/environment:standalone", |
28 "../cpp/system", | 28 "../cpp/system", |
29 "../cpp/utility", | 29 "../cpp/utility", |
30 "../cpp/bindings:callback", | 30 "../cpp/bindings:callback", |
| 31 "../platform/native:system", |
31 ] | 32 ] |
32 } | 33 } |
33 | 34 |
34 python_binary_module("system_impl") { | 35 python_binary_module("system_impl") { |
35 python_base_module = "mojo" | 36 python_base_module = "mojo" |
36 sources = [ | 37 sources = [ |
37 "mojo/c_core.pxd", | 38 "mojo/c_core.pxd", |
38 "mojo/c_environment.pxd", | 39 "mojo/c_environment.pxd", |
39 "mojo/system_impl.pyx", | 40 "mojo/system_impl.pyx", |
40 ] | 41 ] |
41 additional_sources = [ | 42 additional_sources = [ |
42 "src/python_system_helper.cc", | 43 "src/python_system_helper.cc", |
43 "src/python_system_helper.h", | 44 "src/python_system_helper.h", |
44 ] | 45 ] |
45 deps = [ | 46 deps = [ |
46 ":base", | 47 ":base", |
47 "../c/environment", | 48 "../c/environment", |
48 "../c/system:for_shared_library", | 49 "../c/system", |
49 "../cpp/environment:standalone", | 50 "../cpp/environment:standalone", |
50 "../cpp/system", | 51 "../cpp/system", |
51 "../cpp/utility", | 52 "../cpp/utility", |
52 "../cpp/bindings:callback", | 53 "../cpp/bindings:callback", |
| 54 "../platform/native:system", |
53 ] | 55 ] |
54 } | 56 } |
55 | 57 |
56 copy("base") { | 58 copy("base") { |
57 sources = [ | 59 sources = [ |
58 "mojo/__init__.py", | 60 "mojo/__init__.py", |
59 ] | 61 ] |
60 outputs = [ | 62 outputs = [ |
61 "$root_out_dir/python/mojo/{{source_file_part}}", | 63 "$root_out_dir/python/mojo/{{source_file_part}}", |
62 ] | 64 ] |
(...skipping 10 matching lines...) Expand all Loading... |
73 "mojo/bindings/serialization.py", | 75 "mojo/bindings/serialization.py", |
74 ] | 76 ] |
75 outputs = [ | 77 outputs = [ |
76 "$root_out_dir/python/mojo/bindings/{{source_file_part}}", | 78 "$root_out_dir/python/mojo/bindings/{{source_file_part}}", |
77 ] | 79 ] |
78 deps = [ | 80 deps = [ |
79 ":base", | 81 ":base", |
80 ":system", | 82 ":system", |
81 ] | 83 ] |
82 } | 84 } |
OLD | NEW |