| 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 19 matching lines...) Expand all Loading... |
| 30 "lib/pipe_control_message_proxy.js", | 30 "lib/pipe_control_message_proxy.js", |
| 31 "router.js", | 31 "router.js", |
| 32 "support.js", | 32 "support.js", |
| 33 "threading.js", | 33 "threading.js", |
| 34 "unicode.js", | 34 "unicode.js", |
| 35 "validator.js", | 35 "validator.js", |
| 36 ] | 36 ] |
| 37 | 37 |
| 38 deps = [ | 38 deps = [ |
| 39 ":new_bindings", | 39 ":new_bindings", |
| 40 "//mojo/public/interfaces/bindings:bindings__generator", | 40 "//mojo/public/interfaces/bindings:bindings_js__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 "new_bindings/bindings.js", | 50 "new_bindings/bindings.js", |
| (...skipping 23 matching lines...) Expand all Loading... |
| 74 | 74 |
| 75 sources = new_bindings_js_files | 75 sources = new_bindings_js_files |
| 76 outputs = [ | 76 outputs = [ |
| 77 compiled_file, | 77 compiled_file, |
| 78 ] | 78 ] |
| 79 | 79 |
| 80 args = rebase_path(new_bindings_js_files, root_build_dir) | 80 args = rebase_path(new_bindings_js_files, root_build_dir) |
| 81 args += [ rebase_path(compiled_file, root_build_dir) ] | 81 args += [ rebase_path(compiled_file, root_build_dir) ] |
| 82 | 82 |
| 83 deps = [ | 83 deps = [ |
| 84 "//mojo/public/interfaces/bindings:new_bindings__generator", | 84 "//mojo/public/interfaces/bindings:new_bindings_js__generator", |
| 85 ] | 85 ] |
| 86 } | 86 } |
| 87 | 87 |
| 88 group("tests") { | 88 group("tests") { |
| 89 testonly = true | 89 testonly = true |
| 90 | 90 |
| 91 data = [ | 91 data = [ |
| 92 "tests/core_unittest.js", | 92 "tests/core_unittest.js", |
| 93 ] | 93 ] |
| 94 | 94 |
| 95 public_deps = [ | 95 public_deps = [ |
| 96 ":bindings", | 96 ":bindings", |
| 97 ] | 97 ] |
| 98 } | 98 } |
| OLD | NEW |