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("../mojo_sdk.gni") | 5 import("../mojo_sdk.gni") |
6 import("//third_party/cython/rules.gni") | 6 import("//third_party/cython/rules.gni") |
7 import("rules.gni") | 7 import("rules.gni") |
8 | 8 |
9 group("python") { | 9 group("python") { |
10 deps = [ | 10 deps = [ |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 rebase_timestamp = rebase_path(timestamp, root_build_dir) | 108 rebase_timestamp = rebase_path(timestamp, root_build_dir) |
109 args = [ | 109 args = [ |
110 "--inputs=${rebase_inputs}", | 110 "--inputs=${rebase_inputs}", |
111 "--output=${rabase_output}", | 111 "--output=${rabase_output}", |
112 "--timestamp=${rebase_timestamp}", | 112 "--timestamp=${rebase_timestamp}", |
113 ] | 113 ] |
114 | 114 |
115 deps = mojom_deps | 115 deps = mojom_deps |
116 } | 116 } |
117 | 117 |
118 copy("bindings") { | 118 group("bindings") { |
| 119 deps = [ |
| 120 ":import_interface_bindings", |
| 121 ":serialization_bindings", |
| 122 ] |
| 123 } |
| 124 |
| 125 # This target lists dependencies needed to use generated mojom files for |
| 126 # serialization/deserialization only, but not the full mojo application stack. |
| 127 copy("serialization_bindings") { |
119 sources = [ | 128 sources = [ |
120 "mojo_bindings/__init__.py", | 129 "mojo_bindings/__init__.py", |
121 "mojo_bindings/descriptor.py", | 130 "mojo_bindings/descriptor.py", |
122 "mojo_bindings/interface_reflection.py", | 131 "mojo_bindings/interface_reflection.py", |
123 "mojo_bindings/messaging.py", | 132 "mojo_bindings/messaging.py", |
124 "mojo_bindings/promise.py", | 133 "mojo_bindings/promise.py", |
125 "mojo_bindings/reflection.py", | 134 "mojo_bindings/reflection.py", |
126 "mojo_bindings/serialization.py", | 135 "mojo_bindings/serialization.py", |
127 ] | 136 ] |
128 outputs = [ | 137 outputs = [ |
129 "$root_out_dir/python/mojo_bindings/{{source_file_part}}", | 138 "$root_out_dir/python/mojo_bindings/{{source_file_part}}", |
130 ] | 139 ] |
131 deps = [ | 140 deps = [ |
132 ":import_interface_bindings", | |
133 ":mojo_system", | 141 ":mojo_system", |
134 ] | 142 ] |
135 } | 143 } |
136 | 144 |
137 python_package("packaged_bindings") { | 145 python_package("packaged_bindings") { |
138 sources = [ | 146 sources = [ |
139 "mojo_bindings/__init__.py", | 147 "mojo_bindings/__init__.py", |
140 "mojo_bindings/descriptor.py", | 148 "mojo_bindings/descriptor.py", |
141 "mojo_bindings/interface_reflection.py", | 149 "mojo_bindings/interface_reflection.py", |
142 "mojo_bindings/messaging.py", | 150 "mojo_bindings/messaging.py", |
143 "mojo_bindings/promise.py", | 151 "mojo_bindings/promise.py", |
144 "mojo_bindings/reflection.py", | 152 "mojo_bindings/reflection.py", |
145 "mojo_bindings/serialization.py", | 153 "mojo_bindings/serialization.py", |
146 ] | 154 ] |
147 | 155 |
148 deps = [ | 156 deps = [ |
149 "../interfaces/bindings:bindings_python", | 157 "../interfaces/bindings:bindings_python", |
150 ] | 158 ] |
151 } | 159 } |
OLD | NEW |