diff options
| author | Po Lu | 2024-06-30 16:26:39 +0800 |
|---|---|---|
| committer | Po Lu | 2024-06-30 16:26:39 +0800 |
| commit | c6a052f2fe53a26cdb0f3624a0b9af5201f3c487 (patch) | |
| tree | fc53fadad85753ca7a22523e34157d9a44df5c41 /java | |
| parent | c8473ee8c1914d15fb19207215f0a06c84d0915c (diff) | |
| download | emacs-c6a052f2fe53a26cdb0f3624a0b9af5201f3c487.tar.gz emacs-c6a052f2fe53a26cdb0f3624a0b9af5201f3c487.zip | |
Respect --disable-build-details in Android builds
* java/Makefile.in (BUILD_DETAILS, GEN_BUILD_DETAILS): New
variables.
(install_tmp): Tolerate failures in generation of metadata files
and prefix commands for such generation with GEN_BUILD_DETAILS.
* lisp/version.el (android-read-build-system)
(android-read-build-time): Return nil if metadata file does not
exist.
Diffstat (limited to 'java')
| -rw-r--r-- | java/Makefile.in | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/java/Makefile.in b/java/Makefile.in index 465f99162ec..3d5165d3186 100644 --- a/java/Makefile.in +++ b/java/Makefile.in | |||
| @@ -57,7 +57,6 @@ else | |||
| 57 | GZIP_PROG = | 57 | GZIP_PROG = |
| 58 | endif | 58 | endif |
| 59 | 59 | ||
| 60 | |||
| 61 | # Android 4.3 and earlier require Emacs to be signed with a different | 60 | # Android 4.3 and earlier require Emacs to be signed with a different |
| 62 | # digital signature algorithm. | 61 | # digital signature algorithm. |
| 63 | 62 | ||
| @@ -77,6 +76,11 @@ else | |||
| 77 | AAPT_ASSET_ARGS = | 76 | AAPT_ASSET_ARGS = |
| 78 | endif | 77 | endif |
| 79 | 78 | ||
| 79 | # This will be replaced by `--no-build-details' if details of the build | ||
| 80 | # system are not to be recorded in generated packages. | ||
| 81 | BUILD_DETAILS = @BUILD_DETAILS@ | ||
| 82 | GEN_BUILD_DETAILS := $(if $(BUILD_DETAILS),true ||,) | ||
| 83 | |||
| 80 | SIGN_EMACS = -keystore $(srcdir)/emacs.keystore -storepass \ | 84 | SIGN_EMACS = -keystore $(srcdir)/emacs.keystore -storepass \ |
| 81 | emacs1 $(JARSIGNER_FLAGS) | 85 | emacs1 $(JARSIGNER_FLAGS) |
| 82 | SIGN_EMACS_V2 = sign --v2-signing-enabled --ks \ | 86 | SIGN_EMACS_V2 = sign --v2-signing-enabled --ks \ |
| @@ -249,13 +253,13 @@ install_temp: $(CROSS_BINS) $(CROSS_LIBS) $(RESOURCE_FILES) \ | |||
| 249 | | xargs ${GZIP_PROG} -9n ; \ | 253 | | xargs ${GZIP_PROG} -9n ; \ |
| 250 | } | 254 | } |
| 251 | # Produce metadata files providing build information and suchlike. | 255 | # Produce metadata files providing build information and suchlike. |
| 252 | $(AM_V_SILENT) \ | 256 | -$(AM_V_SILENT) $(GEN_BUILD_DETAILS) \ |
| 253 | { (cd $(top_srcdir) \ | 257 | { (cd $(top_srcdir) \ |
| 254 | && git rev-parse HEAD || echo "Unknown") \ | 258 | && git rev-parse HEAD || echo "Unknown") \ |
| 255 | && (git rev-parse --abbrev-ref HEAD \ | 259 | && (git rev-parse --abbrev-ref HEAD \ |
| 256 | || echo "Unknown") } 2> /dev/null > \ | 260 | || echo "Unknown") } 2> /dev/null > \ |
| 257 | install_temp/assets/version | 261 | install_temp/assets/version |
| 258 | $(AM_V_SILENT) \ | 262 | -$(AM_V_SILENT) $(GEN_BUILD_DETAILS) \ |
| 259 | { hostname; date +%s; } > install_temp/assets/build_info | 263 | { hostname; date +%s; } > install_temp/assets/build_info |
| 260 | # Produce the file index. | 264 | # Produce the file index. |
| 261 | $(AM_V_SILENT) $(libsrc)/asset-directory-tool \ | 265 | $(AM_V_SILENT) $(libsrc)/asset-directory-tool \ |