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