Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: mojo/public/python/BUILD.gn

Issue 792843002: Refactor the python system_impl module. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fixes Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 configs = [ "../build/config:mojo_sdk" ]
20 deps = [
21 ":system_embedded",
22 ]
23 }
24
25 python_binary_source_set("system_embedded") {
26 cython_sources = [
27 "mojo/c_async_waiter.pxd",
20 "mojo/c_core.pxd", 28 "mojo/c_core.pxd",
29 "mojo/c_thunks.pxd",
21 "mojo/system.pyx", 30 "mojo/system.pyx",
22 ] 31 ]
23 configs = [ "../build/config:mojo_sdk" ]
24 deps = [ 32 deps = [
25 ":base",
26 "../c/environment",
27 "../c/system", 33 "../c/system",
28 "../cpp/environment:standalone", 34 "../cpp/bindings:callback",
29 "../cpp/system", 35 "../cpp/system",
30 "../cpp/utility", 36 "../cpp/utility",
31 "../cpp/bindings:callback",
32 "../platform/native:system", 37 "../platform/native:system",
38 ":base",
qsr 2014/12/12 14:27:06 Local dependencies must be first. Here and below
etiennej 2014/12/12 15:29:36 Done.
33 ] 39 ]
34 } 40 }
35 41
36 python_binary_module("system_impl") { 42 python_binary_module("system_impl") {
37 python_base_module = "mojo" 43 python_base_module = "mojo"
38 sources = [ 44 cython_sources = [
39 "mojo/c_core.pxd",
40 "mojo/c_environment.pxd", 45 "mojo/c_environment.pxd",
46 "mojo/c_thunks.pxd",
41 "mojo/system_impl.pyx", 47 "mojo/system_impl.pyx",
42 ] 48 ]
43 additional_sources = [ 49 sources = [
44 "src/python_system_helper.cc", 50 "src/python_system_helper.cc",
45 "src/python_system_helper.h", 51 "src/python_system_helper.h",
46 ] 52 ]
47 configs = [ "../build/config:mojo_sdk" ] 53 configs = [ "../build/config:mojo_sdk" ]
48 deps = [ 54 deps = [
49 ":base",
50 "../c/environment", 55 "../c/environment",
51 "../c/system", 56 "../c/system",
57 "../cpp/bindings:callback",
52 "../cpp/environment:standalone", 58 "../cpp/environment:standalone",
53 "../cpp/system", 59 "../cpp/system",
54 "../cpp/utility", 60 "../cpp/utility",
55 "../cpp/bindings:callback",
56 "../platform/native:system", 61 "../platform/native:system",
62 ":base",
63 ":python_common",
57 ] 64 ]
58 } 65 }
59 66
67 python_binary_source_set("python_common") {
68 sources = [
69 "src/common.cc",
70 "src/common.h",
71 ]
72 deps = [
73 "../c/environment:environment",
74 "../cpp/bindings:callback",
75 "../cpp/environment:environment",
76 "../cpp/system:system",
77 "../cpp/utility",
78 ]
79 }
80
60 copy("base") { 81 copy("base") {
61 sources = [ 82 sources = [
62 "mojo/__init__.py", 83 "mojo/__init__.py",
63 ] 84 ]
64 outputs = [ 85 outputs = [
65 "$root_out_dir/python/mojo/{{source_file_part}}", 86 "$root_out_dir/python/mojo/{{source_file_part}}",
66 ] 87 ]
67 } 88 }
68 89
69 # GYP version: mojo.gyp:mojo_python_bindings 90 # GYP version: mojo.gyp:mojo_python_bindings
70 copy("bindings") { 91 copy("bindings") {
71 sources = [ 92 sources = [
72 "mojo/bindings/__init__.py", 93 "mojo/bindings/__init__.py",
73 "mojo/bindings/descriptor.py", 94 "mojo/bindings/descriptor.py",
74 "mojo/bindings/messaging.py", 95 "mojo/bindings/messaging.py",
75 "mojo/bindings/promise.py", 96 "mojo/bindings/promise.py",
76 "mojo/bindings/reflection.py", 97 "mojo/bindings/reflection.py",
77 "mojo/bindings/serialization.py", 98 "mojo/bindings/serialization.py",
78 ] 99 ]
79 outputs = [ 100 outputs = [
80 "$root_out_dir/python/mojo/bindings/{{source_file_part}}", 101 "$root_out_dir/python/mojo/bindings/{{source_file_part}}",
81 ] 102 ]
82 deps = [ 103 deps = [
83 ":base", 104 ":base",
84 ":system", 105 ":system",
85 ] 106 ]
86 } 107 }
OLDNEW
« no previous file with comments | « no previous file | mojo/public/python/mojo/c_async_waiter.pxd » ('j') | mojo/public/python/mojo/system.pyx » ('J')

Powered by Google App Engine
This is Rietveld 408576698