OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("../../tools/bindings/mojom.gni") | 5 import("../../tools/bindings/mojom.gni") |
6 | 6 |
7 mojom("bindings") { | 7 mojom("bindings") { |
8 visibility = [] | 8 visibility = [] |
9 sources = [ | 9 sources = [ |
10 "interface_control_messages.mojom", | 10 "interface_control_messages.mojom", |
11 "pipe_control_messages.mojom", | 11 "pipe_control_messages.mojom", |
12 ] | 12 ] |
13 | 13 |
14 export_class_attribute = "MOJO_CPP_BINDINGS_EXPORT" | 14 export_class_attribute = "MOJO_CPP_BINDINGS_EXPORT" |
15 export_define = "MOJO_CPP_BINDINGS_IMPLEMENTATION" | 15 export_define = "MOJO_CPP_BINDINGS_IMPLEMENTATION" |
16 export_header = "mojo/public/cpp/bindings/bindings_export.h" | 16 export_header = "mojo/public/cpp/bindings/bindings_export.h" |
17 } | 17 } |
18 | |
19 # TODO(yzshen): Remove this target and use the one above once | |
20 # |use_new_js_bindings| becomes true by default. | |
21 mojom("new_bindings") { | |
22 visibility = [] | |
23 sources = [ | |
24 "new_bindings/interface_control_messages.mojom", | |
25 "new_bindings/pipe_control_messages.mojom", | |
26 ] | |
27 | |
28 use_new_js_bindings = true | |
29 } | |
OLD | NEW |