Index: services/js/BUILD.gn |
diff --git a/mojo/apps/js/BUILD.gn b/services/js/BUILD.gn |
similarity index 65% |
rename from mojo/apps/js/BUILD.gn |
rename to services/js/BUILD.gn |
index 6b32936a3d0551b24562fba718d168221feb91bc..ce2eac6da11c9e188c8661bc9a5ea79f2f60d7c6 100644 |
--- a/mojo/apps/js/BUILD.gn |
+++ b/services/js/BUILD.gn |
@@ -3,40 +3,43 @@ |
# found in the LICENSE file. |
group("js") { |
- # Meta-target, don't link into production code. |
- testonly = true |
deps = [ |
":js_content_handler", |
] |
} |
-source_set("js_apps") { |
+shared_library("js_content_handler") { |
sources = [ |
+ "content_handler_main.cc", |
"js_app.cc", |
+ "js_app.h", |
"mojo_bridge_module.cc", |
+ "mojo_bridge_module.h", |
] |
- public_deps = [ |
- "//mojo/edk/js", |
- ] |
deps = [ |
+ "//base:i18n", |
"//mojo/application", |
+ "//mojo/application:application", |
+ "//mojo/application:content_handler", |
+ "//mojo/edk/js/", |
+ "//mojo/environment:chromium", |
"//mojo/public/c/system:for_shared_library", |
"//mojo/public/cpp/utility", |
+ "//mojo/services/public/interfaces/content_handler", |
] |
} |
-shared_library("js_content_handler") { |
- sources = [ |
- "content_handler_main.cc", |
- ] |
- |
+test("js_services_unittests") { |
deps = [ |
- ":js_apps", |
- "//base:i18n", |
- "//mojo/application:application", |
- "//mojo/application:content_handler", |
+ "//base", |
+ "//gin:gin_test", |
+ "//mojo/edk/js", |
+ "//mojo/edk/test:run_all_unittests", |
+ "//mojo/edk/test:test_support", |
+ "//mojo/public/cpp/utility", |
"//mojo/environment:chromium", |
- "//mojo/services/public/interfaces/content_handler", |
+ "//mojo/public/interfaces/bindings/tests:test_interfaces", |
+ "//services/js/modules/clock/test", |
] |
} |