mirror of
https://github.com/SwallowOS/xorg_lib_libxfont
synced 2025-11-05 06:55:49 +08:00
Don't compile bitmap source files for disabled formats
pcfread.c is a special case - it's needed for either reading pcf files from disk (--enable-pcfformat) or from the builtin fonts in memory (--enable-builtins), so needed a new AM_CONDITIONAL case. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Rémi Cardona <remi@gentoo.org>
This commit is contained in:
@@ -153,6 +153,9 @@ if test "x$XFONT_PCFFORMAT" = xyes; then
|
|||||||
XFONT_BITMAP=yes
|
XFONT_BITMAP=yes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AM_CONDITIONAL(XFONT_PCF_OR_BUILTIN,
|
||||||
|
[test "x$XFONT_PCFFORMAT" = xyes -o "x$XFONT_BUILTINS" = xyes])
|
||||||
|
|
||||||
AC_ARG_ENABLE(bdfformat,
|
AC_ARG_ENABLE(bdfformat,
|
||||||
AS_HELP_STRING([--disable-bdfformat],
|
AS_HELP_STRING([--disable-bdfformat],
|
||||||
[Support BDF format bitmap fonts (default: enabled)]),
|
[Support BDF format bitmap fonts (default: enabled)]),
|
||||||
|
|||||||
@@ -6,14 +6,24 @@ AM_CFLAGS = $(XFONT_CFLAGS) $(OS_CFLAGS) $(CWARNFLAGS)
|
|||||||
noinst_LTLIBRARIES = libbitmap.la
|
noinst_LTLIBRARIES = libbitmap.la
|
||||||
|
|
||||||
libbitmap_la_SOURCES = \
|
libbitmap_la_SOURCES = \
|
||||||
bdfread.c \
|
|
||||||
bdfutils.c \
|
|
||||||
bitmap.c \
|
bitmap.c \
|
||||||
bitmapfunc.c \
|
bitmapfunc.c \
|
||||||
bitmaputil.c \
|
bitmaputil.c \
|
||||||
bitscale.c \
|
bitscale.c \
|
||||||
fontink.c \
|
fontink.c
|
||||||
pcfread.c \
|
|
||||||
pcfwrite.c \
|
if XFONT_BDFFORMAT
|
||||||
snfread.c \
|
libbitmap_la_SOURCES += bdfread.c bdfutils.c
|
||||||
snfstr.h
|
endif
|
||||||
|
|
||||||
|
if XFONT_PCF_OR_BUILTIN
|
||||||
|
libbitmap_la_SOURCES += pcfread.c
|
||||||
|
endif
|
||||||
|
|
||||||
|
if XFONT_PCFFORMAT
|
||||||
|
libbitmap_la_SOURCES += pcfwrite.c
|
||||||
|
endif
|
||||||
|
|
||||||
|
if XFONT_SNFFORMAT
|
||||||
|
libbitmap_la_SOURCES += snfread.c snfstr.h
|
||||||
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user