Index: gyp/ports.gyp |
diff --git a/gyp/ports.gyp b/gyp/ports.gyp |
index fff368df6a5b209b8a6b5839c03bc467672f5de7..1d45fd370ac2df7d29a668587fd81b90100c490e 100644 |
--- a/gyp/ports.gyp |
+++ b/gyp/ports.gyp |
@@ -26,8 +26,12 @@ |
'../src/ports/SkDebug_nacl.cpp', |
'../src/ports/SkDebug_stdio.cpp', |
'../src/ports/SkDebug_win.cpp', |
+ |
'../src/ports/SkFontHost_win.cpp', |
'../src/ports/SkFontHost_win_dw.cpp', |
+ '../src/ports/SkFontMgr_default_gdi.cpp', |
+ '../src/ports/SkFontMgr_default_dw.cpp', |
+ |
'../src/ports/SkGlobalInitialization_default.cpp', |
'../src/ports/SkMemory_malloc.cpp', |
'../src/ports/SkOSFile_posix.cpp', |
@@ -113,17 +117,6 @@ |
'config/win', |
'../src/utils/win', |
], |
- 'conditions': [ |
- [ 'skia_directwrite', { |
- 'sources!': [ |
- '../src/ports/SkFontHost_win.cpp', |
- ], |
- }, { # else !skia_directwrite |
- 'sources!': [ |
- '../src/ports/SkFontHost_win_dw.cpp', |
- ], |
- }], |
- ], |
'sources!': [ # these are used everywhere but windows |
'../src/ports/SkDebug_stdio.cpp', |
'../src/ports/SkOSFile_posix.cpp', |
@@ -131,11 +124,25 @@ |
'../src/ports/SkTime_Unix.cpp', |
'../src/ports/SkTLS_pthread.cpp', |
], |
+ 'conditions': [ |
+ # when we build for win, we only want one of these default files |
+ [ 'skia_directwrite', { |
+ 'sources!': [ |
+ '../src/ports/SkFontMgr_default_gdi.cpp', |
+ ], |
+ }, { # else gdi |
+ 'sources!': [ |
+ '../src/ports/SkFontMgr_default_dw.cpp', |
+ ], |
+ }], |
+ ], |
}, { # else !win |
'sources!': [ |
'../src/ports/SkDebug_win.cpp', |
'../src/ports/SkFontHost_win.cpp', |
'../src/ports/SkFontHost_win_dw.cpp', |
+ '../src/ports/SkFontMgr_default_gdi.cpp', |
+ '../src/ports/SkFontMgr_default_dw.cpp', |
'../src/ports/SkOSFile_win.cpp', |
'../src/ports/SkThread_win.cpp', |
'../src/ports/SkTime_win.cpp', |