diff options
| author | Po Lu | 2023-01-14 09:34:53 +0800 |
|---|---|---|
| committer | Po Lu | 2023-01-14 09:34:53 +0800 |
| commit | 28a9baccd4c8e997895d3adb3cfce4a11fa29896 (patch) | |
| tree | 3b3be6902bca10759a1c12632c3fe325bfe5f0eb /admin | |
| parent | a441ac5527f7323202063466422d3ee830ad4c21 (diff) | |
| download | emacs-28a9baccd4c8e997895d3adb3cfce4a11fa29896.tar.gz emacs-28a9baccd4c8e997895d3adb3cfce4a11fa29896.zip | |
Improve reliability of Android build system
* .gitignore: Add new files.
* INSTALL.android: New file.
* Makefile.in (clean_dirs): Clean xcompile as well.
* admin/merge-gnulib (avoided_flags): Import gnulib into Android
directory as well.
* doc/emacs/android.texi (Android):
* doc/emacs/emacs.texi (Top): New node `Android'.
* java/org/gnu/emacs/EmacsThread.java (run): Use right
executable name.
* lib/Makefile.in (ANDROID_CFLAGS): Use better way to refer to
/src.
(vpath): Delete ugly block of vpath statements.
(mostlyclean): Remove Makefile.android.
* lib/fpending.c (__fpending):
* lib/open.c:
* lib/unistd.c (_GL_UNISTD_INLINE): Revert changes to gnulib in
lib/.
* src/android.h:
* src/androidterm.c: Fix build.
* xcompile/Makefile.in (LIB_SRCDIR):
(LIBSRC_BINARIES, src/verbose.mk):
(PRE_BUILD_DEPS, PHONY): Use gnulib in xcompile/lib/ as opposed
to lib/.
* xcompile/README: Adjust README.
Diffstat (limited to 'admin')
| -rwxr-xr-x | admin/merge-gnulib | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/admin/merge-gnulib b/admin/merge-gnulib index e17ecd95ac3..b99e38672a4 100755 --- a/admin/merge-gnulib +++ b/admin/merge-gnulib | |||
| @@ -114,6 +114,11 @@ for module in $AVOIDED_MODULES; do | |||
| 114 | avoided_flags="$avoided_flags --avoid=$module" | 114 | avoided_flags="$avoided_flags --avoid=$module" |
| 115 | done | 115 | done |
| 116 | 116 | ||
| 117 | # Clean the lib directory as well. | ||
| 118 | if [ -e "$src"/lib/Makefile ]; then | ||
| 119 | make -C "$src"/lib maintainer-clean | ||
| 120 | fi | ||
| 121 | |||
| 117 | "$gnulib_srcdir"/gnulib-tool --dir="$src" $GNULIB_TOOL_FLAGS \ | 122 | "$gnulib_srcdir"/gnulib-tool --dir="$src" $GNULIB_TOOL_FLAGS \ |
| 118 | $avoided_flags $GNULIB_MODULES && | 123 | $avoided_flags $GNULIB_MODULES && |
| 119 | rm -- "$src"lib/gl_openssl.h \ | 124 | rm -- "$src"lib/gl_openssl.h \ |
| @@ -135,4 +140,8 @@ cp -- "$gnulib_srcdir"/lib/af_alg.h \ | |||
| 135 | { test -z "$src" || cd "$src"; } && | 140 | { test -z "$src" || cd "$src"; } && |
| 136 | ./autogen.sh | 141 | ./autogen.sh |
| 137 | 142 | ||
| 138 | echo "Please update the block of vpath statements in lib/Makefile.in" | 143 | # Finally, update the files in lib/ to xcompile/lib. |
| 144 | rsync "$src"/lib "$src"/xcompile | ||
| 145 | |||
| 146 | # Remove unnecessary files. | ||
| 147 | rm -f "$src"/xcompile/lib/*.mk.in "$src"/xcompile/lib/Makefile.in | ||