Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Unified Diff: gyp/freetype.gyp

Issue 19835002: refactor gyp to isolate freetype usage (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/core.gyp ('k') | gyp/ports.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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': [
« no previous file with comments | « gyp/core.gyp ('k') | gyp/ports.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698