X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Makefile.am;h=15a38bd4ca3877569f01ba1577d5b7d330ef01b0;hb=e091457e822ff35ff7b1d3b3a1f91c2ee6249e5a;hp=2b228692849823863302be7b42e8fc1c9c7c6b7e;hpb=7de12ae764e73730df0658f9fb04bcf42add48e2;p=elogind.git diff --git a/Makefile.am b/Makefile.am index 2b2286928..15a38bd4c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1476,10 +1476,13 @@ test_tables_SOURCES = \ src/journal/journald-server.c \ src/journal/journald-server.h +test_tables_CPPFLAGS = \ + $(AM_CPPFLAGS) \ + -I$(top_srcdir)/src/bus-proxyd + test_tables_CFLAGS = \ $(AM_CFLAGS) \ - $(SECCOMP_CFLAGS) \ - -I$(srcdir)/src/bus-proxyd + $(SECCOMP_CFLAGS) test_tables_LDADD = \ libsystemd-logs.la \ @@ -2828,21 +2831,49 @@ tests += \ test-dhcp6-client # ------------------------------------------------------------------------------ +if ENABLE_TERMINAL noinst_LTLIBRARIES += \ libsystemd-terminal.la +noinst_PROGRAMS += \ + systemd-subterm + +unifontdatadir=$(datadir)/unifont + +dist_unifontdata_DATA = \ + src/libsystemd-terminal/unifont-glyph-array.bin + +tests += \ + test-term-page \ + test-term-parser \ + test-unifont +endif + libsystemd_terminal_la_CFLAGS = \ $(AM_CFLAGS) libsystemd_terminal_la_SOURCES = \ src/libsystemd-terminal/term-internal.h \ + src/libsystemd-terminal/term-charset.c \ src/libsystemd-terminal/term-page.c \ - src/libsystemd-terminal/term-wcwidth.c + src/libsystemd-terminal/term-parser.c \ + src/libsystemd-terminal/term-screen.c \ + src/libsystemd-terminal/term-wcwidth.c \ + src/libsystemd-terminal/unifont-internal.h \ + src/libsystemd-terminal/unifont.c libsystemd_terminal_la_LIBADD = \ libsystemd-internal.la \ libsystemd-shared.la +systemd_subterm_SOURCES = \ + src/libsystemd-terminal/subterm.c + +systemd_subterm_LDADD = \ + libsystemd-terminal.la \ + libsystemd-internal.la \ + libsystemd-shared.la + test_term_page_SOURCES = \ src/libsystemd-terminal/test-term-page.c @@ -2851,8 +2882,28 @@ test_term_page_LDADD = \ libsystemd-internal.la \ libsystemd-shared.la -tests += \ - test-term-page +test_term_parser_SOURCES = \ + src/libsystemd-terminal/test-term-parser.c + +test_term_parser_LDADD = \ + libsystemd-terminal.la \ + libsystemd-internal.la \ + libsystemd-shared.la + +test_unifont_SOURCES = \ + src/libsystemd-terminal/test-unifont.c + +test_unifont_LDADD = \ + libsystemd-terminal.la \ + libsystemd-internal.la \ + libsystemd-shared.la + +.PHONY: update-unifont +update-unifont: tools/compile-unifont.py + $(AM_V_GEN)$(PYTHON) $< \ + <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \ + >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin + @echo "unifont-glyph-array.bin has been regenerated" # ------------------------------------------------------------------------------ if ENABLE_GTK_DOC