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

Unified Diff: chrome/android/java/templates/monochrome_application.gni

Issue 2501153002: Build public monochrome (Closed)
Patch Set: Created 4 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
Index: chrome/android/java/templates/monochrome_application.gni
diff --git a/chrome/android/java/templates/monochrome_application.gni b/chrome/android/java/templates/monochrome_application.gni
new file mode 100644
index 0000000000000000000000000000000000000000..62ec7719b81cdab49f895498fba33f5b6df23dd5
--- /dev/null
+++ b/chrome/android/java/templates/monochrome_application.gni
@@ -0,0 +1,35 @@
+# Copyright (c) 2016 The Chromium Authors. All rights reserved.
agrieve 2016/11/14 21:19:24 zap!
michaelbai 2016/11/14 22:36:35 Done.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/android/config.gni")
+import("//build/config/android/rules.gni")
+
+# Generates monochrome application class.
+#
+# Variables
+# monochrome_application_class: the name of monochrome application class.
+# package: the package name of monochrome class.
+# super_class: the super class of monochrome application.
+# output: the generated application class.
+template("generate_monochrome_application") {
+ jinja_template(target_name) {
+ forward_variables_from(invoker,
+ [
+ "output",
+ "monochrome_application_class",
+ "package",
+ "super_class",
+ ])
+ assert(defined(output))
+ assert(defined(monochrome_application_class))
+ assert(defined(package))
+ assert(defined(super_class))
+ input = "//chrome/android/java/templates/MonochromeApplication.template"
+ variables = [
+ "package=${package}",
+ "super_class=${super_class}",
+ "monochrome_application_class=${monochrome_application_class}",
+ ]
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698