Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: services/js/BUILD.gn

Issue 703023004: Move the JS content handler et al from mojo/apps/js to mojo/services (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fixed DEPS gl build Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/BUILD.gn ('k') | services/js/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
]
}
« no previous file with comments | « services/BUILD.gn ('k') | services/js/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698