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

Unified Diff: chrome/browser/resources/chromeos/braille_ime/BUILD.gn

Issue 2247353004: GN files for running Closure Compiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add use of GN to run_compiler Created 4 years, 3 months 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
Index: chrome/browser/resources/chromeos/braille_ime/BUILD.gn
diff --git a/chrome/browser/resources/chromeos/braille_ime/BUILD.gn b/chrome/browser/resources/chromeos/braille_ime/BUILD.gn
index 092cbce3bc1a7d61cb869c4cb6f49362ef09dd05..137eda56497c68db4984d2254b70028dfcdfc613 100644
--- a/chrome/browser/resources/chromeos/braille_ime/BUILD.gn
+++ b/chrome/browser/resources/chromeos/braille_ime/BUILD.gn
@@ -1,14 +1,41 @@
-# Copyright 2015 The Chromium Authors. All rights reserved.
+# Copyright 2016 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.
-assert(is_chromeos)
+import("//third_party/closure_compiler/compile_js2.gni")
-copy("braille_ime_manifest") {
- sources = [
- "manifest.json",
+if (is_chromeos) {
+ copy("braille_ime_manifest") {
+ source_files = [ "manifest.json" ]
+ outputs = [
+ "$root_out_dir/resources/chromeos/braille_ime/manifest.json",
+ ]
+ }
+}
+
+compile_js("compile_externs") {
+ source_files = [ "externs.js" ]
Dan Beam 2016/09/06 16:46:46 this should probably be "externs =" instead of "so
aberent 2016/09/06 17:30:22 Actually no. The externs are for things in the clo
+}
+
+compile_js("compile_braille_ime") {
+ source_files = [ "braille_ime.js" ]
+ externs = [ "chrome_extensions.js" ]
+ deps = [
+ ":compile_externs",
]
- outputs = [
- "$root_out_dir/resources/chromeos/braille_ime/manifest.json",
+}
+
+compile_js("compile_main") {
+ source_files = [ "main.js" ]
+ deps = [
+ ":compile_braille_ime",
+ ]
+}
+
+group("compile_js") {
+ deps = [
+ ":compile_braille_ime",
+ ":compile_externs",
+ ":compile_main",
]
}
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/network_ui/BUILD.gn » ('j') | third_party/closure_compiler/compile2.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698