| 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 17 matching lines...) Expand all Loading... |
| 28 "lib/pipe_control_message_handler.js", | 28 "lib/pipe_control_message_handler.js", |
| 29 "lib/pipe_control_message_proxy.js", | 29 "lib/pipe_control_message_proxy.js", |
| 30 "router.js", | 30 "router.js", |
| 31 "support.js", | 31 "support.js", |
| 32 "threading.js", | 32 "threading.js", |
| 33 "unicode.js", | 33 "unicode.js", |
| 34 "validator.js", | 34 "validator.js", |
| 35 ] | 35 ] |
| 36 | 36 |
| 37 deps = [ | 37 deps = [ |
| 38 ":new_bindings", |
| 38 "//mojo/public/interfaces/bindings:bindings__generator", | 39 "//mojo/public/interfaces/bindings:bindings__generator", |
| 39 ] | 40 ] |
| 40 } | 41 } |
| 41 | 42 |
| 43 action("new_bindings") { |
| 44 new_bindings_js_files = [ |
| 45 # This must be the first file in the list, because it initializes global |
| 46 # variable |mojoBindings| that the others need to refer to. |
| 47 "new_bindings/base.js", |
| 48 |
| 49 "$interfaces_bindings_gen_dir/new_bindings/interface_control_messages.mojom.
js", |
| 50 "new_bindings/bindings.js", |
| 51 "new_bindings/buffer.js", |
| 52 "new_bindings/codec.js", |
| 53 "new_bindings/connector.js", |
| 54 "new_bindings/interface_types.js", |
| 55 "new_bindings/lib/control_message_handler.js", |
| 56 "new_bindings/lib/control_message_proxy.js", |
| 57 "new_bindings/router.js", |
| 58 "new_bindings/unicode.js", |
| 59 "new_bindings/validator.js", |
| 60 ] |
| 61 compiled_file = "$target_gen_dir/mojo_bindings.js" |
| 62 |
| 63 # TODO(yzshen): Eventually we would like to use Closure Compiler to minify the |
| 64 # bindings instead of simply concatenating the files. |
| 65 script = "//v8/tools/concatenate-files.py" |
| 66 |
| 67 sources = new_bindings_js_files |
| 68 outputs = [ |
| 69 compiled_file, |
| 70 ] |
| 71 |
| 72 args = rebase_path(new_bindings_js_files) |
| 73 args += [ rebase_path(compiled_file) ] |
| 74 |
| 75 deps = [ |
| 76 "//mojo/public/interfaces/bindings:new_bindings__generator", |
| 77 ] |
| 78 } |
| 79 |
| 42 group("tests") { | 80 group("tests") { |
| 43 testonly = true | 81 testonly = true |
| 44 | 82 |
| 45 data = [ | 83 data = [ |
| 46 "//mojo/public/interfaces/bindings/tests/data/validation/", | 84 "//mojo/public/interfaces/bindings/tests/data/validation/", |
| 47 "tests/core_unittest.js", | 85 "tests/core_unittest.js", |
| 48 "tests/validation_test_input_parser.js", | 86 "tests/validation_test_input_parser.js", |
| 49 "tests/validation_unittest.js", | 87 "tests/validation_unittest.js", |
| 50 ] | 88 ] |
| 51 | 89 |
| 52 public_deps = [ | 90 public_deps = [ |
| 53 ":bindings", | 91 ":bindings", |
| 54 ] | 92 ] |
| 55 } | 93 } |
| OLD | NEW |