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