| 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 ":bindings", | 9 ":bindings", |
| 10 ":mojo_system", | 10 ":mojo_system", |
| 11 ":mojo_system_impl", | 11 ":mojo_system_impl", |
| 12 ] | 12 ] |
| 13 } | 13 } |
| 14 | 14 |
| 15 # GYP version: mojo.gyp:mojo_python_system | 15 # GYP version: mojo.gyp:mojo_python_system |
| 16 python_binary_module("mojo_system") { | 16 python_binary_module("mojo_system") { |
| 17 python_base_module = "" | |
| 18 configs = [ "../build/config:mojo_sdk" ] | 17 configs = [ "../build/config:mojo_sdk" ] |
| 19 deps = [ | 18 deps = [ |
| 20 ":system_embedded", | 19 ":system_embedded", |
| 21 ] | 20 ] |
| 22 } | 21 } |
| 23 | 22 |
| 24 python_binary_source_set("system_embedded") { | 23 python_binary_source_set("system_embedded") { |
| 25 cython_sources = [ | 24 cython_sources = [ |
| 26 "c_async_waiter.pxd", | 25 "c_async_waiter.pxd", |
| 27 "c_core.pxd", | 26 "c_core.pxd", |
| 28 "c_export.pxd", | 27 "c_export.pxd", |
| 29 "c_thunks.pxd", | 28 "c_thunks.pxd", |
| 30 "mojo_system.pyx", | 29 "mojo_system.pyx", |
| 31 ] | 30 ] |
| 32 configs = [ "../build/config:mojo_sdk" ] | 31 configs = [ "../build/config:mojo_sdk" ] |
| 33 deps = [ | 32 deps = [ |
| 34 "../c/system", | 33 "../c/system", |
| 35 "../cpp/bindings:callback", | 34 "../cpp/bindings:callback", |
| 36 "../cpp/system", | 35 "../cpp/system", |
| 37 "../cpp/utility", | 36 "../cpp/utility", |
| 38 "../platform/native:system", | 37 "../platform/native:system", |
| 39 ] | 38 ] |
| 40 } | 39 } |
| 41 | 40 |
| 42 python_binary_module("mojo_system_impl") { | 41 python_binary_module("mojo_system_impl") { |
| 43 python_base_module = "" | |
| 44 cython_sources = [ | 42 cython_sources = [ |
| 45 "c_environment.pxd", | 43 "c_environment.pxd", |
| 46 "c_export.pxd", | 44 "c_export.pxd", |
| 47 "c_thunks.pxd", | 45 "c_thunks.pxd", |
| 48 "mojo_system_impl.pyx", | 46 "mojo_system_impl.pyx", |
| 49 ] | 47 ] |
| 50 sources = [ | 48 sources = [ |
| 51 "src/python_system_helper.cc", | 49 "src/python_system_helper.cc", |
| 52 "src/python_system_helper.h", | 50 "src/python_system_helper.h", |
| 53 ] | 51 ] |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 "mojo_bindings/reflection.py", | 87 "mojo_bindings/reflection.py", |
| 90 "mojo_bindings/serialization.py", | 88 "mojo_bindings/serialization.py", |
| 91 ] | 89 ] |
| 92 outputs = [ | 90 outputs = [ |
| 93 "$root_out_dir/python/mojo_bindings/{{source_file_part}}", | 91 "$root_out_dir/python/mojo_bindings/{{source_file_part}}", |
| 94 ] | 92 ] |
| 95 deps = [ | 93 deps = [ |
| 96 ":mojo_system", | 94 ":mojo_system", |
| 97 ] | 95 ] |
| 98 } | 96 } |
| OLD | NEW |