Index: chrome/android/webapk/libs/client/BUILD.gn |
diff --git a/chrome/android/webapk/libs/client/BUILD.gn b/chrome/android/webapk/libs/client/BUILD.gn |
index f19a392906c267a2147527908a08df0ea8b637c1..e0582a9c54ae438dccb8bba8009e603b5596e4dc 100644 |
--- a/chrome/android/webapk/libs/client/BUILD.gn |
+++ b/chrome/android/webapk/libs/client/BUILD.gn |
@@ -3,6 +3,7 @@ |
# found in the LICENSE file. |
import("//build/config/android/rules.gni") |
+import("//chrome/android/webapk/libs/runtime_library_version.gni") |
android_library("client") { |
java_files = [ |
@@ -14,8 +15,18 @@ android_library("client") { |
"//base:base_java", |
"//chrome/android/webapk/libs/common", |
] |
- srcjar_deps = |
- [ "//chrome/android/webapk/libs/runtime_library:webapk_service_aidl" ] |
+ srcjar_deps = [ |
+ ":runtime_library_version_java", |
+ "//chrome/android/webapk/libs/runtime_library:webapk_service_aidl", |
+ ] |
+} |
+ |
+java_cpp_template("runtime_library_version_java") { |
+ package_name = "org/chromium/webapk/lib/client" |
+ sources = [ |
+ "src/org/chromium/webapk/lib/client/WebApkVersion.template", |
+ ] |
+ defines = [ "CURRENT_RUNTIME_DEX_VERSION_VALUE=$runtime_library_version" ] |
} |
junit_binary("webapk_client_junit_tests") { |