aboutsummaryrefslogtreecommitdiffstats
path: root/java/Makefile.in
diff options
context:
space:
mode:
authorPo Lu2023-03-07 20:18:02 +0800
committerPo Lu2023-03-07 20:18:02 +0800
commit84d27fe53b2888b6668ba8510f377eb0eabeeb09 (patch)
tree82d55aaecfab0576159664a575d61fa9895c9100 /java/Makefile.in
parent83c29bd40e0c7e3975f575067a3112a0191b5590 (diff)
downloademacs-84d27fe53b2888b6668ba8510f377eb0eabeeb09.tar.gz
emacs-84d27fe53b2888b6668ba8510f377eb0eabeeb09.zip
Save build timestamps in Android builds
* java/Makefile.in (install_temp/assets/build_info): New rule.:(emacs.apk-in): Depend on that file. * lisp/version.el (android-read-build-system) (android-read-build-time): New functions. (emacs-build-system, emacs-build-time): Use those functions on Android, as dumping is done after installation on Android. * src/fileio.c (Finsert_file_contents): * src/window.c (replace_buffer_in_windows): Don't call functions if they are not defined, which can happen during loadup.
Diffstat (limited to 'java/Makefile.in')
-rw-r--r--java/Makefile.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/java/Makefile.in b/java/Makefile.in
index c7fe6e07c77..1a7852487ef 100644
--- a/java/Makefile.in
+++ b/java/Makefile.in
@@ -222,8 +222,12 @@ install_temp/assets/version: install_temp
222 && (git rev-parse --abbrev-ref HEAD \ 222 && (git rev-parse --abbrev-ref HEAD \
223 || echo "Unknown") } 2> /dev/null > $@ 223 || echo "Unknown") } 2> /dev/null > $@
224 224
225install_temp/assets/build_info: install_temp
226 $(AM_V_GEN) { hostname; date +%s; } > $@
227
225emacs.apk-in: install_temp install_temp/assets/directory-tree \ 228emacs.apk-in: install_temp install_temp/assets/directory-tree \
226 install_temp/assets/version AndroidManifest.xml 229 install_temp/assets/version install_temp/assets/build_info \
230 AndroidManifest.xml
227# Package everything. Specifying the assets on this command line is 231# Package everything. Specifying the assets on this command line is
228# necessary for AAssetManager_getNextFileName to work on old versions 232# necessary for AAssetManager_getNextFileName to work on old versions
229# of Android. Make sure not to generate R.java, as it's already been 233# of Android. Make sure not to generate R.java, as it's already been