Index: gyp/freetype.gyp |
diff --git a/gyp/freetype.gyp b/gyp/freetype.gyp |
index f72c29c259a32921c65201a24cdc494eaddc5c96..91fc0b3db690d3979b6e7e03282c518649e8cf9b 100644 |
--- a/gyp/freetype.gyp |
+++ b/gyp/freetype.gyp |
@@ -2,6 +2,44 @@ |
'targets': [ |
{ |
'target_name': 'freetype', |
+ 'type': 'none', |
+ 'conditions': [ |
+ [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
+ 'direct_dependent_settings': { |
+ 'include_dirs' : [ |
+ '/usr/include/freetype2', |
+ ], |
+ 'link_settings': { |
+ 'libraries': [ |
+ '-lfreetype', |
+ ], |
+ 'defines': [ |
+ #The font host requires at least FreeType 2.3.0 at runtime. |
+ 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020300',\ |
+ 'SK_CAN_USE_DLOPEN=1', |
+ ], |
+ } |
+ }, |
+ }], |
+ [ 'skia_os in ["android", "nacl"]', { |
+ 'dependencies': [ |
+ 'freetype_static' |
+ ], |
+ 'export_dependent_settings': [ |
+ 'freetype_static' |
+ ], |
+ 'direct_dependent_settings': { |
+ 'defines': [ |
+ # Both Android and NaCl provide at least FreeType 2.4.0 |
+ 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400', |
+ 'SK_CAN_USE_DLOPEN=0', |
+ ], |
+ }, |
+ }], |
+ ], |
+ }, |
+ { |
+ 'target_name': 'freetype_static', |
'type': 'static_library', |
'standalone_static_library': 1, |
'sources': [ |