зеркало из https://github.com/mozilla/moz-skia.git
Remove freetype dependency from core.gyp
Committed: https://code.google.com/p/skia/source/detail?r=8677 Review URL: https://codereview.chromium.org/13975014 git-svn-id: http://skia.googlecode.com/svn/trunk@8678 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
f41ca79112
Коммит
856b984c51
|
@ -75,11 +75,6 @@
|
||||||
'config/win',
|
'config/win',
|
||||||
],
|
],
|
||||||
}],
|
}],
|
||||||
[ 'skia_os == "nacl"', {
|
|
||||||
'dependencies': [
|
|
||||||
'freetype.gyp:freetype',
|
|
||||||
],
|
|
||||||
}],
|
|
||||||
[ 'skia_os == "android" and skia_arch_type == "arm" and armv7 == 1', {
|
[ 'skia_os == "android" and skia_arch_type == "arm" and armv7 == 1', {
|
||||||
# The code in SkUtilsArm.cpp can be used on an ARM-based Linux system, not only Android.
|
# The code in SkUtilsArm.cpp can be used on an ARM-based Linux system, not only Android.
|
||||||
'sources': [
|
'sources': [
|
||||||
|
|
|
@ -16,9 +16,10 @@ SK_DEFINE_INST_COUNT(SkAdvancedTypefaceMetrics)
|
||||||
#include <dwrite.h>
|
#include <dwrite.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(SK_BUILD_FOR_NACL)
|
#if defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID)
|
||||||
#include <ft2build.h>
|
// forward declare structs needed for getAdvanceData() template for freetype
|
||||||
#include FT_FREETYPE_H
|
struct FT_FaceRec;
|
||||||
|
typedef struct FT_FaceRec_* FT_Face;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SK_BUILD_FOR_MAC
|
#ifdef SK_BUILD_FOR_MAC
|
||||||
|
@ -268,8 +269,6 @@ template SkAdvancedTypefaceMetrics::WidthRange* getAdvanceData(
|
||||||
uint32_t subsetGlyphIDsLength,
|
uint32_t subsetGlyphIDsLength,
|
||||||
bool (*getAdvance)(IDWriteFontFace* fontFace, int gId, int16_t* data));
|
bool (*getAdvance)(IDWriteFontFace* fontFace, int gId, int16_t* data));
|
||||||
#elif defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID)
|
#elif defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID)
|
||||||
struct FT_FaceRec;
|
|
||||||
typedef struct FT_FaceRec_* FT_Face;
|
|
||||||
template SkAdvancedTypefaceMetrics::WidthRange* getAdvanceData(
|
template SkAdvancedTypefaceMetrics::WidthRange* getAdvanceData(
|
||||||
FT_Face face,
|
FT_Face face,
|
||||||
int num_glyphs,
|
int num_glyphs,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче