diff options
author | 2012-02-14 14:53:59 +0000 | |
---|---|---|
committer | 2012-02-14 14:53:59 +0000 | |
commit | 7bc13a62609149f0b535c2f3ff7210eb834d8b36 (patch) | |
tree | 79850a72cb3324e3c4d54cc4cfdf40445b046e78 /gyp/gm.gyp | |
parent | f7fa806d84abf1cba47bfa8679e875a75d76599e (diff) |
Set LCD font smoothing to "medium" for gm on Mac, regardless of system settings
http://code.google.com/p/skia/issues/detail?id=382 ('make gm results consistent regardless of system LCDtext settings')
Review URL: https://codereview.appspot.com/5661043
git-svn-id: http://skia.googlecode.com/svn/trunk@3184 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gyp/gm.gyp')
-rw-r--r-- | gyp/gm.gyp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/gyp/gm.gyp b/gyp/gm.gyp index 43075dc144..3c5e12edd9 100644 --- a/gyp/gm.gyp +++ b/gyp/gm.gyp @@ -14,6 +14,7 @@ 'sources': [ '../gm/gm.cpp', '../gm/gmmain.cpp', + '../gm/system_preferences_default.cpp', ], 'dependencies': [ 'core.gyp:core', @@ -25,9 +26,22 @@ 'pdf.gyp:pdf', 'utils.gyp:utils', ], - #mac does not like empty dependency. 'conditions': [ - [ 'skia_os == "win"', { + ['skia_os == "mac"', { + 'sources!': [ + '../gm/system_preferences_default.cpp', + ], + 'sources': [ + '../gm/system_preferences_mac.mm', + ], + 'link_settings': { + 'libraries': [ + '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework', + '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', + ], + }, + }], + ['skia_os == "win"', { 'dependencies': [ 'xps.gyp:xps', ], |