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_android.h', |
| 27 | '../src/ports/SkAtomics_none.h', |
| 28 | '../src/ports/SkAtomics_sync.h', |
| 29 | '../src/ports/SkAtomics_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 | |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 34 | '../src/ports/SkFontHost_win.cpp', |
bungeman@google.com | e8f0592 | 2012-08-16 16:13:40 +0000 | [diff] [blame] | 35 | '../src/ports/SkFontHost_win_dw.cpp', |
bungeman@google.com | bfc6cc4 | 2013-08-21 15:20:43 +0000 | [diff] [blame] | 36 | '../src/ports/SkFontMgr_default_gdi.cpp', |
| 37 | '../src/ports/SkFontMgr_default_dw.cpp', |
| 38 | |
caryclark@google.com | d26147a | 2011-12-15 14:16:43 +0000 | [diff] [blame] | 39 | '../src/ports/SkGlobalInitialization_default.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 40 | '../src/ports/SkMemory_malloc.cpp', |
bungeman@google.com | d9947f6 | 2013-12-18 15:27:39 +0000 | [diff] [blame] | 41 | '../src/ports/SkMutex_none.h', |
| 42 | '../src/ports/SkMutex_pthread.h', |
| 43 | '../src/ports/SkMutex_win.h', |
bungeman@google.com | 6cab1a4 | 2013-05-29 13:43:31 +0000 | [diff] [blame] | 44 | '../src/ports/SkOSFile_posix.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 45 | '../src/ports/SkOSFile_stdio.cpp', |
bungeman@google.com | 6cab1a4 | 2013-05-29 13:43:31 +0000 | [diff] [blame] | 46 | '../src/ports/SkOSFile_win.cpp', |
scroggo@google.com | 8b71ef1 | 2013-08-19 18:38:08 +0000 | [diff] [blame] | 47 | '../src/ports/SkDiscardableMemory_none.cpp', |
bungeman@google.com | f2e7dbb | 2013-07-16 14:59:24 +0000 | [diff] [blame] | 48 | '../src/ports/SkPurgeableMemoryBlock_none.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 49 | '../src/ports/SkTime_Unix.cpp', |
| 50 | '../src/ports/SkTime_win.cpp', |
bungeman@google.com | f2e7dbb | 2013-07-16 14:59:24 +0000 | [diff] [blame] | 51 | #'../src/ports/SkTLS_none.cpp', |
| 52 | '../src/ports/SkTLS_pthread.cpp', |
| 53 | '../src/ports/SkTLS_win.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 54 | '../src/ports/SkXMLParser_empty.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 55 | ], |
| 56 | 'conditions': [ |
djsollen@google.com | 2679ff8 | 2013-07-22 14:12:56 +0000 | [diff] [blame] | 57 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos", "nacl", "android"]', { |
| 58 | 'sources': [ |
| 59 | '../src/ports/SkFontHost_FreeType.cpp', |
| 60 | '../src/ports/SkFontHost_FreeType_common.cpp', |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 61 | ], |
djsollen@google.com | 2679ff8 | 2013-07-22 14:12:56 +0000 | [diff] [blame] | 62 | 'dependencies': [ |
| 63 | 'freetype.gyp:freetype', |
| 64 | ], |
| 65 | }], |
| 66 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 67 | 'link_settings': { |
| 68 | 'libraries': [ |
reed@google.com | 8333d2a | 2013-03-04 14:45:29 +0000 | [diff] [blame] | 69 | '-lfontconfig', |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 70 | '-ldl', |
| 71 | ], |
| 72 | }, |
| 73 | 'sources': [ |
reed@google.com | 381bb43 | 2013-05-13 19:43:59 +0000 | [diff] [blame] | 74 | '../src/fonts/SkFontMgr_fontconfig.cpp', |
reed@google.com | 8333d2a | 2013-03-04 14:45:29 +0000 | [diff] [blame] | 75 | '../src/ports/SkFontHost_fontconfig.cpp', |
| 76 | '../src/ports/SkFontConfigInterface_direct.cpp', |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 77 | ], |
| 78 | }], |
| 79 | [ 'skia_os == "nacl"', { |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 80 | 'sources': [ |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 81 | '../src/ports/SkFontHost_linux.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 82 | ], |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 83 | 'sources!': [ |
| 84 | '../src/ports/SkDebug_stdio.cpp', |
| 85 | ], |
| 86 | }, { |
| 87 | 'sources!': [ |
| 88 | '../src/ports/SkDebug_nacl.cpp', |
| 89 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 90 | }], |
| 91 | [ 'skia_os == "mac"', { |
| 92 | 'include_dirs': [ |
| 93 | '../include/utils/mac', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 94 | ], |
| 95 | 'sources': [ |
mike@reedtribe.org | b103ed4 | 2013-03-03 03:50:09 +0000 | [diff] [blame] | 96 | '../src/ports/SkFontHost_mac.cpp', |
scroggo@google.com | d9ef3a2 | 2013-03-15 18:08:09 +0000 | [diff] [blame] | 97 | '../src/ports/SkPurgeableMemoryBlock_mac.cpp', |
scroggo@google.com | d9ef3a2 | 2013-03-15 18:08:09 +0000 | [diff] [blame] | 98 | '../src/utils/mac/SkStream_mac.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 99 | ], |
reed@google.com | 17aa07d | 2012-02-23 14:51:10 +0000 | [diff] [blame] | 100 | 'sources!': [ |
scroggo@google.com | d9ef3a2 | 2013-03-15 18:08:09 +0000 | [diff] [blame] | 101 | '../src/ports/SkPurgeableMemoryBlock_none.cpp', |
reed@google.com | 17aa07d | 2012-02-23 14:51:10 +0000 | [diff] [blame] | 102 | '../src/ports/SkFontHost_tables.cpp', |
| 103 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 104 | }], |
| 105 | [ 'skia_os == "ios"', { |
| 106 | 'include_dirs': [ |
| 107 | '../include/utils/ios', |
caryclark@google.com | 35f5ac9 | 2012-09-18 15:41:18 +0000 | [diff] [blame] | 108 | '../include/utils/mac', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 109 | ], |
| 110 | 'sources': [ |
mike@reedtribe.org | b103ed4 | 2013-03-03 03:50:09 +0000 | [diff] [blame] | 111 | '../src/ports/SkFontHost_mac.cpp', |
scroggo@google.com | d9ef3a2 | 2013-03-15 18:08:09 +0000 | [diff] [blame] | 112 | '../src/ports/SkPurgeableMemoryBlock_mac.cpp', |
scroggo@google.com | d9ef3a2 | 2013-03-15 18:08:09 +0000 | [diff] [blame] | 113 | '../src/utils/mac/SkStream_mac.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 114 | ], |
caryclark@google.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame] | 115 | 'sources!': [ |
scroggo@google.com | d9ef3a2 | 2013-03-15 18:08:09 +0000 | [diff] [blame] | 116 | '../src/ports/SkPurgeableMemoryBlock_none.cpp', |
caryclark@google.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame] | 117 | '../src/ports/SkFontHost_tables.cpp', |
| 118 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 119 | }], |
| 120 | [ 'skia_os == "win"', { |
| 121 | 'include_dirs': [ |
| 122 | 'config/win', |
bungeman@google.com | e8f0592 | 2012-08-16 16:13:40 +0000 | [diff] [blame] | 123 | '../src/utils/win', |
| 124 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 125 | 'sources!': [ # these are used everywhere but windows |
| 126 | '../src/ports/SkDebug_stdio.cpp', |
bungeman@google.com | 6cab1a4 | 2013-05-29 13:43:31 +0000 | [diff] [blame] | 127 | '../src/ports/SkOSFile_posix.cpp', |
bungeman@google.com | f2e7dbb | 2013-07-16 14:59:24 +0000 | [diff] [blame] | 128 | '../src/ports/SkTime_Unix.cpp', |
| 129 | '../src/ports/SkTLS_pthread.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 130 | ], |
bungeman@google.com | bfc6cc4 | 2013-08-21 15:20:43 +0000 | [diff] [blame] | 131 | 'conditions': [ |
| 132 | # when we build for win, we only want one of these default files |
| 133 | [ 'skia_directwrite', { |
| 134 | 'sources!': [ |
| 135 | '../src/ports/SkFontMgr_default_gdi.cpp', |
| 136 | ], |
| 137 | }, { # else gdi |
| 138 | 'sources!': [ |
| 139 | '../src/ports/SkFontMgr_default_dw.cpp', |
| 140 | ], |
| 141 | }], |
| 142 | ], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 143 | }, { # else !win |
| 144 | 'sources!': [ |
| 145 | '../src/ports/SkDebug_win.cpp', |
| 146 | '../src/ports/SkFontHost_win.cpp', |
bungeman@google.com | 6ca0a5d | 2012-08-16 16:23:09 +0000 | [diff] [blame] | 147 | '../src/ports/SkFontHost_win_dw.cpp', |
bungeman@google.com | bfc6cc4 | 2013-08-21 15:20:43 +0000 | [diff] [blame] | 148 | '../src/ports/SkFontMgr_default_gdi.cpp', |
| 149 | '../src/ports/SkFontMgr_default_dw.cpp', |
bungeman@google.com | 6cab1a4 | 2013-05-29 13:43:31 +0000 | [diff] [blame] | 150 | '../src/ports/SkOSFile_win.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 151 | '../src/ports/SkTime_win.cpp', |
bungeman@google.com | f2e7dbb | 2013-07-16 14:59:24 +0000 | [diff] [blame] | 152 | '../src/ports/SkTLS_win.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 153 | ], |
| 154 | }], |
| 155 | [ 'skia_os == "android"', { |
| 156 | 'sources!': [ |
| 157 | '../src/ports/SkDebug_stdio.cpp', |
halcanary@google.com | bc55eec | 2013-12-10 18:33:07 +0000 | [diff] [blame] | 158 | '../src/ports/SkDiscardableMemory_none.cpp', |
scroggo@google.com | d9ef3a2 | 2013-03-15 18:08:09 +0000 | [diff] [blame] | 159 | '../src/ports/SkPurgeableMemoryBlock_none.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 160 | ], |
| 161 | 'sources': [ |
| 162 | '../src/ports/SkDebug_android.cpp', |
halcanary@google.com | bc55eec | 2013-12-10 18:33:07 +0000 | [diff] [blame] | 163 | '../src/ports/SkDiscardableMemory_ashmem.cpp', |
djsollen@google.com | bfae9d3 | 2013-05-21 16:53:50 +0000 | [diff] [blame] | 164 | '../src/ports/SkFontConfigInterface_android.cpp', |
| 165 | '../src/ports/SkFontConfigParser_android.cpp', |
djsollen@google.com | bfae9d3 | 2013-05-21 16:53:50 +0000 | [diff] [blame] | 166 | '../src/ports/SkFontHost_fontconfig.cpp', |
scroggo@google.com | d9ef3a2 | 2013-03-15 18:08:09 +0000 | [diff] [blame] | 167 | '../src/ports/SkPurgeableMemoryBlock_android.cpp', |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 168 | ], |
djsollen@google.com | 62b24b1 | 2011-12-15 16:16:22 +0000 | [diff] [blame] | 169 | 'dependencies': [ |
borenet@google.com | af73091 | 2012-08-09 15:54:28 +0000 | [diff] [blame] | 170 | 'android_deps.gyp:expat', |
djsollen@google.com | 62b24b1 | 2011-12-15 16:16:22 +0000 | [diff] [blame] | 171 | ], |
rmistry@google.com | d6176b0 | 2012-08-23 18:14:13 +0000 | [diff] [blame] | 172 | }], |
caryclark@google.com | afcb55c | 2011-12-14 17:12:04 +0000 | [diff] [blame] | 173 | ], |
| 174 | 'direct_dependent_settings': { |
| 175 | 'include_dirs': [ |
| 176 | '../include/ports', |
| 177 | ], |
| 178 | }, |
| 179 | }, |
| 180 | ], |
| 181 | } |