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 cython_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:for_shared_library", |
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 ] | 31 ] |
32 } | 32 } |
33 | 33 |
34 python_binary_module("system_impl") { | 34 python_binary_module("system_impl") { |
35 python_base_module = "mojo" | 35 python_base_module = "mojo" |
36 sources = [ | 36 cython_sources = [ |
37 "mojo/c_core.pxd", | 37 "mojo/c_core.pxd", |
38 "mojo/c_environment.pxd", | 38 "mojo/c_environment.pxd", |
39 "mojo/system_impl.pyx", | 39 "mojo/system_impl.pyx", |
40 ] | 40 ] |
41 additional_sources = [ | 41 sources = [ |
42 "src/python_system_helper.cc", | 42 "src/python_system_helper.cc", |
43 "src/python_system_helper.h", | 43 "src/python_system_helper.h", |
44 ] | 44 ] |
45 deps = [ | 45 deps = [ |
46 ":base", | 46 ":base", |
47 "../c/environment", | 47 "../c/environment", |
48 "../c/system:for_shared_library", | 48 "../c/system:for_shared_library", |
49 "../cpp/environment:standalone", | 49 "../cpp/environment:standalone", |
50 "../cpp/system", | 50 "../cpp/system", |
51 "../cpp/utility", | 51 "../cpp/utility", |
(...skipping 21 matching lines...) Expand all Loading... |
73 "mojo/bindings/serialization.py", | 73 "mojo/bindings/serialization.py", |
74 ] | 74 ] |
75 outputs = [ | 75 outputs = [ |
76 "$root_out_dir/python/mojo/bindings/{{source_file_part}}", | 76 "$root_out_dir/python/mojo/bindings/{{source_file_part}}", |
77 ] | 77 ] |
78 deps = [ | 78 deps = [ |
79 ":base", | 79 ":base", |
80 ":system", | 80 ":system", |
81 ] | 81 ] |
82 } | 82 } |
OLD | NEW |