caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 1 | # Port-specific Skia library code. |
| 2 | { |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 3 | 'targets': [ |
| 4 | { |
| 5 | 'target_name': 'ports', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 6 | 'product_name': 'skia_ports', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 7 | 'type': 'static_library', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 8 | 'standalone_static_library': 1, |
bungeman@google.com | b8f3655 | 2013-07-22 14:39:45 +0000 | [diff] [blame] | 9 | 'dependencies': [ |
| 10 | 'core.gyp:*', |
| 11 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 12 | 'include_dirs': [ |
bungeman@google.com | 5a64e58 | 2012-03-29 14:51:56 +0000 | [diff] [blame] | 13 | '../include/effects', |
scroggo@google.com | d9ef3a2 | 2013-03-15 18:08:09 +0000 | [diff] [blame] | 14 | '../include/images', |
bungeman@google.com | 29b63dc | 2012-03-29 14:28:59 +0000 | [diff] [blame] | 15 | '../include/ports', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 16 | '../include/utils', |
djsollen@google.com | 2897931 | 2013-06-03 14:44:52 +0000 | [diff] [blame] | 17 | '../include/utils/win', |
bungeman@google.com | 5a64e58 | 2012-03-29 14:51:56 +0000 | [diff] [blame] | 18 | '../include/xml', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 19 | '../src/core', |
scroggo@google.com | d9ef3a2 | 2013-03-15 18:08:09 +0000 | [diff] [blame] | 20 | '../src/lazy', |
reed@google.com | e027a6e | 2013-07-31 17:37:31 +0000 | [diff] [blame] | 21 | '../src/ports', |
djsollen@google.com | 52f0297 | 2013-06-03 12:10:19 +0000 | [diff] [blame] | 22 | '../src/sfnt', |
bungeman@google.com | a02bc15 | 2012-05-16 18:21:56 +0000 | [diff] [blame] | 23 | '../src/utils', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 24 | ], |
| 25 | 'sources': [ |
bungeman@google.com | d9947f6 | 2013-12-18 15:27:39 +0000 | [diff] [blame] | 26 | '../src/ports/SkAtomics_sync.h', |
| 27 | '../src/ports/SkAtomics_win.h', |
bungeman@google.com | 72cf4fc | 2014-03-21 22:48:32 +0000 | [diff] [blame] | 28 | '../src/ports/SkMutex_pthread.h', |
| 29 | '../src/ports/SkMutex_win.h', |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 30 | '../src/ports/SkDebug_nacl.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 31 | '../src/ports/SkDebug_stdio.cpp', |
| 32 | '../src/ports/SkDebug_win.cpp', |
bungeman@google.com | bfc6cc4 | 2013-08-21 15:20:43 +0000 | [diff] [blame] | 33 | |
bungeman@google.com | 72cf4fc | 2014-03-21 22:48:32 +0000 | [diff] [blame] | 34 | '../src/fonts/SkFontMgr_indirect.cpp', |
| 35 | '../src/fonts/SkRemotableFontMgr.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 36 | '../src/ports/SkFontHost_win.cpp', |
bungeman@google.com | bfc6cc4 | 2013-08-21 15:20:43 +0000 | [diff] [blame] | 37 | '../src/ports/SkFontMgr_default_gdi.cpp', |
| 38 | '../src/ports/SkFontMgr_default_dw.cpp', |
bungeman | 51daa25 | 2014-06-05 13:38:45 -0700 | [diff] [blame] | 39 | '../src/ports/SkFontMgr_win_dw.cpp', |
bungeman@google.com | 72cf4fc | 2014-03-21 22:48:32 +0000 | [diff] [blame] | 40 | '../src/ports/SkRemotableFontMgr_win_dw.cpp', |
Ben Wagner | 98875e1 | 2014-06-05 16:55:58 -0400 | [diff] [blame] | 41 | '../src/ports/SkScalerContext_win_dw.cpp', |
bungeman | 51daa25 | 2014-06-05 13:38:45 -0700 | [diff] [blame] | 42 | '../src/ports/SkScalerContext_win_dw.h', |
| 43 | '../src/ports/SkTypeface_win_dw.cpp', |
| 44 | '../src/ports/SkTypeface_win_dw.h', |
bungeman@google.com | bfc6cc4 | 2013-08-21 15:20:43 +0000 | [diff] [blame] | 45 | |
caryclark@google.com | d26147a | 2011-12-15 14:16:43 +0000 | [diff] [blame] | 46 | '../src/ports/SkGlobalInitialization_default.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 47 | '../src/ports/SkMemory_malloc.cpp', |
bungeman@google.com | d9947f6 | 2013-12-18 15:27:39 +0000 | [diff] [blame] | 48 | '../src/ports/SkMutex_pthread.h', |
| 49 | '../src/ports/SkMutex_win.h', |
bungeman@google.com | 6cab1a4 | 2013-05-29 13:43:31 +0000 | [diff] [blame] | 50 | '../src/ports/SkOSFile_posix.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 51 | '../src/ports/SkOSFile_stdio.cpp', |
bungeman@google.com | 6cab1a4 | 2013-05-29 13:43:31 +0000 | [diff] [blame] | 52 | '../src/ports/SkOSFile_win.cpp', |
scroggo@google.com | 8b71ef1 | 2013-08-19 18:38:08 +0000 | [diff] [blame] | 53 | '../src/ports/SkDiscardableMemory_none.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 54 | '../src/ports/SkTime_Unix.cpp', |
| 55 | '../src/ports/SkTime_win.cpp', |
bungeman@google.com | f2e7dbb | 2013-07-16 14:59:24 +0000 | [diff] [blame] | 56 | '../src/ports/SkTLS_pthread.cpp', |
| 57 | '../src/ports/SkTLS_win.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 58 | '../src/ports/SkXMLParser_empty.cpp', |
bungeman@google.com | 72cf4fc | 2014-03-21 22:48:32 +0000 | [diff] [blame] | 59 | |
| 60 | '../include/ports/SkFontConfigInterface.h', |
| 61 | '../include/ports/SkFontMgr.h', |
| 62 | '../include/ports/SkFontMgr_indirect.h', |
| 63 | '../include/ports/SkFontStyle.h', |
| 64 | '../include/ports/SkRemotableFontMgr.h', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 65 | ], |
| 66 | 'conditions': [ |
djsollen@google.com | 2679ff8 | 2013-07-22 14:12:56 +0000 | [diff] [blame] | 67 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos", "nacl", "android"]', { |
| 68 | 'sources': [ |
| 69 | '../src/ports/SkFontHost_FreeType.cpp', |
| 70 | '../src/ports/SkFontHost_FreeType_common.cpp', |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 71 | ], |
djsollen@google.com | 2679ff8 | 2013-07-22 14:12:56 +0000 | [diff] [blame] | 72 | 'dependencies': [ |
| 73 | 'freetype.gyp:freetype', |
| 74 | ], |
| 75 | }], |
| 76 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
commit-bot@chromium.org | f84722e | 2014-02-24 20:22:34 +0000 | [diff] [blame] | 77 | 'conditions': [ |
| 78 | [ 'skia_no_fontconfig', { |
| 79 | 'link_settings': { |
| 80 | 'libraries': [ |
| 81 | '-ldl', |
| 82 | ], |
| 83 | }, |
| 84 | 'sources': [ |
| 85 | '../src/ports/SkFontHost_linux.cpp', |
| 86 | ], |
| 87 | }, { |
| 88 | 'link_settings': { |
| 89 | 'libraries': [ |
| 90 | '-lfontconfig', |
| 91 | '-ldl', |
| 92 | ], |
| 93 | }, |
| 94 | 'sources': [ |
| 95 | '../src/fonts/SkFontMgr_fontconfig.cpp', |
| 96 | '../src/ports/SkFontHost_fontconfig.cpp', |
| 97 | '../src/ports/SkFontConfigInterface_direct.cpp', |
| 98 | ], |
| 99 | }] |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 100 | ], |
| 101 | }], |
| 102 | [ 'skia_os == "nacl"', { |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 103 | 'sources': [ |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 104 | '../src/ports/SkFontHost_linux.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 105 | ], |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 106 | 'sources!': [ |
| 107 | '../src/ports/SkDebug_stdio.cpp', |
| 108 | ], |
| 109 | }, { |
| 110 | 'sources!': [ |
| 111 | '../src/ports/SkDebug_nacl.cpp', |
| 112 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 113 | }], |
| 114 | [ 'skia_os == "mac"', { |
| 115 | 'include_dirs': [ |
| 116 | '../include/utils/mac', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 117 | ], |
| 118 | 'sources': [ |
mike@reedtribe.org | b103ed4 | 2013-03-03 03:50:09 +0000 | [diff] [blame] | 119 | '../src/ports/SkFontHost_mac.cpp', |
scroggo@google.com | d9ef3a2 | 2013-03-15 18:08:09 +0000 | [diff] [blame] | 120 | '../src/utils/mac/SkStream_mac.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 121 | ], |
reed@google.com | 17aa07d | 2012-02-23 14:51:10 +0000 | [diff] [blame] | 122 | 'sources!': [ |
| 123 | '../src/ports/SkFontHost_tables.cpp', |
| 124 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 125 | }], |
| 126 | [ 'skia_os == "ios"', { |
| 127 | 'include_dirs': [ |
| 128 | '../include/utils/ios', |
caryclark@google.com | 35f5ac9 | 2012-09-18 15:41:18 +0000 | [diff] [blame] | 129 | '../include/utils/mac', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 130 | ], |
| 131 | 'sources': [ |
mike@reedtribe.org | b103ed4 | 2013-03-03 03:50:09 +0000 | [diff] [blame] | 132 | '../src/ports/SkFontHost_mac.cpp', |
scroggo@google.com | d9ef3a2 | 2013-03-15 18:08:09 +0000 | [diff] [blame] | 133 | '../src/utils/mac/SkStream_mac.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 134 | ], |
caryclark@google.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame] | 135 | 'sources!': [ |
| 136 | '../src/ports/SkFontHost_tables.cpp', |
| 137 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 138 | }], |
| 139 | [ 'skia_os == "win"', { |
| 140 | 'include_dirs': [ |
| 141 | 'config/win', |
bungeman@google.com | e8f0592 | 2012-08-16 16:13:40 +0000 | [diff] [blame] | 142 | '../src/utils/win', |
| 143 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 144 | 'sources!': [ # these are used everywhere but windows |
| 145 | '../src/ports/SkDebug_stdio.cpp', |
bungeman@google.com | 6cab1a4 | 2013-05-29 13:43:31 +0000 | [diff] [blame] | 146 | '../src/ports/SkOSFile_posix.cpp', |
bungeman@google.com | f2e7dbb | 2013-07-16 14:59:24 +0000 | [diff] [blame] | 147 | '../src/ports/SkTime_Unix.cpp', |
| 148 | '../src/ports/SkTLS_pthread.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 149 | ], |
bungeman@google.com | bfc6cc4 | 2013-08-21 15:20:43 +0000 | [diff] [blame] | 150 | 'conditions': [ |
| 151 | # when we build for win, we only want one of these default files |
| 152 | [ 'skia_directwrite', { |
| 153 | 'sources!': [ |
| 154 | '../src/ports/SkFontMgr_default_gdi.cpp', |
| 155 | ], |
| 156 | }, { # else gdi |
| 157 | 'sources!': [ |
| 158 | '../src/ports/SkFontMgr_default_dw.cpp', |
| 159 | ], |
| 160 | }], |
| 161 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 162 | }, { # else !win |
| 163 | 'sources!': [ |
| 164 | '../src/ports/SkDebug_win.cpp', |
| 165 | '../src/ports/SkFontHost_win.cpp', |
bungeman@google.com | bfc6cc4 | 2013-08-21 15:20:43 +0000 | [diff] [blame] | 166 | '../src/ports/SkFontMgr_default_gdi.cpp', |
| 167 | '../src/ports/SkFontMgr_default_dw.cpp', |
bungeman | 51daa25 | 2014-06-05 13:38:45 -0700 | [diff] [blame] | 168 | '../src/ports/SkFontMgr_win_dw.cpp', |
bungeman@google.com | 6cab1a4 | 2013-05-29 13:43:31 +0000 | [diff] [blame] | 169 | '../src/ports/SkOSFile_win.cpp', |
bungeman@google.com | 04c32a8 | 2014-03-21 23:19:10 +0000 | [diff] [blame] | 170 | '../src/ports/SkRemotableFontMgr_win_dw.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 171 | '../src/ports/SkTime_win.cpp', |
bungeman@google.com | f2e7dbb | 2013-07-16 14:59:24 +0000 | [diff] [blame] | 172 | '../src/ports/SkTLS_win.cpp', |
Ben Wagner | 98875e1 | 2014-06-05 16:55:58 -0400 | [diff] [blame] | 173 | '../src/ports/SkScalerContext_win_dw.cpp', |
bungeman | 51daa25 | 2014-06-05 13:38:45 -0700 | [diff] [blame] | 174 | '../src/ports/SkScalerContext_win_dw.h', |
| 175 | '../src/ports/SkTypeface_win_dw.cpp', |
| 176 | '../src/ports/SkTypeface_win_dw.h', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 177 | ], |
| 178 | }], |
| 179 | [ 'skia_os == "android"', { |
| 180 | 'sources!': [ |
| 181 | '../src/ports/SkDebug_stdio.cpp', |
| 182 | ], |
| 183 | 'sources': [ |
| 184 | '../src/ports/SkDebug_android.cpp', |
djsollen@google.com | bfae9d3 | 2013-05-21 16:53:50 +0000 | [diff] [blame] | 185 | '../src/ports/SkFontConfigInterface_android.cpp', |
| 186 | '../src/ports/SkFontConfigParser_android.cpp', |
djsollen@google.com | bfae9d3 | 2013-05-21 16:53:50 +0000 | [diff] [blame] | 187 | '../src/ports/SkFontHost_fontconfig.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 188 | ], |
djsollen@google.com | 62b24b1 | 2011-12-15 16:16:22 +0000 | [diff] [blame] | 189 | 'dependencies': [ |
borenet@google.com | af73091 | 2012-08-09 15:54:28 +0000 | [diff] [blame] | 190 | 'android_deps.gyp:expat', |
djsollen@google.com | 62b24b1 | 2011-12-15 16:16:22 +0000 | [diff] [blame] | 191 | ], |
rmistry@google.com | d6176b0 | 2012-08-23 18:14:13 +0000 | [diff] [blame] | 192 | }], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 193 | ], |
| 194 | 'direct_dependent_settings': { |
| 195 | 'include_dirs': [ |
| 196 | '../include/ports', |
| 197 | ], |
| 198 | }, |
| 199 | }, |
| 200 | ], |
| 201 | } |