| 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 configs = [ "../build/config:mojo_sdk" ] |
| 20 deps = [ |
| 21 ":system_embedded", |
| 22 ] |
| 23 } |
| 24 |
| 25 python_binary_source_set("system_embedded") { |
| 19 cython_sources = [ | 26 cython_sources = [ |
| 27 "mojo/c_async_waiter.pxd", |
| 20 "mojo/c_core.pxd", | 28 "mojo/c_core.pxd", |
| 29 "mojo/c_export.pxd", |
| 30 "mojo/c_thunks.pxd", |
| 21 "mojo/system.pyx", | 31 "mojo/system.pyx", |
| 22 ] | 32 ] |
| 23 configs = [ "../build/config:mojo_sdk" ] | 33 configs = [ "../build/config:mojo_sdk" ] |
| 24 deps = [ | 34 deps = [ |
| 25 ":base", | 35 ":base", |
| 26 "../c/environment", | |
| 27 "../c/system", | 36 "../c/system", |
| 28 "../cpp/environment:standalone", | 37 "../cpp/bindings:callback", |
| 29 "../cpp/system", | 38 "../cpp/system", |
| 30 "../cpp/utility", | 39 "../cpp/utility", |
| 31 "../cpp/bindings:callback", | |
| 32 "../platform/native:system", | 40 "../platform/native:system", |
| 33 ] | 41 ] |
| 34 } | 42 } |
| 35 | 43 |
| 36 python_binary_module("system_impl") { | 44 python_binary_module("system_impl") { |
| 37 python_base_module = "mojo" | 45 python_base_module = "mojo" |
| 38 cython_sources = [ | 46 cython_sources = [ |
| 39 "mojo/c_core.pxd", | |
| 40 "mojo/c_environment.pxd", | 47 "mojo/c_environment.pxd", |
| 48 "mojo/c_export.pxd", |
| 49 "mojo/c_thunks.pxd", |
| 41 "mojo/system_impl.pyx", | 50 "mojo/system_impl.pyx", |
| 42 ] | 51 ] |
| 43 sources = [ | 52 sources = [ |
| 44 "src/python_system_helper.cc", | 53 "src/python_system_helper.cc", |
| 45 "src/python_system_helper.h", | 54 "src/python_system_helper.h", |
| 46 ] | 55 ] |
| 47 configs = [ "../build/config:mojo_sdk" ] | 56 configs = [ "../build/config:mojo_sdk" ] |
| 48 deps = [ | 57 deps = [ |
| 49 ":base", | 58 ":base", |
| 59 ":python_common", |
| 50 "../c/environment", | 60 "../c/environment", |
| 51 "../c/system", | 61 "../c/system", |
| 62 "../cpp/bindings:callback", |
| 52 "../cpp/environment:standalone", | 63 "../cpp/environment:standalone", |
| 53 "../cpp/system", | 64 "../cpp/system", |
| 54 "../cpp/utility", | 65 "../cpp/utility", |
| 66 "../platform/native:system", |
| 67 ] |
| 68 } |
| 69 |
| 70 python_binary_source_set("python_common") { |
| 71 sources = [ |
| 72 "src/common.cc", |
| 73 "src/common.h", |
| 74 ] |
| 75 configs = [ "../build/config:mojo_sdk" ] |
| 76 deps = [ |
| 77 "../c/environment:environment", |
| 55 "../cpp/bindings:callback", | 78 "../cpp/bindings:callback", |
| 56 "../platform/native:system", | 79 "../cpp/environment:environment", |
| 80 "../cpp/system:system", |
| 81 "../cpp/utility", |
| 57 ] | 82 ] |
| 58 } | 83 } |
| 59 | 84 |
| 60 copy("base") { | 85 copy("base") { |
| 61 sources = [ | 86 sources = [ |
| 62 "mojo/__init__.py", | 87 "mojo/__init__.py", |
| 63 ] | 88 ] |
| 64 outputs = [ | 89 outputs = [ |
| 65 "$root_out_dir/python/mojo/{{source_file_part}}", | 90 "$root_out_dir/python/mojo/{{source_file_part}}", |
| 66 ] | 91 ] |
| (...skipping 10 matching lines...) Expand all Loading... |
| 77 "mojo/bindings/serialization.py", | 102 "mojo/bindings/serialization.py", |
| 78 ] | 103 ] |
| 79 outputs = [ | 104 outputs = [ |
| 80 "$root_out_dir/python/mojo/bindings/{{source_file_part}}", | 105 "$root_out_dir/python/mojo/bindings/{{source_file_part}}", |
| 81 ] | 106 ] |
| 82 deps = [ | 107 deps = [ |
| 83 ":base", | 108 ":base", |
| 84 ":system", | 109 ":system", |
| 85 ] | 110 ] |
| 86 } | 111 } |
| OLD | NEW |