The old font-renderer was horribly slow. There were several ideas to speed it up but I decided to add the pango backend again. Pango allows us to draw combined-characters and all other kinds of special characters. We would have to rewrite pango if we wouldn't want this dependency so I currently have no idea why we should make it optional. However, some people might not care whether they can correctly display all kind of Unicode text but instead want some shiny kmscon without any dependencies. Therefore, I will keep the old freetype font-renderer even though it is not used yet. However, we can convert it at any time. The new font-renderer is not used yet. We need to cleanup the console layer first before it can be hooked into the terminal. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
124 lines
2.7 KiB
Makefile
124 lines
2.7 KiB
Makefile
ACLOCAL_AMFLAGS = -I m4
|
|
EXTRA_DIST = README TODO COPYING
|
|
CLEANFILES =
|
|
|
|
bin_PROGRAMS = kmscon
|
|
check_PROGRAMS = test_console test_output test_vt test_buffer test_terminal \
|
|
test_input
|
|
noinst_PROGRAMS = genshader
|
|
noinst_LTLIBRARIES = libkmscon-core.la
|
|
|
|
AM_CFLAGS = \
|
|
-Wall
|
|
AM_CPPFLAGS = \
|
|
-include $(top_builddir)/config.h \
|
|
-I $(srcdir)/src \
|
|
-I $(srcdir)/external
|
|
AM_LDFLAGS = \
|
|
-Wl,--as-needed
|
|
|
|
if DEBUG
|
|
AM_CFLAGS += -O0 -g
|
|
else
|
|
AM_CFLAGS += -O2
|
|
endif
|
|
|
|
EXTRA_DIST += src/output_shader_def.vert src/output_shader_def.frag \
|
|
src/output_shader_tex.vert src/output_shader_tex.frag
|
|
CLEANFILES += src/output_shaders.c
|
|
|
|
nodist_genshader_SOURCES = \
|
|
src/genshader.c
|
|
|
|
src/output_shaders.c: src/output_shader_def.vert src/output_shader_def.frag \
|
|
src/output_shader_tex.vert src/output_shader_tex.frag genshader$(EXEEXT)
|
|
./genshader$(EXEEXT)
|
|
|
|
nodist_libkmscon_core_la_SOURCES = \
|
|
src/output_shaders.c
|
|
|
|
libkmscon_core_la_SOURCES = \
|
|
src/conf.c src/conf.h \
|
|
src/misc.c src/misc.h \
|
|
src/ui.c src/ui.h \
|
|
src/console.c src/console.h \
|
|
src/unicode.c src/unicode.h \
|
|
src/log.c src/log.h \
|
|
src/eloop.c src/eloop.h \
|
|
src/vt.c src/vt.h \
|
|
src/input.c src/input.h \
|
|
src/vte.c src/vte.h \
|
|
src/terminal.c src/terminal.h \
|
|
src/pty.c src/pty.h \
|
|
src/uterm.h src/uterm_internal.h \
|
|
src/uterm_video.c \
|
|
src/uterm_video_drm.c \
|
|
src/gl.h \
|
|
src/gl_math.c \
|
|
src/gl_shader.c \
|
|
src/font_pango.c
|
|
|
|
if USE_XKBCOMMON
|
|
libkmscon_core_la_SOURCES += \
|
|
src/kbd_xkb.c src/kbd.h \
|
|
external/imKStoUCS.c external/imKStoUCS.h
|
|
else
|
|
libkmscon_core_la_SOURCES += \
|
|
src/kbd_dumb.c src/kbd.h \
|
|
external/imKStoUCS.c external/imKStoUCS.h
|
|
endif
|
|
|
|
if USE_PANGO
|
|
libkmscon_core_la_SOURCES += \
|
|
src/font_pango.c src/font.h
|
|
else
|
|
libkmscon_core_la_SOURCES += \
|
|
src/font_freetype.c src/font.h
|
|
endif
|
|
|
|
libkmscon_core_la_CPPFLAGS = \
|
|
$(AM_CPPFLAGS) \
|
|
$(DRM_CFLAGS) \
|
|
$(EGL_CFLAGS) \
|
|
$(GBM_CFLAGS) \
|
|
$(OPENGL_CFLAGS) \
|
|
$(PANGO_CFLAGS) \
|
|
$(UDEV_CFLAGS) \
|
|
$(FREETYPE2_CFLAGS) \
|
|
$(XPROTO_CFLAGS) \
|
|
$(XKBCOMMON_CFLAGS) \
|
|
$(GLIB_CFLAGS)
|
|
libkmscon_core_la_LIBADD = \
|
|
$(DRM_LIBS) \
|
|
$(EGL_LIBS) \
|
|
$(GBM_LIBS) \
|
|
$(OPENGL_LIBS) \
|
|
$(PANGO_LIBS) \
|
|
$(UDEV_LIBS) \
|
|
$(FREETYPE2_LIBS) \
|
|
$(XPROTO_LIBS) \
|
|
$(XKBCOMMON_LIBS) \
|
|
$(GLIB_LIBS) \
|
|
-lpthread
|
|
|
|
kmscon_SOURCES = src/main.c
|
|
kmscon_LDADD = libkmscon-core.la
|
|
|
|
test_console_SOURCES = tests/test_console.c
|
|
test_console_LDADD = libkmscon-core.la
|
|
|
|
test_output_SOURCES = tests/test_output.c
|
|
test_output_LDADD = libkmscon-core.la
|
|
|
|
test_vt_SOURCES = tests/test_vt.c
|
|
test_vt_LDADD = libkmscon-core.la
|
|
|
|
test_buffer_SOURCES = tests/test_buffer.c
|
|
test_buffer_LDADD = libkmscon-core.la
|
|
|
|
test_terminal_SOURCES = tests/test_terminal.c
|
|
test_terminal_LDADD = libkmscon-core.la
|
|
|
|
test_input_SOURCES = tests/test_input.c
|
|
test_input_LDADD = libkmscon-core.la
|