diff options
author | Chidera Olibie <colibie@google.com> | 2024-04-08 15:50:42 +0000 |
---|---|---|
committer | Chidera Olibie <colibie@google.com> | 2024-04-08 15:50:42 +0000 |
commit | 8da3704b1d732318e1a304579b77c925bb8c933e (patch) | |
tree | 537610bba02d51d29c9c979e7e058765fa409e2c | |
parent | 7537662681f9eb38cf27489413d8c8a1526a0625 (diff) | |
download | cronet-8da3704b1d732318e1a304579b77c925bb8c933e.tar.gz |
Auto regenerate buildtime in gen_android_bp
This doesn't completely fix the problem if we don't
update aosp for more than 3 months.
Bug: b/332528730
Test: TH
Change-Id: Ifa8326fd2f4a5966a81f4254a479281d9b776509
-rw-r--r-- | Android.bp | 4 | ||||
-rw-r--r-- | android/tools/gn2bp/Android.bp.swp | 4 | ||||
-rwxr-xr-x | android/tools/gn2bp/gen_android_bp | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/Android.bp b/Android.bp index 287ef2d8d..12cdc6a44 100644 --- a/Android.bp +++ b/Android.bp @@ -5839,7 +5839,7 @@ cc_library_static { cc_genrule { name: "cronet_aml_base_build_date", cmd: "mkdir -p $(genDir)/base && $(location base/write_build_date_header.py) $(out) " + - "1705445157", + "1712591404", out: [ "base/generated_build_date.h", ], @@ -5855,7 +5855,7 @@ cc_genrule { cc_genrule { name: "cronet_aml_base_build_date__testing", cmd: "mkdir -p $(genDir)/base && $(location base/write_build_date_header.py) $(out) " + - "1705445157", + "1712591405", host_supported: true, out: [ "base/generated_build_date.h", diff --git a/android/tools/gn2bp/Android.bp.swp b/android/tools/gn2bp/Android.bp.swp index 287ef2d8d..12cdc6a44 100644 --- a/android/tools/gn2bp/Android.bp.swp +++ b/android/tools/gn2bp/Android.bp.swp @@ -5839,7 +5839,7 @@ cc_library_static { cc_genrule { name: "cronet_aml_base_build_date", cmd: "mkdir -p $(genDir)/base && $(location base/write_build_date_header.py) $(out) " + - "1705445157", + "1712591404", out: [ "base/generated_build_date.h", ], @@ -5855,7 +5855,7 @@ cc_genrule { cc_genrule { name: "cronet_aml_base_build_date__testing", cmd: "mkdir -p $(genDir)/base && $(location base/write_build_date_header.py) $(out) " + - "1705445157", + "1712591405", host_supported: true, out: [ "base/generated_build_date.h", diff --git a/android/tools/gn2bp/gen_android_bp b/android/tools/gn2bp/gen_android_bp index cec2de500..82524b054 100755 --- a/android/tools/gn2bp/gen_android_bp +++ b/android/tools/gn2bp/gen_android_bp @@ -32,6 +32,7 @@ import operator import os import re import sys +import time import copy from pathlib import Path @@ -1163,6 +1164,7 @@ class BaseActionSanitizer(): class WriteBuildDateHeaderSanitizer(BaseActionSanitizer): def _sanitize_args(self): self._set_arg_at(0, '$(out)') + self._set_arg_at(1, str(int(time.time()))) super()._sanitize_args() class WriteBuildFlagHeaderSanitizer(BaseActionSanitizer): |