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