diff options
| author | Po Lu | 2022-12-31 18:04:18 +0800 |
|---|---|---|
| committer | Po Lu | 2022-12-31 18:04:18 +0800 |
| commit | cfbc8a5dbcd362b69b37b4e6832ae4a31834364c (patch) | |
| tree | ce003d03c4ae98f4e1d02186d78e5ae6e0d36e55 /src/Makefile.in | |
| parent | 785095c416f9bae43d2947849282b814e2c7942e (diff) | |
| download | emacs-cfbc8a5dbcd362b69b37b4e6832ae4a31834364c.tar.gz emacs-cfbc8a5dbcd362b69b37b4e6832ae4a31834364c.zip | |
Bring up the Android operating system and its window system
* .dir-locals.el (c-mode): Add ANDROID_EXPORT noise macro.
* .gitignore: Add new files to ignore.
* Makefile.in: Adjust for Android.
* admin/merge-gnulib: Add new warning.
* configure.ac: Detect Android. Run cross-configuration for
Android when appropriate.
* etc/DEBUG: Document how to debug Emacs on Android.
* java/AndroidManifest.xml:
* java/Makefile.in:
* java/README:
* java/debug.sh:
* java/org/gnu/emacs/EmacsActivity.java (EmacsActivity):
* java/org/gnu/emacs/EmacsApplication.java (EmacsApplication):
* java/org/gnu/emacs/EmacsCopyArea.java (EmacsCopyArea):
* java/org/gnu/emacs/EmacsDrawLine.java (EmacsDrawLine):
* java/org/gnu/emacs/EmacsDrawPoint.java (EmacsDrawPoint):
* java/org/gnu/emacs/EmacsDrawRectangle.java
(EmacsDrawRectangle):
* java/org/gnu/emacs/EmacsDrawable.java (EmacsDrawable):
* java/org/gnu/emacs/EmacsFillPolygon.java (EmacsFillPolygon):
* java/org/gnu/emacs/EmacsFillRectangle.java
(EmacsFillRectangle):
* java/org/gnu/emacs/EmacsFontDriver.java (EmacsFontDriver):
* java/org/gnu/emacs/EmacsGC.java (EmacsGC):
* java/org/gnu/emacs/EmacsHandleObject.java (EmacsHandleObject):
* java/org/gnu/emacs/EmacsNative.java (EmacsNative):
* java/org/gnu/emacs/EmacsPaintQueue.java (EmacsPaintQueue):
* java/org/gnu/emacs/EmacsPaintReq.java (EmacsPaintReq):
* java/org/gnu/emacs/EmacsPixmap.java (EmacsPixmap):
* java/org/gnu/emacs/EmacsSdk7FontDriver.java
(EmacsSdk7FontDriver):
* java/org/gnu/emacs/EmacsService.java (class Holder<T>)
(EmacsService):
* java/org/gnu/emacs/EmacsSurfaceView.java (EmacsSurfaceView):
* java/org/gnu/emacs/EmacsThread.java (EmacsThread):
* java/org/gnu/emacs/EmacsView.java (EmacsView):
* java/org/gnu/emacs/EmacsWindow.java (EmacsWindow): New files
and classes.
* lib-src/Makefile.in (srcdir):
* lib/Makefile.in (VPATH):
(HAVE_NATIVE_COMP):
(libgnu_a_SOURCES):
(DEPFLAGS): Configure correctly for cross-compiling.
* lib/faccessat.c:
* lib/fpending.c (__fpending):
* lib/open.c:
* lib/unistd.c (_GL_UNISTD_INLINE): Temporary adjustments to
gnulib.
* lisp/frame.el (display-graphic-p):
(display-screens):
(display-pixel-height):
(display-pixel-width):
(display-mm-height):
(display-mm-width):
(display-backing-store):
(display-save-under):
(display-planes):
(display-color-cells):
(display-visual-class): Adjust for new window system `android'.
* lisp/image/wallpaper.el (x-open-connection): Add declaration.
* lisp/loadup.el (featurep): Load up files for Android.
* lisp/net/eww.el (eww-form-submit, eww-form-file)
(eww-form-checkbox, eww-form-select): Adjust faces for android.
* lisp/term/android-win.el: New file.
* src/Makefile.in: Add new targets emacs.so and android-emacs,
then adjust for cross compilation.
* src/alloc.c (cleanup_vector): Clean up Android font entities
as well.
(garbage_collect): Mark androidterm.
* src/android-emacs.c (main):
* src/android.c (ANDROID_THROW, enum android_fd_table_entry_flags)
(struct android_emacs_service, struct android_emacs_pixmap)
(struct android_graphics_point, struct android_event_container)
(struct android_event_queue, android_run_select_thread)
(android_handle_sigusr1, android_init_events, android_pending)
(android_next_event, android_write_event, android_select)
(android_run_debug_thread, android_user_full_name)
(android_get_asset_name, android_fstat, android_fstatat)
(android_file_access_p, android_hack_asset_fd, android_open)
(android_close, JNICALL, android_init_emacs_service)
(android_init_emacs_pixmap, android_init_graphics_point)
(MAX_HANDLE, struct android_handle_entry, android_alloc_id)
(android_destroy_handle, android_resolve_handle)
(android_resolve_handle2, android_change_window_attributes)
(android_create_window, android_set_window_background)
(android_destroy_window, android_init_android_rect_class)
(android_init_emacs_gc_class, android_create_gc, android_free_gc)
(android_change_gc, android_set_clip_rectangles)
(android_reparent_window, android_lookup_method)
(android_clear_window, android_map_window, android_unmap_window)
(android_resize_window, android_move_window, android_swap_buffers)
(android_get_gc_values, android_set_foreground)
(android_fill_rectangle, android_create_pixmap_from_bitmap_data)
(android_set_clip_mask, android_set_fill_style, android_copy_area)
(android_free_pixmap, android_set_background, android_fill_polygon)
(android_draw_rectangle, android_draw_point, android_draw_line)
(android_create_pixmap, android_set_ts_origin, android_clear_area):
* src/android.h (ANDROID_EXPORT):
* src/androidfns.c (android_display_info_for_name)
(check_android_display_info, check_x_display_info, gamma_correct)
(android_defined_color, android_decode_color)
(android_implicitly_set_name, android_explicitly_set_name)
(android_set_tool_bar_lines, android_change_tool_bar_height)
(android_set_tab_bar_lines, android_change_tab_bar_height)
(android_set_scroll_bar_default_height)
(android_set_scroll_bar_default_width, android_icon_verify)
(android_icon, android_make_gc, android_free_gcs)
(unwind_create_frame, do_unwind_create_frame)
(android_default_font_parameter, android_create_frame_window)
(Fx_create_frame, Fxw_color_defined_p, Fxw_color_values)
(Fxw_display_color_p, Fx_display_grayscale_p)
(Fx_display_pixel_width, Fx_display_pixel_height)
(Fx_display_planes, Fx_display_color_cells, Fx_display_screens)
(Fx_display_mm_width, Fx_display_mm_height)
(Fx_display_backing_store, Fx_display_visual_class)
(Fx_display_monitor_attributes_list, Fx_frame_geometry)
(Fx_frame_list_z_order, Fx_frame_restack)
(Fx_mouse_absolute_pixel_position)
(Fx_set_mouse_absolute_pixel_position, Fandroid_get_connection)
(Fx_display_list, Fx_show_tip, Fx_hide_tip)
(android_set_background_color, android_set_border_color)
(android_set_cursor_color, android_set_cursor_type)
(android_set_foreground_color)
(android_set_child_frame_border_width)
(android_set_internal_border_width, android_set_menu_bar_lines)
(android_set_mouse_color, android_set_title, android_set_alpha)
(android_frame_parm_handlers, syms_of_androidfns):
* src/androidfont.c (struct android_emacs_font_driver)
(struct android_emacs_font_spec, struct android_emacs_font_metrics)
(struct android_emacs_font_object, struct android_integer)
(struct androidfont_info, struct androidfont_entity)
(android_init_font_driver, android_init_font_spec)
(android_init_font_metrics, android_init_integer)
(android_init_font_object, androidfont_get_cache)
(androidfont_from_lisp, androidfont_from_java, androidfont_list)
(androidfont_match, androidfont_draw, androidfont_open_font)
(androidfont_close_font, androidfont_has_char)
(androidfont_encode_char, androidfont_text_extents)
(androidfont_list_family, androidfont_driver)
(syms_of_androidfont_for_pdumper, syms_of_androidfont)
(init_androidfont, android_finalize_font_entity):
* src/androidgui.h (_ANDROID_GUI_H_, struct android_rectangle)
(struct android_point, enum android_gc_function)
(enum android_gc_value_mask, enum android_fill_style)
(enum android_window_value_mask)
(struct android_set_window_attributes, struct android_gc_values)
(struct android_gc, enum android_swap_action, enum android_shape)
(enum android_coord_mode, struct android_swap_info)
(NativeRectangle, struct android_any_event)
(struct android_key_event, struct android_configure_event)
(union android_event):
* src/androidterm.c (android_window_to_frame, android_clear_frame)
(android_ring_bell, android_toggle_invisible_pointer)
(android_update_begin, android_update_end, show_back_buffer)
(android_flush_dirty_back_buffer_on, handle_one_android_event)
(android_read_socket, android_frame_up_to_date)
(android_buffer_flipping_unblocked_hook)
(android_query_frame_background_color, android_parse_color)
(android_alloc_nearest_color, android_query_colors)
(android_mouse_position, android_get_focus_frame)
(android_focus_frame, android_frame_rehighlight)
(android_frame_raise_lower, android_make_frame_visible)
(android_make_frame_invisible)
(android_make_frame_visible_invisible, android_fullscreen_hook)
(android_iconify_frame, android_set_window_size_1)
(android_set_window_size, android_set_offset, android_set_alpha)
(android_new_font, android_bitmap_icon, android_free_pixmap_hook)
(android_free_frame_resources, android_delete_frame)
(android_delete_terminal, android_scroll_run)
(android_after_update_window_line, android_flip_and_flush)
(android_clear_rectangle, android_reset_clip_rectangles)
(android_clip_to_row, android_draw_fringe_bitmap)
(android_set_cursor_gc, android_set_mouse_face_gc)
(android_set_mode_line_face_gc, android_set_glyph_string_gc)
(android_set_glyph_string_clipping)
(android_set_glyph_string_clipping_exactly)
(android_compute_glyph_string_overhangs)
(android_clear_glyph_string_rect)
(android_draw_glyph_string_background, android_fill_triangle)
(android_make_point, android_inside_rect_p, android_clear_point)
(android_draw_relief_rect, android_draw_box_rect)
(HIGHLIGHT_COLOR_DARK_BOOST_LIMIT, android_setup_relief_color)
(android_setup_relief_colors, android_draw_glyph_string_box)
(android_draw_glyph_string_bg_rect, android_draw_image_relief)
(android_draw_image_foreground, android_draw_image_foreground_1)
(android_draw_image_glyph_string)
(android_draw_stretch_glyph_string, android_draw_underwave)
(android_draw_glyph_string_foreground)
(android_draw_composite_glyph_string_foreground)
(android_draw_glyphless_glyph_string_foreground)
(android_draw_glyph_string, android_define_frame_cursor)
(android_clear_frame_area, android_clear_under_internal_border)
(android_draw_hollow_cursor, android_draw_bar_cursor)
(android_draw_window_cursor, android_draw_vertical_window_border)
(android_draw_window_divider, android_redisplay_interface)
(frame_set_mouse_pixel_position, get_keysym_name)
(android_create_terminal, android_term_init, syms_of_androidterm)
(mark_androidterm):
* src/androidterm.h (_ANDROID_TERM_H_, struct android_display_info)
(struct android_output, FRAME_ANDROID_OUTPUT, XSCROLL_BAR): New
files.
* src/dired.c (file_attributes): Do not use openat on Android.
* src/dispextern.h (No_Cursor): Define appropriately on Android.
(struct glyph_string, struct face): Make gc field of type struct
android_gc on Android.
* src/dispnew.c (clear_current_matrices, clear_desired_matrices)
(adjust_frame_glyphs_for_window_redisplay, free_glyphs)
(update_frame, scrolling, char_ins_del_cost, update_frame_line)
(init_display_interactive): Disable text terminal support
completely on Android. Fix non-toolkit menus for non-X systems.
* src/editfns.c (Fuser_full_name): Call android_user_full_name.
* src/emacs.c (android_emacs_init): Make main this on Android.
Prohibit argv sorting from exceeding end of argv.
* src/epaths.in: Add path definitions for Android.
* src/fileio.c (file_access_p): Call android_file_access_p.
(file_name_directory): Avoid using openat on Android.
(Fcopy_file): Adjust to call sys_fstat instead.
(file_directory_p):
(Finsert_file_contents):
(write_region): Likewise.
* src/filelock.c:
* src/fns.c (Flocale_info): Pacify warning on Android.
* src/font.c (font_make_entity_android): New function.
* src/font.h:
* src/frame.c (Fframep):
(Fwindow_system): Handle new window system `android'. Update doc strings.
(Fmake_terminal_frame): Disable on Android.
(gui_display_get_resource): Disable get_string_resource_hook on Android.
(syms_of_frame): New defsym `android'.
* src/frame.h (GCALIGNED_STRUCT): Add new output data for
Android.
(ENUM_BF): Expand enumerator size.
(FRAME_ANDROID_P, FRAME_WINDOW_P, MOUSE_HL_INFO): Add
definitions for Android.
* src/image.c (GET_PIXEL):
(image_create_bitmap_from_file):
(image_create_x_image_and_pixmap_1):
(image_get_x_image):
(slurp_file):
(lookup_rgb_color):
(image_to_emacs_colors):
(image_from_emacs_colors):
(image_pixmap_draw_cross):
(image_disable_image):
(MaskForeground):
(gif_load): Add stubs for Android.
* src/lisp.h:
* src/lread.c (safe_to_load_version, maybe_swap_for_eln1, openp):
* src/pdumper.c (pdumper_load): Call sys_fstat instead of fstat.
* src/process.c (wait_reading_process_output): Use
android_select instead of pselect.
* src/scroll.c: Disable on Android.
* src/sysdep.c (widen_foreground_group, reset_sys_modes)
(init_signals, emacs_fstatat, sys_fstat): New function.
(emacs_open, emacs_open_noquit, emacs_close): Implement
differently on Android.
(close_output_streams): Disable what is not required on Android.
* src/term.c (OUTPUT1_IF, encode_terminal_code, string_cost)
(string_cost_one_line, per_line_cost, calculate_costs)
(struct fkey_table, tty_append_glyph, produce_glyphs)
(tty_capable_p, Fsuspend_tty, Fresume_tty, device, init_tty)
(maybe_fatal, syms_of_term): Disable text terminal support on
Android.
* src/termhooks.h (enum output_method): Add android output
method.
(GCALIGNED_STRUCT, TERMINAL_FONT_CACHE): Define for Android.
* src/terminal.c (Fterminal_live_p): Implement for Android.
* src/verbose.mk.in (AM_V_GLOBALS): Add JAVAC and DX.
* src/xdisp.c (redisplay_internal): Disable text terminals on Android.
(display_menu_bar):
(display_tty_menu_item):
(draw_row_with_mouse_face):
(expose_frame): Make the non toolkit menu bar work on Android.
* src/xfaces.c (GCGraphicsExposures):
(x_create_gc):
(x_free_gc):
(Fx_load_color_file): Define for Android.
* xcompile/Makefile.in (top_srcdir):
(top_builddir):
* xcompile/README:
* xcompile/langinfo.h (nl_langinfo): New files.
Diffstat (limited to 'src/Makefile.in')
| -rw-r--r-- | src/Makefile.in | 52 |
1 files changed, 46 insertions, 6 deletions
diff --git a/src/Makefile.in b/src/Makefile.in index da11e130b2a..b0ba9825a65 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -33,6 +33,16 @@ top_builddir = @top_builddir@ | |||
| 33 | # MinGW CPPFLAGS may use this. | 33 | # MinGW CPPFLAGS may use this. |
| 34 | abs_top_srcdir=@abs_top_srcdir@ | 34 | abs_top_srcdir=@abs_top_srcdir@ |
| 35 | VPATH = $(srcdir) | 35 | VPATH = $(srcdir) |
| 36 | |||
| 37 | # This is not empty if this is a Makefile that will be copied to | ||
| 38 | # xcompile/src. | ||
| 39 | XCONFIGURE = @XCONFIGURE@ | ||
| 40 | |||
| 41 | ifneq ($(XCONFIGURE),) | ||
| 42 | vpath %.c := $(srcdir) | ||
| 43 | vpath %.h := $(srcdir) | ||
| 44 | endif | ||
| 45 | |||
| 36 | CC = @CC@ | 46 | CC = @CC@ |
| 37 | CXX = @CXX@ | 47 | CXX = @CXX@ |
| 38 | CFLAGS = @CFLAGS@ | 48 | CFLAGS = @CFLAGS@ |
| @@ -48,6 +58,7 @@ LIBOBJS = @LIBOBJS@ | |||
| 48 | 58 | ||
| 49 | lispsource = $(top_srcdir)/lisp | 59 | lispsource = $(top_srcdir)/lisp |
| 50 | lib = ../lib | 60 | lib = ../lib |
| 61 | hostlib = $(top_builddir)/lib | ||
| 51 | libsrc = ../lib-src | 62 | libsrc = ../lib-src |
| 52 | etc = ../etc | 63 | etc = ../etc |
| 53 | oldXMenudir = ../oldXMenu | 64 | oldXMenudir = ../oldXMenu |
| @@ -326,7 +337,7 @@ W32_RES_LINK=@W32_RES_LINK@ | |||
| 326 | ## if HAVE_HARFBUZZ, hbfont.o is added regardless of the rest | 337 | ## if HAVE_HARFBUZZ, hbfont.o is added regardless of the rest |
| 327 | FONT_OBJ=@FONT_OBJ@ | 338 | FONT_OBJ=@FONT_OBJ@ |
| 328 | 339 | ||
| 329 | ## Empty for MinGW, cm.o for the rest. | 340 | ## Empty for MinGW and Android, cm.o for the rest. |
| 330 | CM_OBJ=@CM_OBJ@ | 341 | CM_OBJ=@CM_OBJ@ |
| 331 | 342 | ||
| 332 | LIBGPM = @LIBGPM@ | 343 | LIBGPM = @LIBGPM@ |
| @@ -370,6 +381,10 @@ HAIKU_CXX_OBJ = @HAIKU_CXX_OBJ@ | |||
| 370 | HAIKU_LIBS = @HAIKU_LIBS@ | 381 | HAIKU_LIBS = @HAIKU_LIBS@ |
| 371 | HAIKU_CFLAGS = @HAIKU_CFLAGS@ | 382 | HAIKU_CFLAGS = @HAIKU_CFLAGS@ |
| 372 | 383 | ||
| 384 | ANDROID_OBJ = @ANDROID_OBJ@ | ||
| 385 | ANDROID_LIBS = @ANDROID_LIBS@ | ||
| 386 | ANDROID_CFLAGS = @ANDROID_CFLAGS@ | ||
| 387 | |||
| 373 | DUMPING=@DUMPING@ | 388 | DUMPING=@DUMPING@ |
| 374 | CHECK_STRUCTS = @CHECK_STRUCTS@ | 389 | CHECK_STRUCTS = @CHECK_STRUCTS@ |
| 375 | HAVE_PDUMPER = @HAVE_PDUMPER@ | 390 | HAVE_PDUMPER = @HAVE_PDUMPER@ |
| @@ -411,7 +426,8 @@ EMACS_CFLAGS=-Demacs $(MYCPPFLAGS) -I. -I$(srcdir) \ | |||
| 411 | $(HARFBUZZ_CFLAGS) $(LIBOTF_CFLAGS) $(M17N_FLT_CFLAGS) $(DEPFLAGS) \ | 426 | $(HARFBUZZ_CFLAGS) $(LIBOTF_CFLAGS) $(M17N_FLT_CFLAGS) $(DEPFLAGS) \ |
| 412 | $(LIBSYSTEMD_CFLAGS) $(JSON_CFLAGS) $(XSYNC_CFLAGS) $(TREE_SITTER_CFLAGS) \ | 427 | $(LIBSYSTEMD_CFLAGS) $(JSON_CFLAGS) $(XSYNC_CFLAGS) $(TREE_SITTER_CFLAGS) \ |
| 413 | $(LIBGNUTLS_CFLAGS) $(NOTIFY_CFLAGS) $(CAIRO_CFLAGS) \ | 428 | $(LIBGNUTLS_CFLAGS) $(NOTIFY_CFLAGS) $(CAIRO_CFLAGS) \ |
| 414 | $(WERROR_CFLAGS) $(HAIKU_CFLAGS) $(XCOMPOSITE_CFLAGS) $(XSHAPE_CFLAGS) | 429 | $(WERROR_CFLAGS) $(HAIKU_CFLAGS) $(XCOMPOSITE_CFLAGS) $(XSHAPE_CFLAGS) \ |
| 430 | $(ANDROID_CFLAGS) | ||
| 415 | ALL_CFLAGS = $(EMACS_CFLAGS) $(WARN_CFLAGS) $(CFLAGS) | 431 | ALL_CFLAGS = $(EMACS_CFLAGS) $(WARN_CFLAGS) $(CFLAGS) |
| 416 | ALL_OBJC_CFLAGS = $(EMACS_CFLAGS) \ | 432 | ALL_OBJC_CFLAGS = $(EMACS_CFLAGS) \ |
| 417 | $(filter-out $(NON_OBJC_CFLAGS),$(WARN_CFLAGS)) $(CFLAGS) \ | 433 | $(filter-out $(NON_OBJC_CFLAGS),$(WARN_CFLAGS)) $(CFLAGS) \ |
| @@ -449,7 +465,7 @@ base_obj = dispnew.o frame.o scroll.o xdisp.o menu.o $(XMENU_OBJ) window.o \ | |||
| 449 | $(if $(HYBRID_MALLOC),sheap.o) \ | 465 | $(if $(HYBRID_MALLOC),sheap.o) \ |
| 450 | $(MSDOS_OBJ) $(MSDOS_X_OBJ) $(NS_OBJ) $(CYGWIN_OBJ) $(FONT_OBJ) \ | 466 | $(MSDOS_OBJ) $(MSDOS_X_OBJ) $(NS_OBJ) $(CYGWIN_OBJ) $(FONT_OBJ) \ |
| 451 | $(W32_OBJ) $(WINDOW_SYSTEM_OBJ) $(XGSELOBJ) $(JSON_OBJ) \ | 467 | $(W32_OBJ) $(WINDOW_SYSTEM_OBJ) $(XGSELOBJ) $(JSON_OBJ) \ |
| 452 | $(HAIKU_OBJ) $(PGTK_OBJ) | 468 | $(HAIKU_OBJ) $(PGTK_OBJ) $(ANDROID_OBJ) |
| 453 | doc_obj = $(base_obj) $(NS_OBJC_OBJ) | 469 | doc_obj = $(base_obj) $(NS_OBJC_OBJ) |
| 454 | obj = $(doc_obj) $(HAIKU_CXX_OBJ) | 470 | obj = $(doc_obj) $(HAIKU_CXX_OBJ) |
| 455 | 471 | ||
| @@ -466,7 +482,8 @@ SOME_MACHINE_OBJECTS = dosfns.o msdos.o \ | |||
| 466 | w32menu.o w32proc.o w32reg.o w32select.o w32term.o w32xfns.o \ | 482 | w32menu.o w32proc.o w32reg.o w32select.o w32term.o w32xfns.o \ |
| 467 | w16select.o widget.o xfont.o ftfont.o xftfont.o gtkutil.o \ | 483 | w16select.o widget.o xfont.o ftfont.o xftfont.o gtkutil.o \ |
| 468 | xsettings.o xgselect.o termcap.o hbfont.o \ | 484 | xsettings.o xgselect.o termcap.o hbfont.o \ |
| 469 | haikuterm.o haikufns.o haikumenu.o haikufont.o | 485 | haikuterm.o haikufns.o haikumenu.o haikufont.o androidterm.o androidfns.o \ |
| 486 | androidfont.o | ||
| 470 | 487 | ||
| 471 | ## gmalloc.o if !SYSTEM_MALLOC && !DOUG_LEA_MALLOC, else empty. | 488 | ## gmalloc.o if !SYSTEM_MALLOC && !DOUG_LEA_MALLOC, else empty. |
| 472 | GMALLOC_OBJ=@GMALLOC_OBJ@ | 489 | GMALLOC_OBJ=@GMALLOC_OBJ@ |
| @@ -569,7 +586,8 @@ LIBES = $(LIBS) $(W32_LIBS) $(LIBS_GNUSTEP) $(PGTK_LIBS) $(LIBX_BASE) $(LIBIMAGE | |||
| 569 | $(LIBGNUTLS_LIBS) $(LIB_PTHREAD) $(GETADDRINFO_A_LIBS) $(LCMS2_LIBS) \ | 586 | $(LIBGNUTLS_LIBS) $(LIB_PTHREAD) $(GETADDRINFO_A_LIBS) $(LCMS2_LIBS) \ |
| 570 | $(NOTIFY_LIBS) $(LIB_MATH) $(LIBZ) $(LIBMODULES) $(LIBSYSTEMD_LIBS) \ | 587 | $(NOTIFY_LIBS) $(LIB_MATH) $(LIBZ) $(LIBMODULES) $(LIBSYSTEMD_LIBS) \ |
| 571 | $(JSON_LIBS) $(LIBGMP) $(LIBGCCJIT_LIBS) $(XINPUT_LIBS) $(HAIKU_LIBS) \ | 588 | $(JSON_LIBS) $(LIBGMP) $(LIBGCCJIT_LIBS) $(XINPUT_LIBS) $(HAIKU_LIBS) \ |
| 572 | $(TREE_SITTER_LIBS) $(SQLITE3_LIBS) $(XCOMPOSITE_LIBS) $(XSHAPE_LIBS) | 589 | $(TREE_SITTER_LIBS) $(SQLITE3_LIBS) $(XCOMPOSITE_LIBS) $(XSHAPE_LIBS) \ |
| 590 | $(ANDROID_LIBS) | ||
| 573 | 591 | ||
| 574 | ## FORCE it so that admin/unidata can decide whether this file is | 592 | ## FORCE it so that admin/unidata can decide whether this file is |
| 575 | ## up-to-date. Although since charprop depends on bootstrap-emacs, | 593 | ## up-to-date. Although since charprop depends on bootstrap-emacs, |
| @@ -658,7 +676,7 @@ $(etc)/DOC: $(libsrc)/make-docfile$(EXEEXT) $(doc_obj) | |||
| 658 | $(SOME_MACHINE_OBJECTS) $(doc_obj) > $(etc)/DOC | 676 | $(SOME_MACHINE_OBJECTS) $(doc_obj) > $(etc)/DOC |
| 659 | 677 | ||
| 660 | $(libsrc)/make-docfile$(EXEEXT) $(libsrc)/make-fingerprint$(EXEEXT): \ | 678 | $(libsrc)/make-docfile$(EXEEXT) $(libsrc)/make-fingerprint$(EXEEXT): \ |
| 661 | $(lib)/libgnu.a | 679 | $(hostlib)/libgnu.a |
| 662 | $(MAKE) -C $(dir $@) $(notdir $@) | 680 | $(MAKE) -C $(dir $@) $(notdir $@) |
| 663 | 681 | ||
| 664 | buildobj.h: Makefile | 682 | buildobj.h: Makefile |
| @@ -719,6 +737,27 @@ ifeq ($(DUMPING),unexec) | |||
| 719 | endif | 737 | endif |
| 720 | endif | 738 | endif |
| 721 | 739 | ||
| 740 | ifeq ($(XCONFIGURE),android) | ||
| 741 | ## The Android package internally links to and communicates with a | ||
| 742 | ## shared library named `libemacs.so' at startup. This is built | ||
| 743 | ## almost the same way temacs is. But it is position independent. It | ||
| 744 | ## is not dumped here. Instead, it dumps itself the first time it | ||
| 745 | ## starts on the user's device. | ||
| 746 | |||
| 747 | libemacs.so: $(ALLOBJS) $(LIBEGNU_ARCHIVE) $(EMACSRES) \ | ||
| 748 | $(MAKE_PDUMPER_FINGERPRINT) | ||
| 749 | $(AM_V_CCLD)$(CC) -o $@ $(ALL_CFLAGS) $(TEMACS_LDFLAGS) \ | ||
| 750 | $(LDFLAGS) -shared $(ALLOBJS) $(LIBEGNU_ARCHIVE) $(LIBES) | ||
| 751 | $(AM_V_at)$(MAKE_PDUMPER_FINGERPRINT) $@ | ||
| 752 | |||
| 753 | # There is also a binary named `android-emacs' which simply calls | ||
| 754 | # emacs.so. | ||
| 755 | |||
| 756 | android-emacs: libemacs.so android-emacs.o | ||
| 757 | $(AM_V_CCLD)$(CC) -o $@ $(ALL_CFLAGS) $(LDFLAGS) \ | ||
| 758 | -L. "-l:libemacs.so" android-emacs.o | ||
| 759 | endif | ||
| 760 | |||
| 722 | ## The following oldxmenu-related rules are only (possibly) used if | 761 | ## The following oldxmenu-related rules are only (possibly) used if |
| 723 | ## HAVE_X11 && !USE_GTK, but there is no harm in always defining them. | 762 | ## HAVE_X11 && !USE_GTK, but there is no harm in always defining them. |
| 724 | $(lwlibdir)/liblw.a: $(config_h) globals.h lisp.h FORCE | 763 | $(lwlibdir)/liblw.a: $(config_h) globals.h lisp.h FORCE |
| @@ -747,6 +786,7 @@ ns-app: emacs$(EXEEXT) $(pdmp) | |||
| 747 | .PHONY: versionclean | 786 | .PHONY: versionclean |
| 748 | 787 | ||
| 749 | mostlyclean: | 788 | mostlyclean: |
| 789 | rm -f aemacs emacs.so | ||
| 750 | rm -f temacs$(EXEEXT) core ./*.core \#* ./*.o | 790 | rm -f temacs$(EXEEXT) core ./*.core \#* ./*.o |
| 751 | rm -f dmpstruct.h | 791 | rm -f dmpstruct.h |
| 752 | rm -f emacs.pdmp | 792 | rm -f emacs.pdmp |