1{ 2 'targets': [ 3 { 4 'target_name': 'utils', 5 'product_name': 'skia_utils', 6 'type': 'static_library', 7 'standalone_static_library': 1, 8 'dependencies': [ 9 'cityhash', 10 ], 11 'include_dirs': [ 12 '../include/config', 13 '../include/core', 14 '../include/effects', 15 '../include/pipe', 16 '../include/utils', 17 '../include/utils/mac', 18 '../include/utils/unix', 19 '../include/utils/win', 20 '../include/xml', 21 '../src/core', 22 '../src/utils', 23 ], 24 'sources': [ 25 # Classes for a threadpool. 26 '../include/utils/SkCondVar.h', 27 '../include/utils/SkCountdown.h', 28 '../include/utils/SkRunnable.h', 29 '../include/utils/SkThreadPool.h', 30 '../src/utils/SkCondVar.cpp', 31 '../src/utils/SkCountdown.cpp', 32 '../src/utils/SkThreadPool.cpp', 33 34 '../include/utils/SkBoundaryPatch.h', 35 '../include/utils/SkCamera.h', 36 '../include/utils/SkCubicInterval.h', 37 '../include/utils/SkCullPoints.h', 38 '../include/utils/SkDeferredCanvas.h', 39 '../include/utils/SkDumpCanvas.h', 40 '../include/utils/SkInterpolator.h', 41 '../include/utils/SkLayer.h', 42 '../include/utils/SkMatrix44.h', 43 '../include/utils/SkMeshUtils.h', 44 '../include/utils/SkNinePatch.h', 45 '../include/utils/SkNWayCanvas.h', 46 '../include/utils/SkNullCanvas.h', 47 '../include/utils/SkParse.h', 48 '../include/utils/SkParsePaint.h', 49 '../include/utils/SkParsePath.h', 50 '../include/utils/SkPictureUtils.h', 51 '../include/utils/SkRandom.h', 52 '../include/utils/SkRTConf.h', 53 '../include/utils/SkProxyCanvas.h', 54 '../include/utils/SkUnitMappers.h', 55 '../include/utils/SkWGL.h', 56 57 '../src/utils/SkBase64.cpp', 58 '../src/utils/SkBase64.h', 59 '../src/utils/SkBitmapChecksummer.cpp', 60 '../src/utils/SkBitmapChecksummer.h', 61 '../src/utils/SkBitmapTransformer.cpp', 62 '../src/utils/SkBitmapTransformer.h', 63 '../src/utils/SkBitSet.cpp', 64 '../src/utils/SkBitSet.h', 65 '../src/utils/SkBoundaryPatch.cpp', 66 '../src/utils/SkCamera.cpp', 67 '../src/utils/SkCityHash.cpp', 68 '../src/utils/SkCityHash.h', 69 '../src/utils/SkCubicInterval.cpp', 70 '../src/utils/SkCullPoints.cpp', 71 '../src/utils/SkDeferredCanvas.cpp', 72 '../src/utils/SkDumpCanvas.cpp', 73 '../src/utils/SkFloatUtils.h', 74 '../src/utils/SkInterpolator.cpp', 75 '../src/utils/SkLayer.cpp', 76 '../src/utils/SkMatrix44.cpp', 77 '../src/utils/SkMD5.cpp', 78 '../src/utils/SkMD5.h', 79 '../src/utils/SkMeshUtils.cpp', 80 '../src/utils/SkNinePatch.cpp', 81 '../src/utils/SkNWayCanvas.cpp', 82 '../src/utils/SkNullCanvas.cpp', 83 '../src/utils/SkOSFile.cpp', 84 '../src/utils/SkParse.cpp', 85 '../src/utils/SkParseColor.cpp', 86 '../src/utils/SkParsePath.cpp', 87 '../src/utils/SkPictureUtils.cpp', 88 '../src/utils/SkProxyCanvas.cpp', 89 '../src/utils/SkSHA1.cpp', 90 '../src/utils/SkSHA1.h', 91 '../src/utils/SkRTConf.cpp', 92 '../src/utils/SkThreadUtils.h', 93 '../src/utils/SkThreadUtils_pthread.cpp', 94 '../src/utils/SkThreadUtils_pthread.h', 95 '../src/utils/SkThreadUtils_pthread_linux.cpp', 96 '../src/utils/SkThreadUtils_pthread_mach.cpp', 97 '../src/utils/SkThreadUtils_pthread_other.cpp', 98 '../src/utils/SkThreadUtils_win.cpp', 99 '../src/utils/SkThreadUtils_win.h', 100 '../src/utils/SkUnitMappers.cpp', 101 102 #mac 103 '../include/utils/mac/SkCGUtils.h', 104 '../src/utils/mac/SkCreateCGImageRef.cpp', 105 106 #windows 107 '../include/utils/win/SkAutoCoInitialize.h', 108 '../include/utils/win/SkHRESULT.h', 109 '../include/utils/win/SkIStream.h', 110 '../include/utils/win/SkTScopedComPtr.h', 111 '../src/utils/win/SkAutoCoInitialize.cpp', 112 '../src/utils/win/SkDWriteFontFileStream.cpp', 113 '../src/utils/win/SkDWriteFontFileStream.h', 114 '../src/utils/win/SkDWriteGeometrySink.cpp', 115 '../src/utils/win/SkDWriteGeometrySink.h', 116 '../src/utils/win/SkHRESULT.cpp', 117 '../src/utils/win/SkIStream.cpp', 118 '../src/utils/win/SkWGL_win.cpp', 119 ], 120 'sources!': [ 121 '../src/utils/SDL/SkOSWindow_SDL.cpp', 122 ], 123 'conditions': [ 124 [ 'skia_os == "mac"', { 125 'link_settings': { 126 'libraries': [ 127 '$(SDKROOT)/System/Library/Frameworks/AGL.framework', 128 ], 129 }, 130 }], 131 [ 'skia_os in ["mac", "ios"]', { 132 'direct_dependent_settings': { 133 'include_dirs': [ 134 '../include/utils/mac', 135 ], 136 }, 137 'sources!': [ 138 '../src/utils/SkThreadUtils_pthread_other.cpp', 139 ], 140 },{ #else if 'skia_os != "mac"' 141 'include_dirs!': [ 142 '../include/utils/mac', 143 ], 144 'sources!': [ 145 '../include/utils/mac/SkCGUtils.h', 146 '../src/utils/mac/SkCreateCGImageRef.cpp', 147 '../src/utils/SkThreadUtils_pthread_mach.cpp', 148 ], 149 }], 150 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', { 151 'sources!': [ 152 '../src/utils/SkThreadUtils_pthread_other.cpp', 153 ], 154 },{ #else if 'skia_os not in ["linux", "freebsd", "openbsd", "solaris"]' 155 'include_dirs!': [ 156 '../include/utils/unix', 157 ], 158 'sources!': [ 159 '../src/utils/SkThreadUtils_pthread_linux.cpp', 160 ], 161 }], 162 [ 'skia_os == "win"', { 163 'direct_dependent_settings': { 164 'include_dirs': [ 165 '../include/utils/win', 166 ], 167 }, 168 'sources!': [ 169 '../src/utils/SkThreadUtils_pthread.cpp', 170 '../src/utils/SkThreadUtils_pthread.h', 171 '../src/utils/SkThreadUtils_pthread_other.cpp', 172 ], 173 },{ #else if 'skia_os != "win"' 174 'include_dirs!': [ 175 '../include/utils/win', 176 ], 177 'sources/': [ ['exclude', '_win.(h|cpp)$'],], 178 'sources!': [ 179 '../include/utils/win/SkAutoCoInitialize.h', 180 '../include/utils/win/SkHRESULT.h', 181 '../include/utils/win/SkIStream.h', 182 '../include/utils/win/SkTScopedComPtr.h', 183 '../src/utils/win/SkAutoCoInitialize.cpp', 184 '../src/utils/win/SkDWriteFontFileStream.cpp', 185 '../src/utils/win/SkDWriteFontFileStream.h', 186 '../src/utils/win/SkDWriteGeometrySink.cpp', 187 '../src/utils/win/SkDWriteGeometrySink.h', 188 '../src/utils/win/SkHRESULT.cpp', 189 '../src/utils/win/SkIStream.cpp', 190 ], 191 }], 192 [ 'skia_os == "nacl"', { 193 'sources': [ 194 '../src/utils/SkThreadUtils_pthread_other.cpp', 195 ], 196 'sources!': [ 197 '../src/utils/SkThreadUtils_pthread_linux.cpp', 198 ], 199 }], 200 [ 'skia_os == "android"', { 201 'sources': [ 202 '../src/utils/android/ashmem.c', 203 ], 204 }], 205 ], 206 'direct_dependent_settings': { 207 'include_dirs': [ 208 '../include/utils', 209 ], 210 }, 211 }, 212 { 213 'target_name': 'cityhash', 214 'type': 'static_library', 215 'standalone_static_library': 1, 216 'include_dirs': [ 217 '../include/config', 218 '../include/core', 219 '../src/utils/cityhash', 220 '../third_party/externals/cityhash/src', 221 ], 222 'sources': [ 223 '../third_party/externals/cityhash/src/city.cc', 224 ], 225 'direct_dependent_settings': { 226 'include_dirs': [ 227 '../third_party/externals/cityhash/src', 228 ], 229 }, 230 'conditions': [ 231 [ 'skia_os == "mac"', { 232 'xcode_settings': { 233 'OTHER_CPLUSPLUSFLAGS!': [ 234 '-Werror', 235 ] 236 }, 237 }], 238 [ 'skia_os == "win"', { 239 'msvs_settings': { 240 'VCCLCompilerTool': { 241 'WarnAsError': 'false', 242 }, 243 }, 244 }], 245 ], 246 }, 247 ], 248} 249 250# Local Variables: 251# tab-width:2 252# indent-tabs-mode:nil 253# End: 254# vim: set expandtab tabstop=2 shiftwidth=2: 255