1 # Gyp for utils. 2 { 3 'targets': [ 4 { 5 'target_name': 'utils', 6 'product_name': 'skia_utils', 7 'type': 'static_library', 8 'standalone_static_library': 1, 9 'dependencies': [ 10 'core.gyp:*', 11 ], 12 'include_dirs': [ 13 '../include/effects', 14 '../include/images', 15 '../include/lazy', 16 '../include/pathops', 17 '../include/pipe', 18 '../include/utils', 19 '../include/utils/mac', 20 '../include/utils/unix', 21 '../include/utils/win', 22 '../include/xml', 23 '../src/core', 24 '../src/utils', 25 ], 26 'sources': [ 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 36 '../include/utils/SkBoundaryPatch.h', 37 '../include/utils/SkFrontBufferedStream.h', 38 '../include/utils/SkCamera.h', 39 '../include/utils/SkCanvasStateUtils.h', 40 '../include/utils/SkCubicInterval.h', 41 '../include/utils/SkCullPoints.h', 42 '../include/utils/SkDebugUtils.h', 43 '../include/utils/SkDeferredCanvas.h', 44 '../include/utils/SkDumpCanvas.h', 45 '../include/utils/SkInterpolator.h', 46 '../include/utils/SkLayer.h', 47 '../include/utils/SkMatrix44.h', 48 '../include/utils/SkMeshUtils.h', 49 '../include/utils/SkNinePatch.h', 50 '../include/utils/SkNWayCanvas.h', 51 '../include/utils/SkNullCanvas.h', 52 '../include/utils/SkParse.h', 53 '../include/utils/SkParsePaint.h', 54 '../include/utils/SkParsePath.h', 55 '../include/utils/SkPictureUtils.h', 56 '../include/utils/SkRandom.h', 57 '../include/utils/SkRTConf.h', 58 '../include/utils/SkProxyCanvas.h', 59 '../include/utils/SkUnitMappers.h', 60 '../include/utils/SkWGL.h', 61 62 '../src/utils/SkBase64.cpp', 63 '../src/utils/SkBase64.h', 64 '../src/utils/SkBitmapHasher.cpp', 65 '../src/utils/SkBitmapHasher.h', 66 '../src/utils/SkBitSet.cpp', 67 '../src/utils/SkBitSet.h', 68 '../src/utils/SkBoundaryPatch.cpp', 69 '../src/utils/SkFrontBufferedStream.cpp', 70 '../src/utils/SkCamera.cpp', 71 '../src/utils/SkCanvasStack.h', 72 '../src/utils/SkCanvasStack.cpp', 73 '../src/utils/SkCanvasStateUtils.cpp', 74 '../src/utils/SkCubicInterval.cpp', 75 '../src/utils/SkCullPoints.cpp', 76 '../src/utils/SkDeferredCanvas.cpp', 77 '../src/utils/SkDumpCanvas.cpp', 78 '../src/utils/SkFloatUtils.h', 79 '../src/utils/SkInterpolator.cpp', 80 '../src/utils/SkLayer.cpp', 81 '../src/utils/SkMatrix44.cpp', 82 '../src/utils/SkMD5.cpp', 83 '../src/utils/SkMD5.h', 84 '../src/utils/SkMeshUtils.cpp', 85 '../src/utils/SkNinePatch.cpp', 86 '../src/utils/SkNWayCanvas.cpp', 87 '../src/utils/SkNullCanvas.cpp', 88 '../src/utils/SkOSFile.cpp', 89 '../src/utils/SkParse.cpp', 90 '../src/utils/SkParseColor.cpp', 91 '../src/utils/SkParsePath.cpp', 92 '../src/utils/SkPictureUtils.cpp', 93 '../src/utils/SkPathUtils.cpp', 94 '../src/utils/SkProxyCanvas.cpp', 95 '../src/utils/SkSHA1.cpp', 96 '../src/utils/SkSHA1.h', 97 '../src/utils/SkRTConf.cpp', 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', 106 '../src/utils/SkTFitsIn.h', 107 '../src/utils/SkTLogic.h', 108 '../src/utils/SkUnitMappers.cpp', 109 110 #mac 111 '../include/utils/mac/SkCGUtils.h', 112 '../src/utils/mac/SkCreateCGImageRef.cpp', 113 114 #windows 115 '../include/utils/win/SkAutoCoInitialize.h', 116 '../include/utils/win/SkHRESULT.h', 117 '../include/utils/win/SkIStream.h', 118 '../include/utils/win/SkTScopedComPtr.h', 119 '../src/utils/win/SkAutoCoInitialize.cpp', 120 '../src/utils/win/SkDWriteFontFileStream.cpp', 121 '../src/utils/win/SkDWriteFontFileStream.h', 122 '../src/utils/win/SkDWriteGeometrySink.cpp', 123 '../src/utils/win/SkDWriteGeometrySink.h', 124 '../src/utils/win/SkHRESULT.cpp', 125 '../src/utils/win/SkIStream.cpp', 126 '../src/utils/win/SkWGL_win.cpp', 127 128 #testing 129 '../src/fonts/SkGScalerContext.cpp', 130 '../src/fonts/SkGScalerContext.h', 131 ], 132 'sources!': [ 133 '../src/utils/SDL/SkOSWindow_SDL.cpp', 134 ], 135 'conditions': [ 136 [ 'skia_os == "mac"', { 137 'link_settings': { 138 'libraries': [ 139 '$(SDKROOT)/System/Library/Frameworks/AGL.framework', 140 ], 141 }, 142 }], 143 [ 'skia_os in ["mac", "ios"]', { 144 'direct_dependent_settings': { 145 'include_dirs': [ 146 '../include/utils/mac', 147 ], 148 }, 149 'sources!': [ 150 '../src/utils/SkThreadUtils_pthread_other.cpp', 151 ], 152 },{ #else if 'skia_os != "mac"' 153 'include_dirs!': [ 154 '../include/utils/mac', 155 ], 156 'sources!': [ 157 '../include/utils/mac/SkCGUtils.h', 158 '../src/utils/mac/SkCreateCGImageRef.cpp', 159 '../src/utils/SkThreadUtils_pthread_mach.cpp', 160 ], 161 }], 162 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { 163 'sources!': [ 164 '../src/utils/SkThreadUtils_pthread_other.cpp', 165 ], 166 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]' 167 'include_dirs!': [ 168 '../include/utils/unix', 169 ], 170 'sources!': [ 171 '../src/utils/SkThreadUtils_pthread_linux.cpp', 172 ], 173 }], 174 [ 'skia_os == "win"', { 175 'direct_dependent_settings': { 176 'include_dirs': [ 177 '../include/utils/win', 178 ], 179 }, 180 'sources!': [ 181 '../src/utils/SkThreadUtils_pthread.cpp', 182 '../src/utils/SkThreadUtils_pthread.h', 183 '../src/utils/SkThreadUtils_pthread_other.cpp', 184 ], 185 },{ #else if 'skia_os != "win"' 186 'include_dirs!': [ 187 '../include/utils/win', 188 ], 189 'sources/': [ ['exclude', '_win.(h|cpp)$'],], 190 'sources!': [ 191 '../include/utils/win/SkAutoCoInitialize.h', 192 '../include/utils/win/SkHRESULT.h', 193 '../include/utils/win/SkIStream.h', 194 '../include/utils/win/SkTScopedComPtr.h', 195 '../src/utils/win/SkAutoCoInitialize.cpp', 196 '../src/utils/win/SkDWriteFontFileStream.cpp', 197 '../src/utils/win/SkDWriteFontFileStream.h', 198 '../src/utils/win/SkDWriteGeometrySink.cpp', 199 '../src/utils/win/SkDWriteGeometrySink.h', 200 '../src/utils/win/SkHRESULT.cpp', 201 '../src/utils/win/SkIStream.cpp', 202 ], 203 }], 204 [ 'skia_os == "nacl"', { 205 'sources': [ 206 '../src/utils/SkThreadUtils_pthread_other.cpp', 207 ], 208 'sources!': [ 209 '../src/utils/SkThreadUtils_pthread_linux.cpp', 210 ], 211 }], 212 [ 'skia_os == "android"', { 213 'sources': [ 214 '../src/utils/android/ashmem.cpp', 215 ], 216 }], 217 ], 218 'direct_dependent_settings': { 219 'include_dirs': [ 220 '../include/utils', 221 ], 222 }, 223 }, 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: 232