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 # TODO(hansmuller): The organization of tests in this directory is weird: | 5 # TODO(hansmuller): The organization of tests in this directory is weird: |
6 # * Really, js_unittests tests public stuff, so that should live in public | 6 # * Really, js_unittests tests public stuff, so that should live in public |
7 # and be reworked as some sort of apptest. | 7 # and be reworked as some sort of apptest. |
8 # * Both js_unittests and js_integration_tests should auto-generate their | 8 # * Both js_unittests and js_integration_tests should auto-generate their |
9 # tests somehow. The .cc files are just test runner stubs, including | 9 # tests somehow. The .cc files are just test runner stubs, including |
10 # explicit lists of .js files. | 10 # explicit lists of .js files. |
11 group("tests") { | 11 group("tests") { |
12 testonly = true | 12 testonly = true |
13 deps = [ | 13 deps = [ |
14 "test:js_integration_tests", | 14 "test:js_integration_tests", |
15 "test:js_unittests", | 15 "test:js_unittests", |
16 ] | 16 ] |
17 } | 17 } |
18 | 18 |
19 source_set("js") { | 19 component("js") { |
20 sources = [ | 20 sources = [ |
21 "core.cc", | 21 "core.cc", |
22 "core.h", | 22 "core.h", |
23 "drain_data.cc", | 23 "drain_data.cc", |
24 "drain_data.h", | 24 "drain_data.h", |
25 "handle.cc", | 25 "handle.cc", |
26 "handle.h", | 26 "handle.h", |
27 "handle_close_observer.h", | 27 "handle_close_observer.h", |
| 28 "js_export.h", |
28 "mojo_runner_delegate.cc", | 29 "mojo_runner_delegate.cc", |
29 "mojo_runner_delegate.h", | 30 "mojo_runner_delegate.h", |
30 "support.cc", | 31 "support.cc", |
31 "support.h", | 32 "support.h", |
32 "threading.cc", | 33 "threading.cc", |
33 "threading.h", | 34 "threading.h", |
34 "waiting_callback.cc", | 35 "waiting_callback.cc", |
35 "waiting_callback.h", | 36 "waiting_callback.h", |
36 ] | 37 ] |
37 | 38 |
38 public_deps = [ | 39 public_deps = [ |
39 "//base", | 40 "//base", |
40 "//gin", | 41 "//gin", |
41 "//v8", | 42 "//v8", |
42 ] | 43 ] |
43 | 44 |
44 deps = [ | 45 deps = [ |
45 "//mojo/public/cpp/system", | 46 "//mojo/public/cpp/system", |
46 ] | 47 ] |
| 48 defines = [ "MOJO_JS_IMPLEMENTATION" ] |
47 } | 49 } |
OLD | NEW |