
VTE is not making any attempt to maintain API stability. The following changes to the API impacted Termite, despite it avoiding deprecated functions: * vte_pty_set_term removed (hopefully without an impact...) * vte_terminal_get_child_exit_status replaced with new signal parameter * beep signal -> bell signal * vte_char_attributes -> VteCharAttributes * sync suffix added to I/O functions along with some parameter changes * rgba suffix removed from all color functions * inner-border attribute replaced with GtkStyleContext padding * vte_terminal_set_font_from_string removed, use Pango directly * vte_terminal_is_word_char removed - is_word_char copied to Termite * vte_terminal_set_word_chars removed - feature dropped * vte_terminal_set_visible_bell removed - feature dropped Support for text selection is still not supported upstream. The required API is tiny and does not expose internal details. Despite the lack of a compelling reason to leave it out like a backwards compatibility risk, the patch has been left to rot on the bug tracker. The vte_terminal_get_user_shell_with_fallback API was also removed, although it was an internal API and Termite was only using it for convenience. The functionality has been moved inside Termite. Closes #187
54 lines
1.4 KiB
Makefile
54 lines
1.4 KiB
Makefile
VERSION = $(shell git describe --tags)
|
|
PREFIX = /usr/local
|
|
GTK = gtk+-3.0
|
|
VTE = vte-2.91
|
|
TERMINFO = ${PREFIX}/share/terminfo
|
|
|
|
CXXFLAGS := -std=c++11 -O3 \
|
|
-Wall -Wextra -pedantic \
|
|
-Winit-self \
|
|
-Wshadow \
|
|
-Wformat=2 \
|
|
-Wmissing-declarations \
|
|
-Wstrict-overflow=5 \
|
|
-Wcast-align \
|
|
-Wcast-qual \
|
|
-Wconversion \
|
|
-Wunused-macros \
|
|
-Wwrite-strings \
|
|
-DNDEBUG \
|
|
-D_POSIX_C_SOURCE=200809L \
|
|
-DTERMITE_VERSION=\"${VERSION}\" \
|
|
${shell pkg-config --cflags ${GTK} ${VTE}} \
|
|
${CXXFLAGS}
|
|
|
|
ifeq (${CXX}, g++)
|
|
CXXFLAGS += -Wno-missing-field-initializers
|
|
endif
|
|
|
|
ifeq (${CXX}, clang++)
|
|
CXXFLAGS += -Wimplicit-fallthrough
|
|
endif
|
|
|
|
LDFLAGS := -s -Wl,--as-needed ${LDFLAGS}
|
|
LDLIBS := ${shell pkg-config --libs ${GTK} ${VTE}}
|
|
|
|
termite: termite.cc url_regex.hh util/clamp.hh util/maybe.hh util/memory.hh
|
|
${CXX} ${CXXFLAGS} ${LDFLAGS} $< ${LDLIBS} -o $@
|
|
|
|
install: termite termite.desktop termite.terminfo
|
|
mkdir -p ${DESTDIR}${TERMINFO}
|
|
install -Dm755 termite ${DESTDIR}${PREFIX}/bin/termite
|
|
install -Dm644 termite.desktop ${DESTDIR}${PREFIX}/share/applications/termite.desktop
|
|
install -Dm644 man/termite.1 ${DESTDIR}${PREFIX}/share/man/man1/termite.1
|
|
install -Dm644 man/termite.config.5 ${DESTDIR}${PREFIX}/share/man/man5/termite.config.5
|
|
tic -x termite.terminfo -o ${DESTDIR}${TERMINFO}
|
|
|
|
uninstall:
|
|
rm -f ${DESTDIR}${PREFIX}/bin/termite
|
|
|
|
clean:
|
|
rm termite
|
|
|
|
.PHONY: clean install uninstall
|