Update emacs build for ubuntu

This commit is contained in:
Marcus Kammer 2023-11-14 17:59:22 +01:00
parent be63ba02f8
commit 5494f74775

View file

@ -485,7 +485,7 @@ write_files:
# Update package list and install dependencies # Update package list and install dependencies
sudo apt update sudo apt update
sudo apt install -y build-essential git autoconf texinfo libncurses-dev libgnutls28-dev libjansson-dev libgccjit-11-dev pkg-config zlib1g-dev sudo apt install -y build-essential git autoconf texinfo libncurses-dev libgnutls28-dev libjansson-dev libgccjit-11-dev pkg-config zlib1g-dev libtree-sitter-dev
# Clone the Emacs repository # Clone the Emacs repository
git clone git://git.sv.gnu.org/emacs.git git clone git://git.sv.gnu.org/emacs.git
@ -498,7 +498,27 @@ write_files:
./autogen.sh ./autogen.sh
# Configure Emacs for building without X11, without GTK, without image support, and with native compilation # Configure Emacs for building without X11, without GTK, without image support, and with native compilation
./configure --with-x-toolkit=no --without-imagemagick --without-jpeg --without-png --without-gif --without-tiff --without-xpm --with-native-compilation --with-tree-sitter
# This configuration is tailored for an Emacs build focused on performance and
# native compilation, with reduced dependency on external image libraries and
# graphical systems. It's particularly suitable if you're aiming for a
# lightweight Emacs setup, primarily for text editing and programming tasks
# without the need for image handling within Emacs.
./configure --with-x-toolkit=no \ # Disables the X toolkit, typically used for GUI elements in X Windows
--without-jpeg \ # Disables support for JPEG images
--without-png \ # Disables support for PNG images
--without-gif \ # Disables support for GIF images
--without-tiff \ # Disables support for TIFF images
--without-xpm \ # Disables support for XPM (X PixMap) images
--without-rsvg \ # Disables support for SVG (Scalable Vector Graphics) via the rsvg library
--without-webp \ # Disables support for WebP images
--without-lcms2 \ # Disables support for Little CMS 2, a color management system
--without-cairo \ # Disables support for the Cairo graphics library
--without-gpm \ # Disables support for the General Purpose Mouse (GPM) library
--with-json \ # Enables support for JSON (JavaScript Object Notation)
--with-native-compilation \ # Enables native compilation of Emacs Lisp code
--with-tree-sitter # Enables support for Tree-sitter, an incremental parsing system
# Build Emacs # Build Emacs
make -j$(nproc) make -j$(nproc)