| 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 interfaces_bindings_gen_dir = "$root_gen_dir/mojo/public/interfaces/bindings" | 5 interfaces_bindings_gen_dir = "$root_gen_dir/mojo/public/interfaces/bindings" |
| 6 | 6 |
| 7 source_set("js") { | 7 source_set("js") { |
| 8 sources = [ | 8 sources = [ |
| 9 "constants.cc", | 9 "constants.cc", |
| 10 "constants.h", | 10 "constants.h", |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 "//mojo/public/interfaces/bindings:bindings__generator", | 40 "//mojo/public/interfaces/bindings:bindings__generator", |
| 41 ] | 41 ] |
| 42 } | 42 } |
| 43 | 43 |
| 44 action("new_bindings") { | 44 action("new_bindings") { |
| 45 new_bindings_js_files = [ | 45 new_bindings_js_files = [ |
| 46 # This must be the first file in the list, because it initializes global | 46 # This must be the first file in the list, because it initializes global |
| 47 # variable |mojoBindings| that the others need to refer to. | 47 # variable |mojoBindings| that the others need to refer to. |
| 48 "new_bindings/base.js", | 48 "new_bindings/base.js", |
| 49 | 49 |
| 50 "$interfaces_bindings_gen_dir/new_bindings/interface_control_messages.mojom.
js", | |
| 51 "$interfaces_bindings_gen_dir/new_bindings/pipe_control_messages.mojom.js", | |
| 52 "new_bindings/bindings.js", | 50 "new_bindings/bindings.js", |
| 53 "new_bindings/buffer.js", | 51 "new_bindings/buffer.js", |
| 54 "new_bindings/codec.js", | 52 "new_bindings/codec.js", |
| 55 "new_bindings/connector.js", | 53 "new_bindings/connector.js", |
| 56 "new_bindings/interface_types.js", | 54 "new_bindings/interface_types.js", |
| 57 "new_bindings/lib/control_message_handler.js", | 55 "new_bindings/lib/control_message_handler.js", |
| 58 "new_bindings/lib/control_message_proxy.js", | 56 "new_bindings/lib/control_message_proxy.js", |
| 59 "new_bindings/lib/interface_endpoint_client.js", | 57 "new_bindings/lib/interface_endpoint_client.js", |
| 60 "new_bindings/lib/interface_endpoint_handle.js", | 58 "new_bindings/lib/interface_endpoint_handle.js", |
| 61 "new_bindings/lib/pipe_control_message_handler.js", | 59 "new_bindings/lib/pipe_control_message_handler.js", |
| 62 "new_bindings/lib/pipe_control_message_proxy.js", | 60 "new_bindings/lib/pipe_control_message_proxy.js", |
| 63 "new_bindings/router.js", | 61 "new_bindings/router.js", |
| 64 "new_bindings/unicode.js", | 62 "new_bindings/unicode.js", |
| 65 "new_bindings/validator.js", | 63 "new_bindings/validator.js", |
| 64 |
| 65 # These two needs to refer to codec.js. |
| 66 "$interfaces_bindings_gen_dir/new_bindings/interface_control_messages.mojom.
js", |
| 67 "$interfaces_bindings_gen_dir/new_bindings/pipe_control_messages.mojom.js", |
| 66 ] | 68 ] |
| 67 compiled_file = "$target_gen_dir/mojo_bindings.js" | 69 compiled_file = "$target_gen_dir/mojo_bindings.js" |
| 68 | 70 |
| 69 # TODO(yzshen): Eventually we would like to use Closure Compiler to minify the | 71 # TODO(yzshen): Eventually we would like to use Closure Compiler to minify the |
| 70 # bindings instead of simply concatenating the files. | 72 # bindings instead of simply concatenating the files. |
| 71 script = "//v8/tools/concatenate-files.py" | 73 script = "//v8/tools/concatenate-files.py" |
| 72 | 74 |
| 73 sources = new_bindings_js_files | 75 sources = new_bindings_js_files |
| 74 outputs = [ | 76 outputs = [ |
| 75 compiled_file, | 77 compiled_file, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 87 testonly = true | 89 testonly = true |
| 88 | 90 |
| 89 data = [ | 91 data = [ |
| 90 "tests/core_unittest.js", | 92 "tests/core_unittest.js", |
| 91 ] | 93 ] |
| 92 | 94 |
| 93 public_deps = [ | 95 public_deps = [ |
| 94 ":bindings", | 96 ":bindings", |
| 95 ] | 97 ] |
| 96 } | 98 } |
| OLD | NEW |