From: wm4 Date: Fri, 28 Aug 2015 13:39:32 +0000 (+0200) Subject: configure: proper configure switches for DirectWrite and CoreText X-Git-Tag: 0.13.0~28^2~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22d100831e59eeb572d316bf110f5ead8cfe9a2f;p=libass configure: proper configure switches for DirectWrite and CoreText Also, remove the ass_coretext.c conditional compilation hack, and fix Makefile.am instead. --- diff --git a/configure.ac b/configure.ac index b3538b9..ba0f5e0 100644 --- a/configure.ac +++ b/configure.ac @@ -35,6 +35,10 @@ AC_ARG_ENABLE([enca], AS_HELP_STRING([--disable-enca], [disable enca (charset autodetect) support @<:@default=check@:>@])) AC_ARG_ENABLE([fontconfig], AS_HELP_STRING([--disable-fontconfig], [disable fontconfig support @<:@default=enabled@:>@])) +AC_ARG_ENABLE([directwrite], AS_HELP_STRING([--disable-directwrite], + [disable DirectWrite support (win32 only) @<:@default=check@:>@])) +AC_ARG_ENABLE([coretext], AS_HELP_STRING([--disable-coretext], + [disable CoreText support (OSX only) @<:@default=check@:>@])) AC_ARG_ENABLE([harfbuzz], AS_HELP_STRING([--disable-harfbuzz], [disable HarfBuzz support @<:@default=check@:>@])) AC_ARG_ENABLE([asm], AS_HELP_STRING([--disable-asm], @@ -165,6 +169,7 @@ AC_LINK_IFELSE([ AC_MSG_RESULT([no]) ]) fi +AM_CONDITIONAL([CORETEXT], [test x$coretext = xtrue]) diff --git a/libass/Makefile.am b/libass/Makefile.am index b6965c9..2cf6354 100644 --- a/libass/Makefile.am +++ b/libass/Makefile.am @@ -20,6 +20,7 @@ SRC_INTEL_RASTERIZER = x86/rasterizer.asm SRC_RASTERIZER = ass_rasterizer.h ass_rasterizer.c ass_rasterizer_c.c SRC_DIRECTWRITE = ass_directwrite.c ass_directwrite.h dwrite_c.h +SRC_CORETEXT = ass_coretext.c ass_coretext.h lib_LTLIBRARIES = libass.la libass_la_SOURCES = ass.c ass_cache.c ass_font.c ass_fontselect.c ass_render.c \ @@ -28,8 +29,7 @@ libass_la_SOURCES = ass.c ass_cache.c ass_font.c ass_fontselect.c ass_render.c \ ass_library.h ass_types.h ass_utils.h ass_drawing.c \ ass_drawing.h ass_cache_template.h ass_render.h \ ass_parse.c ass_parse.h ass_render_api.c ass_shaper.c \ - ass_shaper.h ass_strtod.c ass_fontconfig.c ass_fontconfig.h \ - ass_coretext.c ass_coretext.h + ass_shaper.h ass_strtod.c ass_fontconfig.c ass_fontconfig.h libass_la_LDFLAGS = -no-undefined -version-info $(LIBASS_LT_CURRENT):$(LIBASS_LT_REVISION):$(LIBASS_LT_AGE) libass_la_LDFLAGS += -export-symbols $(srcdir)/libass.sym @@ -38,6 +38,10 @@ if DIRECTWRITE libass_la_SOURCES += $(SRC_DIRECTWRITE) endif +if CORETEXT +libass_la_SOURCES += $(SRC_CORETEXT) +endif + if RASTERIZER libass_la_SOURCES += $(SRC_RASTERIZER) endif diff --git a/libass/ass_coretext.c b/libass/ass_coretext.c index 66277a5..bf8a20a 100644 --- a/libass/ass_coretext.c +++ b/libass/ass_coretext.c @@ -18,8 +18,6 @@ #include "config.h" -#ifdef CONFIG_CORETEXT - #include #include @@ -291,5 +289,3 @@ ass_coretext_add_provider(ASS_Library *lib, ASS_FontSelector *selector, return provider; } - -#endif