mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-13 03:06:23 -08:00
Port emacsclient wrapper to Android 7.1 and earlier
* java/org/gnu/emacs/EmacsNative.java (EmacsNative): Load every native library on which Emacs depends prior to loading libemacs itself. * java/org/gnu/emacs/EmacsOpenActivity.java (readEmacsClientLog) (EmacsOpenActivity, startEmacsClient): Don't use redirectError on Android 7.1 and earlier.
This commit is contained in:
parent
e1c7b8ad61
commit
9b79f429ed
2 changed files with 177 additions and 8 deletions
|
|
@ -159,6 +159,158 @@ public class EmacsNative
|
|||
|
||||
static
|
||||
{
|
||||
/* Older versions of Android cannot link correctly with shared
|
||||
libraries that link with other shared libraries built along
|
||||
Emacs unless all requisite shared libraries are explicitly
|
||||
loaded from Java.
|
||||
|
||||
Every time you add a new shared library dependency to Emacs,
|
||||
please add it here as well. */
|
||||
|
||||
try
|
||||
{
|
||||
System.loadLibrary ("png_emacs");
|
||||
}
|
||||
catch (UnsatisfiedLinkError exception)
|
||||
{
|
||||
/* Ignore this exception. */
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
System.loadLibrary ("selinux_emacs");
|
||||
}
|
||||
catch (UnsatisfiedLinkError exception)
|
||||
{
|
||||
/* Ignore this exception. */
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
System.loadLibrary ("crypto_emacs");
|
||||
}
|
||||
catch (UnsatisfiedLinkError exception)
|
||||
{
|
||||
/* Ignore this exception. */
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
System.loadLibrary ("pcre_emacs");
|
||||
}
|
||||
catch (UnsatisfiedLinkError exception)
|
||||
{
|
||||
/* Ignore this exception. */
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
System.loadLibrary ("packagelistparser_emacs");
|
||||
}
|
||||
catch (UnsatisfiedLinkError exception)
|
||||
{
|
||||
/* Ignore this exception. */
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
System.loadLibrary ("gnutls_emacs");
|
||||
}
|
||||
catch (UnsatisfiedLinkError exception)
|
||||
{
|
||||
/* Ignore this exception. */
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
System.loadLibrary ("gmp_emacs");
|
||||
}
|
||||
catch (UnsatisfiedLinkError exception)
|
||||
{
|
||||
/* Ignore this exception. */
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
System.loadLibrary ("nettle_emacs");
|
||||
}
|
||||
catch (UnsatisfiedLinkError exception)
|
||||
{
|
||||
/* Ignore this exception. */
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
System.loadLibrary ("p11-kit_emacs");
|
||||
}
|
||||
catch (UnsatisfiedLinkError exception)
|
||||
{
|
||||
/* Ignore this exception. */
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
System.loadLibrary ("tasn1_emacs");
|
||||
}
|
||||
catch (UnsatisfiedLinkError exception)
|
||||
{
|
||||
/* Ignore this exception. */
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
System.loadLibrary ("hogweed_emacs");
|
||||
}
|
||||
catch (UnsatisfiedLinkError exception)
|
||||
{
|
||||
/* Ignore this exception. */
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
System.loadLibrary ("jansson_emacs");
|
||||
}
|
||||
catch (UnsatisfiedLinkError exception)
|
||||
{
|
||||
/* Ignore this exception. */
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
System.loadLibrary ("jpeg_emacs");
|
||||
}
|
||||
catch (UnsatisfiedLinkError exception)
|
||||
{
|
||||
/* Ignore this exception. */
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
System.loadLibrary ("tiff_emacs");
|
||||
}
|
||||
catch (UnsatisfiedLinkError exception)
|
||||
{
|
||||
/* Ignore this exception. */
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
System.loadLibrary ("xml2_emacs");
|
||||
}
|
||||
catch (UnsatisfiedLinkError exception)
|
||||
{
|
||||
/* Ignore this exception. */
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
System.loadLibrary ("icuuc_emacs");
|
||||
}
|
||||
catch (UnsatisfiedLinkError exception)
|
||||
{
|
||||
/* Ignore this exception. */
|
||||
}
|
||||
|
||||
System.loadLibrary ("emacs");
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue