diff options
| author | Po Lu | 2023-03-04 11:19:25 +0800 |
|---|---|---|
| committer | Po Lu | 2023-03-04 11:19:25 +0800 |
| commit | 0e995d06a8df4660a4eca63673087d2df63bf8b0 (patch) | |
| tree | f748106c90ac4aa12ec6e65dc65645d5c4b4c852 /java | |
| parent | 0d363aded1e33762f9ed91aef2497a162de956b2 (diff) | |
| download | emacs-0e995d06a8df4660a4eca63673087d2df63bf8b0.tar.gz emacs-0e995d06a8df4660a4eca63673087d2df63bf8b0.zip | |
Improve support for building Android C++ dependencies
* configure.ac: Call ndk_LATE after gl_EARLY.
* cross/ndk-build/Makefile.in (NDK_BUILD_CXX): New variable.
* cross/ndk-build/ndk-build-shared-library.mk:
* cross/ndk-build/ndk-build-static-library.mk: Use it.
* java/INSTALL: Describe how to build C++ dependencies.
* m4/ndk-build.m4 (ndk_LATE): New macro.
(ndk_INIT): Try to find a suitable C++ compiler.
(ndk_CHECK_MODULES): Make sure the C++ compiler works before
allowing C++ dependencies.
Diffstat (limited to 'java')
| -rw-r--r-- | java/INSTALL | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/java/INSTALL b/java/INSTALL index bc5f4a70cd0..b331d09d9ff 100644 --- a/java/INSTALL +++ b/java/INSTALL | |||
| @@ -112,6 +112,24 @@ result, the Emacs package will be approximately 100 megabytes larger | |||
| 112 | than a compressed package for a newer version of Android. | 112 | than a compressed package for a newer version of Android. |
| 113 | 113 | ||
| 114 | 114 | ||
| 115 | BUILDING C++ DEPENDENCIES | ||
| 116 | |||
| 117 | With a new version of the NDK, dependencies containing C++ code should | ||
| 118 | build without any futher configuration. However, older versions | ||
| 119 | require that you use the ``make_standalone_toolchain.py'' script in | ||
| 120 | the NDK distribution to create a ``standalone toolchain'', and use | ||
| 121 | that instead, in order for C++ headers to be found. | ||
| 122 | |||
| 123 | See https://developer.android.com/ndk/guides/standalone_toolchain for | ||
| 124 | more details; when a ``standalone toolchain'' is specified, the | ||
| 125 | configure script will try to determine the location of the C++ | ||
| 126 | compiler based on the C compiler specified. If that automatic | ||
| 127 | detection does not work, you can specify a C++ compiler yourself, like | ||
| 128 | so: | ||
| 129 | |||
| 130 | ./configure --with-ndk-cxx=/path/to/toolchain/bin/i686-linux-android-g++ | ||
| 131 | |||
| 132 | |||
| 115 | DEBUG AND RELEASE BUILDS | 133 | DEBUG AND RELEASE BUILDS |
| 116 | 134 | ||
| 117 | Android makes a distinction between ``debug'' and ``release'' builds | 135 | Android makes a distinction between ``debug'' and ``release'' builds |