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 group("js") { | 5 group("js") { |
6 # Meta-target, don't link into production code. | |
7 testonly = true | |
8 deps = [ | 6 deps = [ |
9 ":js_content_handler", | 7 ":js_content_handler", |
10 ] | 8 ] |
11 } | 9 } |
12 | 10 |
13 source_set("js_apps") { | |
14 sources = [ | |
15 "js_app.cc", | |
16 "mojo_bridge_module.cc", | |
17 ] | |
18 | |
19 public_deps = [ | |
20 "//mojo/edk/js", | |
21 ] | |
22 deps = [ | |
23 "//mojo/application", | |
24 "//mojo/public/c/system:for_shared_library", | |
25 "//mojo/public/cpp/utility", | |
26 ] | |
27 } | |
28 | |
29 shared_library("js_content_handler") { | 11 shared_library("js_content_handler") { |
30 sources = [ | 12 sources = [ |
31 "content_handler_main.cc", | 13 "content_handler_main.cc", |
| 14 "js_app.cc", |
| 15 "js_app.h", |
| 16 "mojo_bridge_module.cc", |
| 17 "mojo_bridge_module.h", |
32 ] | 18 ] |
33 | 19 |
34 deps = [ | 20 deps = [ |
35 ":js_apps", | |
36 "//base:i18n", | 21 "//base:i18n", |
| 22 "//mojo/application", |
37 "//mojo/application:application", | 23 "//mojo/application:application", |
38 "//mojo/application:content_handler", | 24 "//mojo/application:content_handler", |
| 25 "//mojo/edk/js/", |
39 "//mojo/environment:chromium", | 26 "//mojo/environment:chromium", |
| 27 "//mojo/public/c/system:for_shared_library", |
| 28 "//mojo/public/cpp/utility", |
40 "//mojo/services/public/interfaces/content_handler", | 29 "//mojo/services/public/interfaces/content_handler", |
41 ] | 30 ] |
42 } | 31 } |
| 32 |
| 33 test("js_services_unittests") { |
| 34 deps = [ |
| 35 "//base", |
| 36 "//gin:gin_test", |
| 37 "//mojo/edk/js", |
| 38 "//mojo/edk/test:run_all_unittests", |
| 39 "//mojo/edk/test:test_support", |
| 40 "//mojo/public/cpp/utility", |
| 41 "//mojo/environment:chromium", |
| 42 "//mojo/public/interfaces/bindings/tests:test_interfaces", |
| 43 "//services/js/modules/clock/test", |
| 44 ] |
| 45 } |
OLD | NEW |