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
diff --git a/gyp/gm.gyp b/gyp/gm.gyp
index 43075dc..3c5e12e 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',
],