Bug 549019 Don't try to build Direct2D with older SDKs (based on patch by bas) r=jrmuizel
--- a/gfx/thebes/src/Makefile.in
+++ b/gfx/thebes/src/Makefile.in
@@ -59,23 +59,26 @@ ifdef WINCE
CPPSRCS += gfxFT2Fonts.cpp \
gfxFT2FontBase.cpp \
gfxFT2Utils.cpp \
gfxDDrawSurface.cpp \
gfxFT2FontList.cpp \
$(NULL)
EXTRA_DSO_LDOPTS += ddraw.lib
else
-CPPSRCS += gfxWindowsFonts.cpp \
- gfxDWriteFonts.cpp \
+ifdef MOZ_ENABLE_DWRITE_FONT
+CPPSRCS += gfxDWriteFonts.cpp \
gfxDWriteTextAnalysis.cpp \
gfxDWriteCommon.cpp \
gfxD2DSurface.cpp \
+ gfxDWriteFontList.cpp \
+ $(NULL)
+endif
+CPPSRCS += gfxWindowsFonts.cpp \
gfxGDIFontList.cpp \
- gfxDWriteFontList.cpp \
$(NULL)
endif
CPPSRCS += gfxPDFSurface.cpp
_OS_LIBS = usp10 msimg32
ifdef GNU_CXX
_OS_LIBS += uuid
--- a/gfx/thebes/src/gfxWindowsPlatform.cpp
+++ b/gfx/thebes/src/gfxWindowsPlatform.cpp
@@ -59,22 +59,23 @@
#include FT_FREETYPE_H
#include "gfxFT2Fonts.h"
#include "gfxFT2FontList.h"
#include "cairo-ft.h"
#include "nsAppDirectoryServiceDefs.h"
#else
#include "gfxWindowsFonts.h"
#include "gfxGDIFontList.h"
-#include "gfxDWriteFontList.h"
+#ifdef CAIRO_HAS_DWRITE_FONT
#include "gfxDWriteFontList.h"
#include "gfxDWriteFonts.h"
#include "gfxDWriteCommon.h"
#include <dwrite.h>
#endif
+#endif
#ifdef CAIRO_HAS_D2D_SURFACE
#include "gfxD2DSurface.h"
#endif
#ifdef WINCE
#include <shlwapi.h>