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

Unified Diff: chrome/android/BUILD.gn

Issue 657443002: Turn Chrome Shell's AndroidManifest into a jinja2 template. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better Created 6 years, 2 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/android/BUILD.gn
diff --git a/chrome/android/BUILD.gn b/chrome/android/BUILD.gn
index 076e956252802ac3015ca9f4f88efd027f7fb194..f4636f67266d34b53b6593abf041a4086b6a1909 100644
--- a/chrome/android/BUILD.gn
+++ b/chrome/android/BUILD.gn
@@ -7,6 +7,7 @@ import("//build/config/android/rules.gni")
import("//chrome/version.gni")
import("//third_party/icu/config.gni")
+chrome_shell_manifest = "$target_gen_dir/chrome_shell_manifest/AndroidManifest.xml"
cjhopman 2014/10/17 18:54:25 Move this down near where it's used.
newt (away) 2014/10/20 22:45:12 Done.
# GYP: //chrome/chrome.gyp:chrome_java (resources part)
android_resources("chrome_java_resources") {
@@ -218,7 +219,7 @@ static_library("chrome_shell_base") {
# TODO(GYP, cjhopman): make chrome_shell_base actually link and then move it to
# deps. Also, actually compile the main delegates at that point.
-# GYP: //chrome/chrome_browser.gypi:libchromeshell
+# GYP: //chrome/chrome_shell.gypi:libchromeshell
shared_library("chrome_shell") {
testonly = true
sources = [
@@ -237,7 +238,7 @@ shared_library("chrome_shell") {
]
}
-# GYP: //chrome/chrome_browser.gypi:libchromesyncshell
+# GYP: //chrome/chrome_shell.gypi:libchromesyncshell
shared_library("chrome_sync_shell") {
testonly = true
sources = [
@@ -349,7 +350,14 @@ copy_ex("chrome_shell_assets") {
}
}
-# GYP: //chrome/chrome_browser.gypi:chrome_shell_apk
+# GYP: //chrome/chrome_shell.gypi:chrome_shell_manifest
+jinja_template("chrome_shell_manifest") {
+ testonly = true # is this needed?
cjhopman 2014/10/17 18:54:25 this isn't needed (but it doesn't hurt). gn will
newt (away) 2014/10/20 22:45:12 Ok, keeping testonly
+ input = "shell/java/AndroidManifest.xml"
+ output = chrome_shell_manifest
+}
+
+# GYP: //chrome/chrome_shell.gypi:chrome_shell_apk
android_apk("chrome_shell_apk") {
testonly = true
deps = [
@@ -359,7 +367,7 @@ android_apk("chrome_shell_apk") {
":chrome_shell",
]
apk_name = "ChromeShell"
- android_manifest = "shell/java/AndroidManifest.xml"
+ android_manifest = chrome_shell_manifest
native_libs = [
"$root_build_dir/lib.stripped/libchrome_shell.so"
]
@@ -378,7 +386,7 @@ android_apk("chrome_shell_apk") {
}
-# GYP: //chrome/chrome_browser.gypi:chrome_sync_shell_apk
+# GYP: //chrome/chrome_shell.gypi:chrome_sync_shell_apk
android_apk("chrome_sync_shell_apk") {
testonly = true
deps = [

Powered by Google App Engine
This is Rietveld 408576698