]> git.eshelyaron.com Git - emacs.git/commit
Generate Android shared library list automatically
authorPo Lu <luangruo@yahoo.com>
Mon, 22 Apr 2024 08:27:30 +0000 (16:27 +0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 22 Apr 2024 18:38:33 +0000 (20:38 +0200)
commit34a1d86372796f414fb5923d83a7e369ee1acf43
tree7306d6d61302a5dd79f6535b221affce36505407
parent8618fbfdd802f7db68470439a1d23b270678fce9
Generate Android shared library list automatically

* .gitignore: Ignore new generated files.

* cross/Makefile.in (src/Makefile): Remove leftover
specification of the source Gnulib directory.

* cross/ndk-build/ndk-build.mk.in (NDK_BUILD_READELF): New
variable.

* java/Makefile.in (CONFIG_FILE, ALL_DEPENDENCIES, READELF)
(cf-stamp-1, cf-stamp): New variables and rules; compute the set
of library files in the order of loading and generate a file
with this information.
(ALL_CLASS_FILES): New variable; if builddir is not srcdir,
$($(CONFIG_FILE), $(CLASS_FILES)): Depend on EmacsConfig.java.
add generated files in the build directory.
(classes.dex): Adjust to match.

* java/org/gnu/emacs/EmacsNative.java (EmacsNative)
<static initializer>: Load shared libraries from
EMACS_SHARED_LIBRARIES rather than a hard-coded list.

* m4/ndk-build.m4 (ndk_INIT): Search for readelf...
(ndk_CHECK_MODULES): ...and substitute its path as
NDK_BUILD_READELF.

(cherry picked from commit 3bcdf010a9f2576bac0d7f23af70fa9dff81ef95)
.gitignore
cross/Makefile.in
cross/ndk-build/ndk-build.mk.in
java/Makefile.in
java/org/gnu/emacs/EmacsNative.java
m4/ndk-build.m4