(CoreText) Add HAVE_CORETEXT define

This commit is contained in:
twinaphex 2015-04-19 16:18:58 +02:00
parent e332a5096e
commit 147a9f85ff
5 changed files with 5 additions and 2 deletions

View File

@ -282,6 +282,7 @@
ONLY_ACTIVE_ARCH = YES; ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = ( OTHER_CFLAGS = (
"-DHAVE_GRIFFIN", "-DHAVE_GRIFFIN",
"-DHAVE_CORETEXT",
"-DHAVE_IOHIDMANAGER", "-DHAVE_IOHIDMANAGER",
"-DHAVE_RGUI", "-DHAVE_RGUI",
"-DHAVE_MENU", "-DHAVE_MENU",

View File

@ -325,6 +325,7 @@
MACOSX_DEPLOYMENT_TARGET = 10.5; MACOSX_DEPLOYMENT_TARGET = 10.5;
OTHER_CFLAGS = ( OTHER_CFLAGS = (
"-DHAVE_GRIFFIN", "-DHAVE_GRIFFIN",
"-DHAVE_CORETEXT",
"-DHAVE_IOHIDMANAGER", "-DHAVE_IOHIDMANAGER",
"-DHAVE_LOCATION", "-DHAVE_LOCATION",
"-DHAVE_RGUI", "-DHAVE_RGUI",

View File

@ -494,6 +494,7 @@
"-DHAVE_NETWORKING", "-DHAVE_NETWORKING",
"-DHAVE_CAMERA", "-DHAVE_CAMERA",
"-DHAVE_GRIFFIN", "-DHAVE_GRIFFIN",
"-DHAVE_CORETEXT",
"-DHAVE_LOCATION", "-DHAVE_LOCATION",
"-DHAVE_RGUI", "-DHAVE_RGUI",
"-DHAVE_MENU", "-DHAVE_MENU",

View File

@ -25,7 +25,7 @@ static const font_renderer_driver_t *font_backends[] = {
#ifdef HAVE_FREETYPE #ifdef HAVE_FREETYPE
&freetype_font_renderer, &freetype_font_renderer,
#endif #endif
#ifdef __APPLE__ #if defined(__APPLE__) && defined(HAVE_CORETEXT)
&coretext_font_renderer, &coretext_font_renderer,
#endif #endif
&bitmap_font_renderer, &bitmap_font_renderer,

View File

@ -247,7 +247,7 @@ FONTS
#include "../gfx/drivers_font_renderer/freetype.c" #include "../gfx/drivers_font_renderer/freetype.c"
#endif #endif
#if defined(__APPLE__) #if defined(__APPLE__) && defined(HAVE_CORETEXT)
#include "../gfx/drivers_font_renderer/coretext.c" #include "../gfx/drivers_font_renderer/coretext.c"
#endif #endif