Commit f3ac06a6 authored by Oleh Lamzin's avatar Oleh Lamzin Committed by Commit Bot

[Telemetry SWX] move JS targets to resources/BUILD.gn

Move JS related targets to resources/BUILD.gn file.

Bug: b:158566609
Change-Id: I910fc19e50af7d60ae885e7038176f0b11974376
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2244211Reviewed-by: default avatarAchuith Bhandarkar <achuith@chromium.org>
Reviewed-by: default avatarGiovanni Ortuño Urquidi <ortuno@chromium.org>
Reviewed-by: default avatarMahmoud Gawad <mgawad@google.com>
Commit-Queue: Oleh Lamzin <lamzin@google.com>
Cr-Commit-Position: refs/heads/master@{#781243}
parent cebed37c
...@@ -46,7 +46,7 @@ group("closure_compile") { ...@@ -46,7 +46,7 @@ group("closure_compile") {
if (!is_official_build) { if (!is_official_build) {
deps += [ deps += [
"//chromeos/components/sample_system_web_app_ui:closure_compile", "//chromeos/components/sample_system_web_app_ui:closure_compile",
"//chromeos/components/telemetry_extension_ui:closure_compile", "//chromeos/components/telemetry_extension_ui/resources:closure_compile",
] ]
} }
} }
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
# found in the LICENSE file. # found in the LICENSE file.
import("//chrome/test/base/js2gtest.gni") import("//chrome/test/base/js2gtest.gni")
import("//third_party/closure_compiler/compile_js.gni")
assert(is_chromeos, "Telemetry Extension is Chrome OS only") assert(is_chromeos, "Telemetry Extension is Chrome OS only")
assert(!is_official_build, assert(!is_official_build,
...@@ -31,27 +30,6 @@ static_library("telemetry_extension_ui") { ...@@ -31,27 +30,6 @@ static_library("telemetry_extension_ui") {
] ]
} }
js_type_check("closure_compile") {
deps = [
":trusted",
":untrusted",
":untrusted_worker",
]
}
js_library("trusted") {
sources = [ "resources/trusted.js" ]
deps = [ "//chromeos/components/telemetry_extension_ui/mojom:mojom_js_library_for_compile" ]
}
js_library("untrusted") {
sources = [ "resources/untrusted.js" ]
}
js_library("untrusted_worker") {
sources = [ "resources/untrusted_worker.js" ]
}
js2gtest("browser_tests_js") { js2gtest("browser_tests_js") {
test_type = "mojo_lite_webui" test_type = "mojo_lite_webui"
......
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//third_party/closure_compiler/compile_js.gni")
assert(is_chromeos, "Telemetry Extension is Chrome OS only")
assert(!is_official_build,
"Telemetry Extension is only built for unofficial builds")
js_type_check("closure_compile") {
deps = [
":trusted",
":untrusted",
":untrusted_worker",
]
}
js_library("trusted") {
sources = [ "trusted.js" ]
deps = [ "../mojom:mojom_js_library_for_compile" ]
}
js_library("untrusted") {
sources = [ "untrusted.js" ]
}
js_library("untrusted_worker") {
sources = [ "untrusted_worker.js" ]
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment