mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
* java/Makefile.in (install_temp): Do not compress directory-tree and generate such files in a special format that stores file sizes. * lib-src/asset-directory-tool.c (struct directory_tree): New field st_size. (need_file_size): New variable. (main_1, main_2, main): Write file sizes before sibling offsets if `--api-8' is specified. * src/android-asset.h (struct android_asset_manager): New field open. (struct android_asset): New field name. (AAssetManager_fromJava): Load AssetManager#open. (AAssetManager_open): If a directory tree has already been loaded, search for a matching asset and load its size thence, to avoid the requirement of an AssetFileDescriptor. (AAsset_close): Don't assume asset->fd exists. Release asset->name. (AAsset_getLength): Likewise. (android_asset_create_stream): If asset->name exists, call AssetManager#open, in order to open compressed files. * src/androidvfs.c (OLD_ANDROID_ASSETS): Define to 1 on API 8. (android_extract_long, android_scan_directory_tree): Mark arguments as const. Adjust offsets when OLD_ANDROID_ASSETS. (android_is_directory, android_init_assets, android_afs_readdir): Likewise. * src/lread.c (lread_fstat): Define to sys_fstat, not fstat. |
||
|---|---|---|
| .. | ||
| org/gnu/emacs | ||
| res | ||
| AndroidManifest.xml.in | ||
| debug.sh | ||
| emacs.keystore | ||
| INSTALL | ||
| Makefile.in | ||
| proguard.conf | ||
| README | ||
This directory holds the Java sources of the port of GNU Emacs to Android-like systems, along with files needed to create an application package out of them. If you need to build this port, please read the file INSTALL in this directory. The ``org/gnu/emacs'' subdirectory contains the Java sources under the ``org.gnu.emacs'' package identifier. ``AndroidManifest.xml'' contains a manifest describing the Java sources to the system. The ``res'' directory contains resources, mainly the Emacs icon and several ``boolean resources'' which are used as a form of conditional evaluation for manifest entries. `emacs.keystore' is the signing key used to build Emacs. It is kept here, and we encourage all people redistributing Emacs to use this key. It holds no security value, and otherwise it will be impossible to install different builds of Emacs on top of each other. Please keep the Java code indented with tabs and formatted according to the rules for C code in the GNU coding standards. Always use C-style comments. Refer to the file `admin/notes/java' in the toplevel directory of the Emacs distribution or repository for specifics regarding writing Java code for Emacs and the organization of the Android port.