scroggo@google.com | f1754ec | 2013-06-28 21:32:00 +0000 | [diff] [blame] | 1 | # Gyp for utils. |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 2 | { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 3 | 'targets': [ |
| 4 | { |
| 5 | 'target_name': 'utils', |
borenet@google.com | efb1d77 | 2012-10-10 19:45:51 +0000 | [diff] [blame] | 6 | 'product_name': 'skia_utils', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +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 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 12 | 'include_dirs': [ |
junov@chromium.org | 77eec24 | 2012-07-18 17:54:45 +0000 | [diff] [blame] | 13 | '../include/effects', |
bungeman@google.com | 8c6a4f2 | 2013-04-23 18:06:23 +0000 | [diff] [blame] | 14 | '../include/images', |
scroggo@google.com | f1754ec | 2013-06-28 21:32:00 +0000 | [diff] [blame] | 15 | '../include/lazy', |
commit-bot@chromium.org | 064779a | 2013-07-01 17:50:29 +0000 | [diff] [blame] | 16 | '../include/pathops', |
junov@chromium.org | 77eec24 | 2012-07-18 17:54:45 +0000 | [diff] [blame] | 17 | '../include/pipe', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 18 | '../include/utils', |
epoger@google.com | 0a030cd | 2011-06-02 19:52:14 +0000 | [diff] [blame] | 19 | '../include/utils/mac', |
senorblanco@chromium.org | 907afca | 2011-06-01 20:55:45 +0000 | [diff] [blame] | 20 | '../include/utils/unix', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 21 | '../include/utils/win', |
bungeman@google.com | 5a64e58 | 2012-03-29 14:51:56 +0000 | [diff] [blame] | 22 | '../include/xml', |
junov@chromium.org | baa0220 | 2013-01-24 14:38:23 +0000 | [diff] [blame] | 23 | '../src/core', |
bungeman@google.com | e8f0592 | 2012-08-16 16:13:40 +0000 | [diff] [blame] | 24 | '../src/utils', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 25 | ], |
| 26 | 'sources': [ |
scroggo@google.com | 4177ef4 | 2012-10-31 15:52:16 +0000 | [diff] [blame] | 27 | # Classes for a threadpool. |
| 28 | '../include/utils/SkCondVar.h', |
| 29 | '../include/utils/SkCountdown.h', |
| 30 | '../include/utils/SkRunnable.h', |
| 31 | '../include/utils/SkThreadPool.h', |
| 32 | '../src/utils/SkCondVar.cpp', |
| 33 | '../src/utils/SkCountdown.cpp', |
| 34 | '../src/utils/SkThreadPool.cpp', |
| 35 | |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 36 | '../include/utils/SkBoundaryPatch.h', |
scroggo@google.com | 83fd2c7 | 2013-09-26 21:35:39 +0000 | [diff] [blame] | 37 | '../include/utils/SkFrontBufferedStream.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 38 | '../include/utils/SkCamera.h', |
djsollen@google.com | 5587ac0 | 2013-08-29 20:20:40 +0000 | [diff] [blame] | 39 | '../include/utils/SkCanvasStateUtils.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 40 | '../include/utils/SkCubicInterval.h', |
| 41 | '../include/utils/SkCullPoints.h', |
humper@google.com | 5d0a769 | 2013-02-14 18:57:59 +0000 | [diff] [blame] | 42 | '../include/utils/SkDebugUtils.h', |
junov@google.com | 4370aed | 2012-01-18 16:21:08 +0000 | [diff] [blame] | 43 | '../include/utils/SkDeferredCanvas.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 44 | '../include/utils/SkDumpCanvas.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 45 | '../include/utils/SkInterpolator.h', |
| 46 | '../include/utils/SkLayer.h', |
reed@google.com | c8cc60c | 2011-06-13 14:58:44 +0000 | [diff] [blame] | 47 | '../include/utils/SkMatrix44.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 48 | '../include/utils/SkMeshUtils.h', |
| 49 | '../include/utils/SkNinePatch.h', |
| 50 | '../include/utils/SkNWayCanvas.h', |
bsalomon@google.com | 19bbd3d | 2012-06-11 15:39:15 +0000 | [diff] [blame] | 51 | '../include/utils/SkNullCanvas.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 52 | '../include/utils/SkParse.h', |
| 53 | '../include/utils/SkParsePaint.h', |
| 54 | '../include/utils/SkParsePath.h', |
djsollen@google.com | fdabcb5 | 2012-12-05 06:15:42 +0000 | [diff] [blame] | 55 | '../include/utils/SkPictureUtils.h', |
bsalomon@google.com | 3bc7200 | 2013-01-25 17:49:03 +0000 | [diff] [blame] | 56 | '../include/utils/SkRandom.h', |
humper@google.com | 7af56be | 2013-01-14 18:49:19 +0000 | [diff] [blame] | 57 | '../include/utils/SkRTConf.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 58 | '../include/utils/SkProxyCanvas.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 59 | '../include/utils/SkUnitMappers.h', |
bsalomon@google.com | bd7c641 | 2011-12-01 16:34:28 +0000 | [diff] [blame] | 60 | '../include/utils/SkWGL.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 61 | |
bungeman@google.com | af5bbf2 | 2012-02-07 20:47:38 +0000 | [diff] [blame] | 62 | '../src/utils/SkBase64.cpp', |
| 63 | '../src/utils/SkBase64.h', |
epoger@google.com | 908f583 | 2013-04-12 02:23:55 +0000 | [diff] [blame] | 64 | '../src/utils/SkBitmapHasher.cpp', |
| 65 | '../src/utils/SkBitmapHasher.h', |
vandebo@chromium.org | ec1a7fa | 2012-03-21 23:11:46 +0000 | [diff] [blame] | 66 | '../src/utils/SkBitSet.cpp', |
| 67 | '../src/utils/SkBitSet.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 68 | '../src/utils/SkBoundaryPatch.cpp', |
scroggo@google.com | 83fd2c7 | 2013-09-26 21:35:39 +0000 | [diff] [blame] | 69 | '../src/utils/SkFrontBufferedStream.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 70 | '../src/utils/SkCamera.cpp', |
djsollen@google.com | 339e79f | 2013-09-04 17:16:00 +0000 | [diff] [blame] | 71 | '../src/utils/SkCanvasStack.h', |
| 72 | '../src/utils/SkCanvasStack.cpp', |
djsollen@google.com | 5587ac0 | 2013-08-29 20:20:40 +0000 | [diff] [blame] | 73 | '../src/utils/SkCanvasStateUtils.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 74 | '../src/utils/SkCubicInterval.cpp', |
| 75 | '../src/utils/SkCullPoints.cpp', |
junov@google.com | 4370aed | 2012-01-18 16:21:08 +0000 | [diff] [blame] | 76 | '../src/utils/SkDeferredCanvas.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 77 | '../src/utils/SkDumpCanvas.cpp', |
bungeman@google.com | e8f0592 | 2012-08-16 16:13:40 +0000 | [diff] [blame] | 78 | '../src/utils/SkFloatUtils.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 79 | '../src/utils/SkInterpolator.cpp', |
| 80 | '../src/utils/SkLayer.cpp', |
reed@google.com | c8cc60c | 2011-06-13 14:58:44 +0000 | [diff] [blame] | 81 | '../src/utils/SkMatrix44.cpp', |
bungeman@google.com | cfcb1be | 2013-01-31 19:47:48 +0000 | [diff] [blame] | 82 | '../src/utils/SkMD5.cpp', |
| 83 | '../src/utils/SkMD5.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 84 | '../src/utils/SkMeshUtils.cpp', |
| 85 | '../src/utils/SkNinePatch.cpp', |
| 86 | '../src/utils/SkNWayCanvas.cpp', |
bsalomon@google.com | 19bbd3d | 2012-06-11 15:39:15 +0000 | [diff] [blame] | 87 | '../src/utils/SkNullCanvas.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 88 | '../src/utils/SkOSFile.cpp', |
| 89 | '../src/utils/SkParse.cpp', |
| 90 | '../src/utils/SkParseColor.cpp', |
| 91 | '../src/utils/SkParsePath.cpp', |
reed@google.com | fe7b1ed | 2012-11-29 21:00:39 +0000 | [diff] [blame] | 92 | '../src/utils/SkPictureUtils.cpp', |
commit-bot@chromium.org | 064779a | 2013-07-01 17:50:29 +0000 | [diff] [blame] | 93 | '../src/utils/SkPathUtils.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 94 | '../src/utils/SkProxyCanvas.cpp', |
bungeman@google.com | cfcb1be | 2013-01-31 19:47:48 +0000 | [diff] [blame] | 95 | '../src/utils/SkSHA1.cpp', |
| 96 | '../src/utils/SkSHA1.h', |
humper@google.com | 7af56be | 2013-01-14 18:49:19 +0000 | [diff] [blame] | 97 | '../src/utils/SkRTConf.cpp', |
bungeman@google.com | 5548752 | 2012-05-14 14:09:24 +0000 | [diff] [blame] | 98 | '../src/utils/SkThreadUtils.h', |
| 99 | '../src/utils/SkThreadUtils_pthread.cpp', |
| 100 | '../src/utils/SkThreadUtils_pthread.h', |
| 101 | '../src/utils/SkThreadUtils_pthread_linux.cpp', |
| 102 | '../src/utils/SkThreadUtils_pthread_mach.cpp', |
| 103 | '../src/utils/SkThreadUtils_pthread_other.cpp', |
| 104 | '../src/utils/SkThreadUtils_win.cpp', |
| 105 | '../src/utils/SkThreadUtils_win.h', |
bungeman@google.com | f5cc5b1 | 2013-07-12 18:22:49 +0000 | [diff] [blame] | 106 | '../src/utils/SkTFitsIn.h', |
| 107 | '../src/utils/SkTLogic.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 108 | '../src/utils/SkUnitMappers.cpp', |
| 109 | |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 110 | #mac |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 111 | '../include/utils/mac/SkCGUtils.h', |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 112 | '../src/utils/mac/SkCreateCGImageRef.cpp', |
rmistry@google.com | d6176b0 | 2012-08-23 18:14:13 +0000 | [diff] [blame] | 113 | |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 114 | #windows |
| 115 | '../include/utils/win/SkAutoCoInitialize.h', |
bungeman@google.com | b29c883 | 2011-10-10 13:19:10 +0000 | [diff] [blame] | 116 | '../include/utils/win/SkHRESULT.h', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 117 | '../include/utils/win/SkIStream.h', |
| 118 | '../include/utils/win/SkTScopedComPtr.h', |
| 119 | '../src/utils/win/SkAutoCoInitialize.cpp', |
bungeman@google.com | e8f0592 | 2012-08-16 16:13:40 +0000 | [diff] [blame] | 120 | '../src/utils/win/SkDWriteFontFileStream.cpp', |
| 121 | '../src/utils/win/SkDWriteFontFileStream.h', |
| 122 | '../src/utils/win/SkDWriteGeometrySink.cpp', |
| 123 | '../src/utils/win/SkDWriteGeometrySink.h', |
bungeman@google.com | b29c883 | 2011-10-10 13:19:10 +0000 | [diff] [blame] | 124 | '../src/utils/win/SkHRESULT.cpp', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 125 | '../src/utils/win/SkIStream.cpp', |
bsalomon@google.com | bd7c641 | 2011-12-01 16:34:28 +0000 | [diff] [blame] | 126 | '../src/utils/win/SkWGL_win.cpp', |
skia.committer@gmail.com | 26da7f0 | 2013-06-01 07:01:39 +0000 | [diff] [blame] | 127 | |
reed@google.com | 7edec14 | 2013-05-31 20:17:57 +0000 | [diff] [blame] | 128 | #testing |
| 129 | '../src/fonts/SkGScalerContext.cpp', |
| 130 | '../src/fonts/SkGScalerContext.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 131 | ], |
| 132 | 'sources!': [ |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 133 | '../src/utils/SDL/SkOSWindow_SDL.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 134 | ], |
| 135 | 'conditions': [ |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 136 | [ 'skia_os == "mac"', { |
epoger@google.com | c39f175 | 2011-06-03 17:52:12 +0000 | [diff] [blame] | 137 | 'link_settings': { |
| 138 | 'libraries': [ |
| 139 | '$(SDKROOT)/System/Library/Frameworks/AGL.framework', |
| 140 | ], |
| 141 | }, |
caryclark@google.com | 5c83dcc | 2012-09-26 13:02:37 +0000 | [diff] [blame] | 142 | }], |
| 143 | [ 'skia_os in ["mac", "ios"]', { |
bungeman@google.com | fe5afe5 | 2011-06-24 13:58:17 +0000 | [diff] [blame] | 144 | 'direct_dependent_settings': { |
| 145 | 'include_dirs': [ |
| 146 | '../include/utils/mac', |
| 147 | ], |
| 148 | }, |
bungeman@google.com | 5548752 | 2012-05-14 14:09:24 +0000 | [diff] [blame] | 149 | 'sources!': [ |
| 150 | '../src/utils/SkThreadUtils_pthread_other.cpp', |
| 151 | ], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 152 | },{ #else if 'skia_os != "mac"' |
senorblanco@chromium.org | 907afca | 2011-06-01 20:55:45 +0000 | [diff] [blame] | 153 | 'include_dirs!': [ |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 154 | '../include/utils/mac', |
| 155 | ], |
| 156 | 'sources!': [ |
| 157 | '../include/utils/mac/SkCGUtils.h', |
| 158 | '../src/utils/mac/SkCreateCGImageRef.cpp', |
bungeman@google.com | 5548752 | 2012-05-14 14:09:24 +0000 | [diff] [blame] | 159 | '../src/utils/SkThreadUtils_pthread_mach.cpp', |
senorblanco@chromium.org | 907afca | 2011-06-01 20:55:45 +0000 | [diff] [blame] | 160 | ], |
bungeman@google.com | 63aab2f | 2011-06-01 16:15:43 +0000 | [diff] [blame] | 161 | }], |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 162 | [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
bungeman@google.com | 5548752 | 2012-05-14 14:09:24 +0000 | [diff] [blame] | 163 | 'sources!': [ |
| 164 | '../src/utils/SkThreadUtils_pthread_other.cpp', |
| 165 | ], |
borenet@google.com | 05d550e | 2013-06-11 15:52:19 +0000 | [diff] [blame] | 166 | },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]' |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 167 | 'include_dirs!': [ |
| 168 | '../include/utils/unix', |
| 169 | ], |
bungeman@google.com | 5548752 | 2012-05-14 14:09:24 +0000 | [diff] [blame] | 170 | 'sources!': [ |
| 171 | '../src/utils/SkThreadUtils_pthread_linux.cpp', |
| 172 | ], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 173 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 174 | [ 'skia_os == "win"', { |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 175 | 'direct_dependent_settings': { |
| 176 | 'include_dirs': [ |
| 177 | '../include/utils/win', |
| 178 | ], |
| 179 | }, |
bungeman@google.com | 5548752 | 2012-05-14 14:09:24 +0000 | [diff] [blame] | 180 | 'sources!': [ |
| 181 | '../src/utils/SkThreadUtils_pthread.cpp', |
| 182 | '../src/utils/SkThreadUtils_pthread.h', |
| 183 | '../src/utils/SkThreadUtils_pthread_other.cpp', |
| 184 | ], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 185 | },{ #else if 'skia_os != "win"' |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 186 | 'include_dirs!': [ |
| 187 | '../include/utils/win', |
| 188 | ], |
bsalomon@google.com | bd7c641 | 2011-12-01 16:34:28 +0000 | [diff] [blame] | 189 | 'sources/': [ ['exclude', '_win.(h|cpp)$'],], |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 190 | 'sources!': [ |
| 191 | '../include/utils/win/SkAutoCoInitialize.h', |
bungeman@google.com | b29c883 | 2011-10-10 13:19:10 +0000 | [diff] [blame] | 192 | '../include/utils/win/SkHRESULT.h', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 193 | '../include/utils/win/SkIStream.h', |
| 194 | '../include/utils/win/SkTScopedComPtr.h', |
| 195 | '../src/utils/win/SkAutoCoInitialize.cpp', |
bungeman@google.com | e8f0592 | 2012-08-16 16:13:40 +0000 | [diff] [blame] | 196 | '../src/utils/win/SkDWriteFontFileStream.cpp', |
| 197 | '../src/utils/win/SkDWriteFontFileStream.h', |
| 198 | '../src/utils/win/SkDWriteGeometrySink.cpp', |
| 199 | '../src/utils/win/SkDWriteGeometrySink.h', |
bungeman@google.com | b29c883 | 2011-10-10 13:19:10 +0000 | [diff] [blame] | 200 | '../src/utils/win/SkHRESULT.cpp', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 201 | '../src/utils/win/SkIStream.cpp', |
bungeman@google.com | 9df621d | 2011-06-23 21:43:52 +0000 | [diff] [blame] | 202 | ], |
bungeman@google.com | 3b0a8da | 2011-06-02 15:38:06 +0000 | [diff] [blame] | 203 | }], |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 204 | [ 'skia_os == "nacl"', { |
borenet@google.com | a98eb91 | 2012-09-04 21:09:40 +0000 | [diff] [blame] | 205 | 'sources': [ |
| 206 | '../src/utils/SkThreadUtils_pthread_other.cpp', |
| 207 | ], |
| 208 | 'sources!': [ |
| 209 | '../src/utils/SkThreadUtils_pthread_linux.cpp', |
| 210 | ], |
| 211 | }], |
djsollen@google.com | 276a295 | 2012-11-19 19:34:23 +0000 | [diff] [blame] | 212 | [ 'skia_os == "android"', { |
| 213 | 'sources': [ |
djsollen@google.com | efbe8e9 | 2013-02-07 18:58:35 +0000 | [diff] [blame] | 214 | '../src/utils/android/ashmem.cpp', |
djsollen@google.com | 276a295 | 2012-11-19 19:34:23 +0000 | [diff] [blame] | 215 | ], |
| 216 | }], |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 217 | ], |
| 218 | 'direct_dependent_settings': { |
| 219 | 'include_dirs': [ |
| 220 | '../include/utils', |
| 221 | ], |
| 222 | }, |
| 223 | }, |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 224 | ], |
| 225 | } |
| 226 | |
| 227 | # Local Variables: |
| 228 | # tab-width:2 |
| 229 | # indent-tabs-mode:nil |
| 230 | # End: |
| 231 | # vim: set expandtab tabstop=2 shiftwidth=2: |