Remove freetype dependency from core.gyp

Review URL: https://codereview.chromium.org/13975014

git-svn-id: http://skia.googlecode.com/svn/trunk@8677 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
djsollen@google.com 2013-04-15 14:02:32 +00:00
parent 31c4e8997c
commit f41ca79112
2 changed files with 4 additions and 2 deletions

View File

@ -75,7 +75,7 @@
'config/win',
],
}],
[ 'skia_os in ("android", "nacl")', {
[ 'skia_os == "nacl"', {
'dependencies': [
'freetype.gyp:freetype',
],

View File

@ -16,7 +16,7 @@ SK_DEFINE_INST_COUNT(SkAdvancedTypefaceMetrics)
#include <dwrite.h>
#endif
#if defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID)
#if defined(SK_BUILD_FOR_NACL)
#include <ft2build.h>
#include FT_FREETYPE_H
#endif
@ -268,6 +268,8 @@ template SkAdvancedTypefaceMetrics::WidthRange* getAdvanceData(
uint32_t subsetGlyphIDsLength,
bool (*getAdvance)(IDWriteFontFace* fontFace, int gId, int16_t* data));
#elif defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID)
struct FT_FaceRec;
typedef struct FT_FaceRec_* FT_Face;
template SkAdvancedTypefaceMetrics::WidthRange* getAdvanceData(
FT_Face face,
int num_glyphs,