Chromium Code Reviews

Unified Diff: third_party/jstemplate/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.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/jstemplate/BUILD.gn
diff --git a/third_party/jstemplate/BUILD.gn b/third_party/jstemplate/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..9a35cc419c515ca9257128c3fe3f23557fd18f81
--- /dev/null
+++ b/third_party/jstemplate/BUILD.gn
@@ -0,0 +1,22 @@
+# 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.
+import("//third_party/closure_compiler/compile_js2.gni")
+
+compile_js("compile_util") {
Dan Beam 2016/09/06 16:46:46 why are we prefixing with compile_ everywhere? wh
aberent 2016/09/06 17:30:22 The issue is that one can't have multiple BUILD.gn
+ source_files = [ "util.js" ]
+}
+
+compile_js("compile_jsevalcontext") {
+ source_files = [ "jsevalcontext.js" ]
+ deps = [
+ ":compile_util",
+ ]
+}
+
+compile_js("compile_jstemplate") {
+ source_files = [ "jstemplate.js" ]
+ deps = [
+ ":compile_jsevalcontext",
+ ]
+}

Powered by Google App Engine