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