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

Unified Diff: chrome/android/webapk/libs/runtime_library/BUILD.gn

Issue 2009423002: Upstream: Version WebAPK runtime library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/webapk/libs/runtime_library/BUILD.gn
diff --git a/chrome/android/webapk/libs/runtime_library/BUILD.gn b/chrome/android/webapk/libs/runtime_library/BUILD.gn
index 62d89ebbeb73f7256c5d19281ecc749a0828a95b..3f8042bd5621a53f16c8bd75f047b7d6d7013bbe 100644
--- a/chrome/android/webapk/libs/runtime_library/BUILD.gn
+++ b/chrome/android/webapk/libs/runtime_library/BUILD.gn
@@ -3,6 +3,15 @@
# found in the LICENSE file.
import("//build/config/android/rules.gni")
+import("//chrome/android/webapk/libs/runtime_library_version.gni")
+
+# runtime_library_version.gni must be updated whenever the runtime library is
+# updated. The WebAPK re-extracts the runtime library from the Chrome APK when
+# |runtime_library_version| is incremented.
+
+# Whenever this constant is changed, WebApkUtils#getRuntimeDexName() must also
+# be changed.
+runtime_library_dex_asset_name = "web_apk$runtime_library_version.dex"
android_aidl("webapk_service_aidl") {
import_include = "src/org/chromium/webapk/lib/runtime_library"
@@ -13,15 +22,18 @@ android_aidl("webapk_service_aidl") {
}
android_library("runtime_library") {
- dex_path = "$target_gen_dir/web_apk.dex"
+ dex_path = "$target_gen_dir/$runtime_library_dex_asset_name"
java_files =
[ "src/org/chromium/webapk/lib/runtime_library/WebApkServiceImpl.java" ]
srcjar_deps = [ ":webapk_service_aidl" ]
}
android_assets("runtime_library_assets") {
+ write_file("$target_gen_dir/web_apk_dex_version.txt", runtime_library_version)
Xi Han 2016/05/26 21:40:23 Please change to webapk_dex_version.txt
+
sources = [
- "$target_gen_dir/web_apk.dex",
+ "$target_gen_dir/$runtime_library_dex_asset_name",
+ "$target_gen_dir/web_apk_dex_version.txt",
Xi Han 2016/05/26 21:40:23 webapk_dex_version.txt
]
disable_compression = true

Powered by Google App Engine
This is Rietveld 408576698