Chromium Code Reviews| 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 |