bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 1 | { |
| 2 | 'target_defaults': { |
| 3 | 'msvs_settings': { |
| 4 | #really need to figure out how to generate debug and release |
| 5 | 'VCLinkerTool': { |
| 6 | 'GenerateDebugInformation': 'true', |
| 7 | }, |
| 8 | 'VCCLCompilerTool': { |
| 9 | 'DebugInformationFormat': '4', |
| 10 | 'Optimization': '0', |
| 11 | }, |
| 12 | }, |
| 13 | 'conditions': [ |
| 14 | [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { |
| 15 | 'include_dirs' : [ |
| 16 | '/usr/include/freetype2', |
| 17 | ], |
| 18 | }], |
| 19 | [ 'OS == "mac"', { |
| 20 | 'defines': [ |
| 21 | 'SK_BUILD_FOR_MAC', |
| 22 | ], |
| 23 | }], |
| 24 | [ 'OS == "win"', { |
| 25 | 'defines': [ |
| 26 | 'SK_BUILD_FOR_WIN32', |
| 27 | ], |
| 28 | },], |
| 29 | ], |
| 30 | 'direct_dependent_settings': { |
| 31 | 'conditions': [ |
| 32 | [ 'OS == "mac"', { |
| 33 | 'defines': [ |
| 34 | 'SK_BUILD_FOR_MAC', |
| 35 | ], |
| 36 | }], |
| 37 | [ 'OS == "win"', { |
| 38 | 'defines': [ |
| 39 | 'SK_BUILD_FOR_WIN32', |
| 40 | ], |
| 41 | },], |
| 42 | ], |
| 43 | }, |
| 44 | }, |
| 45 | 'targets': [ |
| 46 | { |
| 47 | 'target_name': 'skia', |
| 48 | 'type': 'static_library', |
| 49 | 'msvs_guid': 'B7760B5E-BFA8-486B-ACFD-49E3A6DE8E76', |
| 50 | 'sources': [ |
| 51 | '../src/core/ARGB32_Clamp_Bilinear_BitmapShader.h', |
| 52 | '../src/core/Sk64.cpp', |
| 53 | '../src/core/SkAdvancedTypefaceMetrics.cpp', |
| 54 | '../src/core/SkAlphaRuns.cpp', |
| 55 | '../src/core/SkAntiRun.h', |
| 56 | '../src/core/SkBitmap.cpp', |
| 57 | '../src/core/SkBitmapProcShader.cpp', |
| 58 | '../src/core/SkBitmapProcShader.h', |
| 59 | '../src/core/SkBitmapProcState.cpp', |
| 60 | '../src/core/SkBitmapProcState.h', |
| 61 | '../src/core/SkBitmapProcState_matrix.h', |
| 62 | '../src/core/SkBitmapProcState_matrixProcs.cpp', |
| 63 | '../src/core/SkBitmapProcState_sample.h', |
| 64 | '../src/core/SkBitmapSampler.cpp', |
| 65 | '../src/core/SkBitmapSampler.h', |
| 66 | '../src/core/SkBitmapSamplerTemplate.h', |
| 67 | '../src/core/SkBitmapShader16BilerpTemplate.h', |
| 68 | '../src/core/SkBitmapShaderTemplate.h', |
| 69 | '../src/core/SkBitmap_scroll.cpp', |
| 70 | '../src/core/SkBlitBWMaskTemplate.h', |
| 71 | '../src/core/SkBlitRow_D16.cpp', |
| 72 | '../src/core/SkBlitRow_D32.cpp', |
| 73 | '../src/core/SkBlitRow_D4444.cpp', |
| 74 | '../src/core/SkBlitter.cpp', |
| 75 | '../src/core/SkBlitter_4444.cpp', |
| 76 | '../src/core/SkBlitter_A1.cpp', |
| 77 | '../src/core/SkBlitter_A8.cpp', |
| 78 | '../src/core/SkBlitter_ARGB32.cpp', |
| 79 | '../src/core/SkBlitter_RGB16.cpp', |
| 80 | '../src/core/SkBlitter_Sprite.cpp', |
| 81 | '../src/core/SkBuffer.cpp', |
| 82 | '../src/core/SkCanvas.cpp', |
| 83 | '../src/core/SkChunkAlloc.cpp', |
| 84 | '../src/core/SkClipStack.cpp', |
| 85 | '../src/core/SkColor.cpp', |
| 86 | '../src/core/SkColorFilter.cpp', |
| 87 | '../src/core/SkColorTable.cpp', |
| 88 | '../src/core/SkComposeShader.cpp', |
| 89 | '../src/core/SkConcaveToTriangles.cpp', |
| 90 | '../src/core/SkConcaveToTriangles.h', |
| 91 | '../src/core/SkCordic.cpp', |
| 92 | '../src/core/SkCordic.h', |
| 93 | '../src/core/SkCoreBlitters.h', |
| 94 | '../src/core/SkCubicClipper.cpp', |
| 95 | '../src/core/SkCubicClipper.h', |
| 96 | '../src/core/SkDebug.cpp', |
| 97 | '../src/core/SkDeque.cpp', |
| 98 | '../src/core/SkDevice.cpp', |
| 99 | '../src/core/SkDither.cpp', |
| 100 | '../src/core/SkDraw.cpp', |
| 101 | '../src/core/SkDrawProcs.h', |
| 102 | '../src/core/SkEdgeBuilder.cpp', |
| 103 | '../src/core/SkEdgeClipper.cpp', |
| 104 | '../src/core/SkEdge.cpp', |
| 105 | '../src/core/SkEdge.h', |
| 106 | '../src/core/SkFP.h', |
| 107 | '../src/core/SkFilterProc.cpp', |
| 108 | '../src/core/SkFilterProc.h', |
| 109 | '../src/core/SkFlattenable.cpp', |
| 110 | '../src/core/SkFloat.cpp', |
| 111 | '../src/core/SkFloat.h', |
| 112 | '../src/core/SkFloatBits.cpp', |
| 113 | '../src/core/SkGeometry.cpp', |
| 114 | '../src/core/SkGlobals.cpp', |
| 115 | '../src/core/SkGlyphCache.cpp', |
| 116 | '../src/core/SkGlyphCache.h', |
| 117 | '../src/core/SkGraphics.cpp', |
| 118 | '../src/core/SkLineClipper.cpp', |
| 119 | '../src/core/SkMallocPixelRef.cpp', |
| 120 | '../src/core/SkMask.cpp', |
| 121 | '../src/core/SkMaskFilter.cpp', |
| 122 | '../src/core/SkMath.cpp', |
| 123 | '../src/core/SkMatrix.cpp', |
| 124 | '../src/core/SkPackBits.cpp', |
| 125 | '../src/core/SkPaint.cpp', |
| 126 | '../src/core/SkPath.cpp', |
| 127 | '../src/core/SkPathEffect.cpp', |
| 128 | '../src/core/SkPathHeap.cpp', |
| 129 | '../src/core/SkPathHeap.h', |
| 130 | '../src/core/SkPathMeasure.cpp', |
| 131 | '../src/core/SkPicture.cpp', |
| 132 | '../src/core/SkPictureFlat.cpp', |
| 133 | '../src/core/SkPictureFlat.h', |
| 134 | '../src/core/SkPicturePlayback.cpp', |
| 135 | '../src/core/SkPicturePlayback.h', |
| 136 | '../src/core/SkPictureRecord.cpp', |
| 137 | '../src/core/SkPictureRecord.h', |
| 138 | '../src/core/SkPixelRef.cpp', |
| 139 | '../src/core/SkPoint.cpp', |
| 140 | '../src/core/SkProcSpriteBlitter.cpp', |
| 141 | '../src/core/SkPtrRecorder.cpp', |
| 142 | '../src/core/SkQuadClipper.cpp', |
| 143 | '../src/core/SkQuadClipper.h', |
| 144 | '../src/core/SkRasterizer.cpp', |
| 145 | '../src/core/SkRect.cpp', |
| 146 | '../src/core/SkRefDict.cpp', |
| 147 | '../src/core/SkRegion.cpp', |
| 148 | '../src/core/SkRegionPriv.h', |
| 149 | '../src/core/SkRegion_path.cpp', |
| 150 | '../src/core/SkScalar.cpp', |
| 151 | '../src/core/SkScalerContext.cpp', |
| 152 | '../src/core/SkScan.cpp', |
| 153 | '../src/core/SkScanPriv.h', |
| 154 | '../src/core/SkScan_AntiPath.cpp', |
| 155 | '../src/core/SkScan_Antihair.cpp', |
| 156 | '../src/core/SkScan_Hairline.cpp', |
| 157 | '../src/core/SkScan_Path.cpp', |
| 158 | '../src/core/SkShader.cpp', |
| 159 | '../src/core/SkShape.cpp', |
| 160 | '../src/core/SkSpriteBlitter_ARGB32.cpp', |
| 161 | '../src/core/SkSpriteBlitter_RGB16.cpp', |
| 162 | '../src/core/SkSinTable.h', |
| 163 | '../src/core/SkSpriteBlitter.h', |
| 164 | '../src/core/SkSpriteBlitterTemplate.h', |
| 165 | '../src/core/SkStream.cpp', |
| 166 | '../src/core/SkString.cpp', |
| 167 | '../src/core/SkStroke.cpp', |
| 168 | '../src/core/SkStrokerPriv.cpp', |
| 169 | '../src/core/SkStrokerPriv.h', |
| 170 | '../src/core/SkTextFormatParams.h', |
| 171 | '../src/core/SkTSearch.cpp', |
| 172 | '../src/core/SkTSort.h', |
| 173 | '../src/core/SkTemplatesPriv.h', |
| 174 | '../src/core/SkTypeface.cpp', |
| 175 | '../src/core/SkUnPreMultiply.cpp', |
| 176 | '../src/core/SkUtils.cpp', |
| 177 | '../src/core/SkWriter32.cpp', |
| 178 | '../src/core/SkXfermode.cpp', |
| 179 | |
| 180 | '../src/opts/opts_check_SSE2.cpp', |
| 181 | |
| 182 | '../src/ports/SkDebug_stdio.cpp', |
| 183 | '../src/ports/SkFontHost_tables.cpp', |
| 184 | '../src/ports/SkGlobals_global.cpp', |
| 185 | '../src/ports/SkMemory_malloc.cpp', |
| 186 | '../src/ports/SkOSFile_stdio.cpp', |
| 187 | '../src/ports/SkTime_Unix.cpp', |
| 188 | '../src/ports/SkXMLParser_empty.cpp', |
| 189 | '../src/ports/sk_predefined_gamma.h', |
| 190 | |
| 191 | '../include/core/Sk64.h', |
| 192 | '../include/core/SkAdvancedTypefaceMetrics.h', |
| 193 | '../include/core/SkAutoKern.h', |
| 194 | '../include/core/SkBitmap.h', |
| 195 | '../include/core/SkBlitRow.h', |
| 196 | '../include/core/SkBlitter.h', |
| 197 | '../include/core/SkBounder.h', |
| 198 | '../include/core/SkBuffer.h', |
| 199 | '../include/core/SkCanvas.h', |
| 200 | '../include/core/SkChunkAlloc.h', |
| 201 | '../include/core/SkClipStack.h', |
| 202 | '../include/core/SkColor.h', |
| 203 | '../include/core/SkColorFilter.h', |
| 204 | '../include/core/SkColorPriv.h', |
| 205 | '../include/core/SkColorShader.h', |
| 206 | '../include/core/SkComposeShader.h', |
| 207 | '../include/core/SkDeque.h', |
| 208 | '../include/core/SkDescriptor.h', |
| 209 | '../include/core/SkDevice.h', |
| 210 | '../include/core/SkDither.h', |
| 211 | '../include/core/SkDraw.h', |
| 212 | '../include/core/SkDrawFilter.h', |
| 213 | '../include/core/SkDrawLooper.h', |
| 214 | '../include/core/SkEndian.h', |
| 215 | '../include/core/SkFDot6.h', |
| 216 | '../include/core/SkFixed.h', |
| 217 | '../include/core/SkFlattenable.h', |
| 218 | '../include/core/SkFloatBits.h', |
| 219 | '../include/core/SkFloatingPoint.h', |
| 220 | '../include/core/SkFontHost.h', |
| 221 | '../include/core/SkGeometry.h', |
| 222 | '../include/core/SkGlobals.h', |
| 223 | '../include/core/SkGraphics.h', |
| 224 | '../include/core/SkMallocPixelRef.h', |
| 225 | '../include/core/SkMask.h', |
| 226 | '../include/core/SkMaskFilter.h', |
| 227 | '../include/core/SkMath.h', |
| 228 | '../include/core/SkMatrix.h', |
| 229 | '../include/core/SkOSFile.h', |
| 230 | '../include/core/SkPackBits.h', |
| 231 | '../include/core/SkPaint.h', |
| 232 | '../include/core/SkPath.h', |
| 233 | '../include/core/SkPathEffect.h', |
| 234 | '../include/core/SkPathMeasure.h', |
| 235 | '../include/core/SkPerspIter.h', |
| 236 | '../include/core/SkPicture.h', |
| 237 | '../include/core/SkPixelRef.h', |
| 238 | '../include/core/SkPoint.h', |
| 239 | '../include/core/SkPtrRecorder.h', |
| 240 | '../include/core/SkRandom.h', |
| 241 | '../include/core/SkRasterizer.h', |
| 242 | '../include/core/SkReader32.h', |
| 243 | '../include/core/SkRect.h', |
| 244 | '../include/core/SkRefCnt.h', |
| 245 | '../include/core/SkRefDict.h', |
| 246 | '../include/core/SkRegion.h', |
| 247 | '../include/core/SkScalar.h', |
| 248 | '../include/core/SkScalarCompare.h', |
| 249 | '../include/core/SkScalerContext.h', |
| 250 | '../include/core/SkScan.h', |
| 251 | '../include/core/SkShader.h', |
| 252 | '../include/core/SkStream.h', |
| 253 | '../include/core/SkString.h', |
| 254 | '../include/core/SkStroke.h', |
| 255 | '../include/core/SkTDArray.h', |
| 256 | '../include/core/SkTDStack.h', |
| 257 | '../include/core/SkTDict.h', |
| 258 | '../include/core/SkTRegistry.h', |
| 259 | '../include/core/SkTScopedPtr.h', |
| 260 | '../include/core/SkTSearch.h', |
| 261 | '../include/core/SkTemplates.h', |
| 262 | '../include/core/SkThread.h', |
| 263 | '../include/core/SkThread_platform.h', |
| 264 | '../include/core/SkTime.h', |
| 265 | '../include/core/SkTypeface.h', |
| 266 | '../include/core/SkTypes.h', |
| 267 | '../include/core/SkUnPreMultiply.h', |
| 268 | '../include/core/SkUnitMapper.h', |
| 269 | '../include/core/SkUtils.h', |
| 270 | '../include/core/SkWriter32.h', |
| 271 | '../include/core/SkXfermode.h', |
| 272 | ], |
| 273 | 'include_dirs': [ |
| 274 | '../include/config', |
| 275 | '../include/core', |
| 276 | '../include/ports', |
| 277 | '../include/xml', |
| 278 | '../src/core', |
| 279 | ], |
| 280 | 'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800], |
| 281 | 'conditions': [ |
| 282 | [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { |
| 283 | 'cflags': [ |
| 284 | '-Wno-unused', |
| 285 | '-Wno-unused-function', |
| 286 | ], |
| 287 | 'sources': [ |
| 288 | '../include/core/SkMMapStream.h', |
| 289 | '../src/core/SkMMapStream.cpp', |
| 290 | '../src/core/SkBlitter_ARGB32_Subpixel.cpp', |
| 291 | '../src/core/SkFontHost.cpp', |
| 292 | '../src/ports/SkThread_pthread.cpp', |
| 293 | '../src/ports/SkTime_Unix.cpp', |
| 294 | '../src/ports/SkFontHost_FreeType_Subpixel.cpp', |
| 295 | '../src/ports/SkFontHost_FreeType.cpp', |
| 296 | '../src/ports/SkFontHost_gamma_none.cpp', |
| 297 | '../src/ports/SkFontHost_linux.cpp', |
| 298 | ], |
| 299 | 'link_settings': { |
| 300 | 'libraries': [ |
| 301 | '-lfreetype', |
| 302 | ], |
bsalomon@google.com | 9182610 | 2011-03-21 19:51:57 +0000 | [diff] [blame^] | 303 | }, |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 304 | }], |
| 305 | [ 'OS == "mac"', { |
| 306 | 'include_dirs': [ |
| 307 | '../include/utils/mac', |
| 308 | ], |
| 309 | 'sources': [ |
| 310 | '../include/core/SkMMapStream.h', |
| 311 | '../include/utils/mac/SkCGUtils.h', |
| 312 | |
| 313 | '../src/core/SkMMapStream.cpp', |
| 314 | '../src/ports/SkFontHost_mac_coretext.cpp', |
| 315 | |
| 316 | '../src/ports/SkThread_pthread.cpp', |
| 317 | '../src/ports/SkTime_Unix.cpp', |
| 318 | |
| 319 | '../src/utils/mac/SkCreateCGImageRef.cpp', |
| 320 | ], |
| 321 | }], |
| 322 | [ 'OS == "win"', { |
| 323 | 'include_dirs': [ |
| 324 | 'config/win', |
| 325 | ], |
| 326 | 'sources': [ |
| 327 | '../src/ports/SkFontHost_win.cpp', |
| 328 | '../src/ports/SkThread_win.cpp', |
| 329 | ], |
| 330 | },], |
| 331 | ], |
| 332 | 'direct_dependent_settings': { |
| 333 | 'include_dirs': [ |
| 334 | 'config', |
| 335 | '../include/config', |
| 336 | '../include/core', |
| 337 | 'ext', |
| 338 | ], |
| 339 | }, |
| 340 | 'dependencies': [ |
| 341 | 'skia_opts' |
| 342 | ], |
| 343 | }, |
| 344 | |
| 345 | # Due to an unfortunate intersection of lameness between gcc and gyp, |
| 346 | # we have to build the *_SSE2.cpp files in a separate target. The |
| 347 | # gcc lameness is that, in order to compile SSE2 intrinsics code, it |
| 348 | # must be passed the -msse2 flag. However, with this flag, it may |
| 349 | # emit SSE2 instructions even for scalar code, such as the CPUID |
| 350 | # test used to test for the presence of SSE2. So that, and all other |
| 351 | # code must be compiled *without* -msse2. The gyp lameness is that it |
| 352 | # does not allow file-specific CFLAGS, so we must create this extra |
| 353 | # target for those files to be compiled with -msse2. |
| 354 | # |
| 355 | # This is actually only a problem on 32-bit Linux (all Intel Macs have |
| 356 | # SSE2, Linux x86_64 has SSE2 by definition, and MSC will happily emit |
| 357 | # SSE2 from instrinsics, while generating plain ol' 386 for everything |
| 358 | # else). However, to keep the .gyp file simple and avoid platform-specific |
| 359 | # build breakage, we do this on all platforms. |
| 360 | |
| 361 | # For about the same reason, we need to compile the ARM opts files |
| 362 | # separately as well. |
| 363 | { |
| 364 | 'target_name': 'skia_opts', |
| 365 | 'type': 'static_library', |
| 366 | 'include_dirs': [ |
| 367 | '../include/config', |
| 368 | '../include/core', |
| 369 | '../src/core', |
| 370 | ], |
| 371 | 'conditions': [ |
| 372 | [ '(OS == "linux" or OS == "freebsd" or OS == "openbsd")', { |
| 373 | 'cflags': [ |
| 374 | '-msse2', |
| 375 | ], |
| 376 | }], |
| 377 | ], |
| 378 | 'sources': [ |
| 379 | '../src/opts/SkBitmapProcState_opts_SSE2.cpp', |
| 380 | '../src/opts/SkBlitRow_opts_SSE2.cpp', |
| 381 | '../src/opts/SkUtils_opts_SSE2.cpp', |
| 382 | ], |
| 383 | }, |
| 384 | { |
| 385 | 'target_name': 'effects', |
| 386 | 'type': 'static_library', |
| 387 | 'include_dirs': [ |
| 388 | '../include/config', |
| 389 | '../include/core', |
| 390 | '../include/effects', |
| 391 | ], |
| 392 | 'sources': [ |
| 393 | '../include/effects/Sk1DPathEffect.h', |
| 394 | '../include/effects/Sk2DPathEffect.h', |
| 395 | '../include/effects/SkAvoidXfermode.h', |
| 396 | '../include/effects/SkBlurDrawLooper.h', |
| 397 | '../include/effects/SkBlurMaskFilter.h', |
| 398 | '../include/effects/SkColorMatrix.h', |
| 399 | '../include/effects/SkColorMatrixFilter.h', |
| 400 | '../include/effects/SkCornerPathEffect.h', |
| 401 | '../include/effects/SkDashPathEffect.h', |
| 402 | '../include/effects/SkDiscretePathEffect.h', |
| 403 | '../include/effects/SkDrawExtraPathEffect.h', |
| 404 | '../include/effects/SkEmbossMaskFilter.h', |
| 405 | '../include/effects/SkGradientShader.h', |
| 406 | '../include/effects/SkGroupShape.h', |
| 407 | '../include/effects/SkKernel33MaskFilter.h', |
| 408 | '../include/effects/SkLayerDrawLooper.h', |
| 409 | '../include/effects/SkLayerRasterizer.h', |
| 410 | '../include/effects/SkPaintFlagsDrawFilter.h', |
| 411 | '../include/effects/SkPixelXorXfermode.h', |
| 412 | '../include/effects/SkPorterDuff.h', |
| 413 | '../include/effects/SkRectShape.h', |
| 414 | '../include/effects/SkTableMaskFilter.h', |
| 415 | '../include/effects/SkTransparentShader.h', |
| 416 | |
| 417 | '../src/effects/Sk1DPathEffect.cpp', |
| 418 | '../src/effects/Sk2DPathEffect.cpp', |
| 419 | '../src/effects/SkAvoidXfermode.cpp', |
| 420 | '../src/effects/SkBitmapCache.cpp', |
| 421 | '../src/effects/SkBitmapCache.h', |
| 422 | '../src/effects/SkBlurDrawLooper.cpp', |
| 423 | '../src/effects/SkBlurMask.cpp', |
| 424 | '../src/effects/SkBlurMask.h', |
| 425 | '../src/effects/SkBlurMaskFilter.cpp', |
| 426 | '../src/effects/SkColorFilters.cpp', |
| 427 | '../src/effects/SkColorMatrixFilter.cpp', |
| 428 | '../src/effects/SkCornerPathEffect.cpp', |
| 429 | '../src/effects/SkDashPathEffect.cpp', |
| 430 | '../src/effects/SkDiscretePathEffect.cpp', |
| 431 | '../src/effects/SkEmbossMask.cpp', |
| 432 | '../src/effects/SkEmbossMask.h', |
| 433 | '../src/effects/SkEmbossMask_Table.h', |
| 434 | '../src/effects/SkEmbossMaskFilter.cpp', |
| 435 | '../src/effects/SkGradientShader.cpp', |
| 436 | '../src/effects/SkGroupShape.cpp', |
| 437 | '../src/effects/SkKernel33MaskFilter.cpp', |
| 438 | '../src/effects/SkLayerDrawLooper.cpp', |
| 439 | '../src/effects/SkLayerRasterizer.cpp', |
| 440 | '../src/effects/SkPaintFlagsDrawFilter.cpp', |
| 441 | '../src/effects/SkPixelXorXfermode.cpp', |
| 442 | '../src/effects/SkPorterDuff.cpp', |
| 443 | '../src/effects/SkRadialGradient_Table.h', |
| 444 | '../src/effects/SkRectShape.cpp', |
| 445 | '../src/effects/SkTableMaskFilter.cpp', |
| 446 | '../src/effects/SkTransparentShader.cpp', |
| 447 | ], |
| 448 | 'direct_dependent_settings': { |
| 449 | 'include_dirs': [ |
| 450 | '../include/effects', |
| 451 | ], |
| 452 | }, |
| 453 | }, |
| 454 | { |
| 455 | 'target_name': 'images', |
| 456 | 'type': 'static_library', |
| 457 | 'include_dirs': [ |
| 458 | '../include/config', |
| 459 | '../include/core', |
| 460 | '../include/images', |
| 461 | ], |
| 462 | 'sources': [ |
| 463 | '../include/images/SkFlipPixelRef.h', |
| 464 | '../include/images/SkImageDecoder.h', |
| 465 | '../include/images/SkImageEncoder.h', |
| 466 | '../include/images/SkImageRef.h', |
| 467 | '../include/images/SkImageRef_GlobalPool.h', |
| 468 | '../include/images/SkJpegUtility.h', |
| 469 | '../include/images/SkMovie.h', |
| 470 | '../include/images/SkPageFlipper.h', |
| 471 | |
| 472 | '../src/images/bmpdecoderhelper.cpp', |
| 473 | '../src/images/bmpdecoderhelper.h', |
| 474 | '../src/images/SkBitmap_RLEPixels.h', |
| 475 | '../src/images/SkCreateRLEPixelRef.cpp', |
| 476 | '../src/images/SkFDStream.cpp', |
| 477 | '../src/images/SkFlipPixelRef.cpp', |
| 478 | '../src/images/SkImageDecoder.cpp', |
| 479 | '../src/images/SkImageDecoder_Factory.cpp', |
| 480 | '../src/images/SkImageDecoder_libbmp.cpp', |
| 481 | '../src/images/SkImageDecoder_libgif.cpp', |
| 482 | '../src/images/SkImageDecoder_libico.cpp', |
| 483 | '../src/images/SkImageDecoder_libjpeg.cpp', |
| 484 | '../src/images/SkImageDecoder_libpng.cpp', |
| 485 | '../src/images/SkImageDecoder_libpvjpeg.c', |
| 486 | '../src/images/SkImageDecoder_wbmp.cpp', |
| 487 | '../src/images/SkImageEncoder.cpp', |
| 488 | '../src/images/SkImageEncoder_Factory.cpp', |
| 489 | '../src/images/SkImageRef.cpp', |
| 490 | '../src/images/SkImageRefPool.cpp', |
| 491 | '../src/images/SkImageRefPool.h', |
| 492 | '../src/images/SkImageRef_GlobalPool.cpp', |
| 493 | '../src/images/SkJpegUtility.cpp', |
| 494 | '../src/images/SkMovie.cpp', |
| 495 | '../src/images/SkMovie_gif.cpp', |
| 496 | '../src/images/SkPageFlipper.cpp', |
| 497 | '../src/images/SkScaledBitmapSampler.cpp', |
| 498 | '../src/images/SkScaledBitmapSampler.h', |
| 499 | ], |
| 500 | 'conditions': [ |
| 501 | [ 'OS == "win"', { |
| 502 | 'sources!': [ |
| 503 | '../include/images/SkJpegUtility.h', |
| 504 | |
| 505 | '../src/images/SkFDStream.cpp', |
| 506 | '../src/images/SkImageDecoder_libjpeg.cpp', |
| 507 | '../src/images/SkImageDecoder_libpng.cpp', |
| 508 | '../src/images/SkImageDecoder_libpvjpeg.c', |
| 509 | '../src/images/SkJpegUtility.cpp', |
| 510 | '../src/images/SkMovie_gif.cpp', |
| 511 | ], |
| 512 | },], |
| 513 | [ 'OS == "mac"', { |
| 514 | 'sources!': [ |
| 515 | '../include/images/SkJpegUtility.h', |
| 516 | |
| 517 | '../src/images/SkImageDecoder_libgif.cpp', |
| 518 | '../src/images/SkImageDecoder_libjpeg.cpp', |
| 519 | '../src/images/SkImageDecoder_libpng.cpp', |
| 520 | '../src/images/SkImageDecoder_libpvjpeg.c', |
| 521 | '../src/images/SkJpegUtility.cpp', |
| 522 | '../src/images/SkMovie_gif.cpp', |
| 523 | ], |
| 524 | },], |
| 525 | [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { |
| 526 | 'sources!': [ |
| 527 | '../include/images/SkJpegUtility.h', |
| 528 | |
| 529 | '../src/images/SkImageDecoder_libjpeg.cpp', |
| 530 | '../src/images/SkImageDecoder_libgif.cpp', |
| 531 | '../src/images/SkImageDecoder_libpvjpeg.c', |
| 532 | '../src/images/SkJpegUtility.cpp', |
| 533 | '../src/images/SkMovie_gif.cpp', |
| 534 | ], |
| 535 | }], |
| 536 | |
| 537 | ], |
| 538 | 'direct_dependent_settings': { |
| 539 | 'include_dirs': [ |
| 540 | '../include/images', |
| 541 | ], |
| 542 | }, |
| 543 | }, |
| 544 | { |
| 545 | 'target_name': 'xml', |
| 546 | 'type': 'static_library', |
| 547 | 'include_dirs': [ |
| 548 | '../include/config', |
| 549 | '../include/core', |
| 550 | '../include/xml', |
| 551 | '../include/utils', |
| 552 | ], |
| 553 | 'sources': [ |
| 554 | '../include/xml/SkBML_WXMLParser.h', |
| 555 | '../include/xml/SkBML_XMLParser.h', |
| 556 | '../include/xml/SkDOM.h', |
| 557 | '../include/xml/SkJS.h', |
| 558 | '../include/xml/SkXMLParser.h', |
| 559 | '../include/xml/SkXMLWriter.h', |
| 560 | |
| 561 | '../src/xml/SkBML_Verbs.h', |
| 562 | '../src/xml/SkBML_XMLParser.cpp', |
| 563 | '../src/xml/SkDOM.cpp', |
| 564 | '../src/xml/SkJS.cpp', |
| 565 | '../src/xml/SkJSDisplayable.cpp', |
| 566 | '../src/xml/SkXMLParser.cpp', |
| 567 | '../src/xml/SkXMLPullParser.cpp', |
| 568 | '../src/xml/SkXMLWriter.cpp', |
| 569 | ], |
| 570 | 'sources!': [ |
| 571 | '../src/xml/SkXMLPullParser.cpp', #if 0 around class decl in header |
| 572 | ], |
| 573 | 'conditions': [ |
| 574 | [ 'OS == "win" or OS == "mac" or OS == "linux" or OS == "openbsd" or OS == "solaris"', { |
| 575 | 'sources!': [ |
| 576 | # no jsapi.h by default on system |
| 577 | '../include/xml/SkJS.h', |
| 578 | '../src/xml/SkJS.cpp', |
| 579 | '../src/xml/SkJSDisplayable.cpp', |
| 580 | ], |
| 581 | },], |
| 582 | ], |
| 583 | 'direct_dependent_settings': { |
| 584 | 'include_dirs': [ |
| 585 | '../include/xml', |
| 586 | ], |
| 587 | }, |
| 588 | }, |
| 589 | { |
| 590 | 'target_name': 'utils', |
| 591 | 'type': 'static_library', |
| 592 | 'include_dirs': [ |
| 593 | '../include/config', |
| 594 | '../include/core', |
| 595 | '../include/utils', |
| 596 | '../include/views', |
| 597 | '../include/effects', |
| 598 | '../include/xml', |
| 599 | ], |
| 600 | 'sources': [ |
| 601 | '../include/utils/SkBoundaryPatch.h', |
| 602 | '../include/utils/SkCamera.h', |
| 603 | '../include/utils/SkCubicInterval.h', |
| 604 | '../include/utils/SkCullPoints.h', |
| 605 | '../include/utils/SkDumpCanvas.h', |
| 606 | '../include/utils/SkEGLContext.h', |
| 607 | '../include/utils/SkGLCanvas.h', |
| 608 | '../include/utils/SkInterpolator.h', |
| 609 | '../include/utils/SkLayer.h', |
| 610 | '../include/utils/SkMeshUtils.h', |
| 611 | '../include/utils/SkNinePatch.h', |
| 612 | '../include/utils/SkNWayCanvas.h', |
| 613 | '../include/utils/SkParse.h', |
| 614 | '../include/utils/SkParsePaint.h', |
| 615 | '../include/utils/SkParsePath.h', |
| 616 | '../include/utils/SkProxyCanvas.h', |
| 617 | '../include/utils/SkSfntUtils.h', |
| 618 | '../include/utils/SkTextBox.h', |
| 619 | '../include/utils/SkUnitMappers.h', |
| 620 | |
| 621 | '../src/utils/SkBoundaryPatch.cpp', |
| 622 | '../src/utils/SkCamera.cpp', |
| 623 | '../src/utils/SkColorMatrix.cpp', |
| 624 | '../src/utils/SkCubicInterval.cpp', |
| 625 | '../src/utils/SkCullPoints.cpp', |
| 626 | '../src/utils/SkDumpCanvas.cpp', |
| 627 | '../src/utils/SkEGLContext_none.cpp', |
| 628 | '../src/utils/SkInterpolator.cpp', |
| 629 | '../src/utils/SkLayer.cpp', |
| 630 | '../src/utils/SkMeshUtils.cpp', |
| 631 | '../src/utils/SkNinePatch.cpp', |
| 632 | '../src/utils/SkNWayCanvas.cpp', |
| 633 | '../src/utils/SkOSFile.cpp', |
| 634 | '../src/utils/SkParse.cpp', |
| 635 | '../src/utils/SkParseColor.cpp', |
| 636 | '../src/utils/SkParsePath.cpp', |
| 637 | '../src/utils/SkProxyCanvas.cpp', |
| 638 | '../src/utils/SkSfntUtils.cpp', |
| 639 | '../src/utils/SkUnitMappers.cpp', |
| 640 | ], |
| 641 | 'conditions': [ |
| 642 | [ 'OS == "mac"', { |
| 643 | 'sources': [ |
| 644 | '../include/utils/SkCGUtils.h', |
| 645 | '../src/utils/mac/SkCreateCGImageRef.cpp', |
| 646 | '../src/utils/mac/SkEGLContext_mac.cpp', |
| 647 | ], |
| 648 | },], |
| 649 | ], |
| 650 | 'direct_dependent_settings': { |
| 651 | 'include_dirs': [ |
| 652 | '../include/utils', |
| 653 | ], |
| 654 | }, |
| 655 | }, |
| 656 | { |
| 657 | 'target_name': 'views', |
| 658 | 'type': 'static_library', |
| 659 | 'include_dirs': [ |
| 660 | '../include/config', |
| 661 | '../include/core', |
| 662 | '../include/views', |
| 663 | '../include/xml', |
| 664 | '../include/utils', |
| 665 | '../include/images', |
| 666 | '../include/animator', |
| 667 | '../include/effects', |
| 668 | ], |
| 669 | 'sources': [ |
| 670 | '../include/views/SkApplication.h', |
| 671 | '../include/views/SkBGViewArtist.h', |
| 672 | '../include/views/SkBorderView.h', |
| 673 | '../include/views/SkEvent.h', |
| 674 | '../include/views/SkEventSink.h', |
| 675 | '../include/views/SkImageView.h', |
| 676 | '../include/views/SkKey.h', |
| 677 | '../include/views/SkMetaData.h', |
| 678 | '../include/views/SkOSMenu.h', |
| 679 | '../include/views/SkOSWindow_Mac.h', |
| 680 | '../include/views/SkOSWindow_SDL.h', |
| 681 | '../include/views/SkOSWindow_Unix.h', |
| 682 | '../include/views/SkOSWindow_Win.h', |
| 683 | #'../include/views/SkOSWindow_wxwidgets.h', |
| 684 | '../include/views/SkProgressBarView.h', |
| 685 | '../include/views/SkScrollBarView.h', |
| 686 | '../include/views/SkStackViewLayout.h', |
| 687 | '../include/views/SkSystemEventTypes.h', |
| 688 | '../include/views/SkTouchGesture.h', |
| 689 | '../include/views/SkView.h', |
| 690 | '../include/views/SkViewInflate.h', |
| 691 | '../include/views/SkWidget.h', |
| 692 | '../include/views/SkWidgetViews.h', |
| 693 | '../include/views/SkWindow.h', |
| 694 | |
| 695 | '../src/views/SkBGViewArtist.cpp', |
| 696 | '../src/views/SkBorderView.cpp', |
| 697 | '../src/views/SkEvent.cpp', |
| 698 | '../src/views/SkEventSink.cpp', |
| 699 | '../src/views/SkImageView.cpp', |
| 700 | '../src/views/SkListView.cpp', |
| 701 | '../src/views/SkListWidget.cpp', |
| 702 | '../src/views/SkMetaData.cpp', |
| 703 | '../src/views/SkOSMenu.cpp', |
| 704 | '../src/views/SkParsePaint.cpp', |
| 705 | '../src/views/SkProgressBarView.cpp', |
| 706 | '../src/views/SkProgressView.cpp', |
| 707 | '../src/views/SkScrollBarView.cpp', |
| 708 | '../src/views/SkStackViewLayout.cpp', |
| 709 | '../src/views/SkStaticTextView.cpp', |
| 710 | '../src/views/SkTagList.cpp', |
| 711 | '../src/views/SkTagList.h', |
| 712 | '../src/views/SkTextBox.cpp', |
| 713 | '../src/views/SkTouchGesture.cpp', |
| 714 | '../src/views/SkView.cpp', |
| 715 | '../src/views/SkViewInflate.cpp', |
| 716 | '../src/views/SkViewPriv.cpp', |
| 717 | '../src/views/SkViewPriv.h', |
| 718 | '../src/views/SkWidget.cpp', |
| 719 | '../src/views/SkWidgets.cpp', |
| 720 | '../src/views/SkWidgetViews.cpp', |
| 721 | '../src/views/SkWindow.cpp', |
| 722 | ], |
| 723 | 'sources!' : [ |
| 724 | '../src/views/SkListView.cpp', #depends on missing SkListSource implementation |
| 725 | '../src/views/SkListWidget.cpp', #depends on missing SkListSource implementation |
| 726 | ], |
| 727 | 'conditions': [ |
| 728 | [ 'OS == "win"', { |
| 729 | 'sources': [ |
| 730 | '../src/utils/win/SkOSWindow_Win.cpp', |
| 731 | '../vs/SampleApp/skia_win.cpp', |
| 732 | ], |
| 733 | },], |
| 734 | [ 'OS == "mac"', { |
| 735 | 'sources': [ |
| 736 | '../include/utils/SkCGUtils.h', |
| 737 | #'../src/utils/mac/SkBitmap_Mac.cpp', |
| 738 | '../src/utils/mac/SkCreateCGImageRef.cpp', |
| 739 | '../src/utils/mac/SkEGLContext_mac.cpp', |
| 740 | '../src/utils/mac/skia_mac.cpp', |
| 741 | '../src/utils/mac/SkOSWindow_Mac.cpp', |
| 742 | ], |
| 743 | 'link_settings': { |
| 744 | 'libraries': [ |
| 745 | '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', |
| 746 | '$(SDKROOT)/System/Library/Frameworks/AGL.framework', |
| 747 | ], |
| 748 | }, |
| 749 | },], |
| 750 | [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { |
| 751 | 'include_dirs' : [ |
| 752 | '../include/utils/unix', |
| 753 | ], |
| 754 | 'sources': [ |
| 755 | '../src/utils/unix/keysym2ucs.c', |
| 756 | '../src/utils/unix/SkOSWindow_Unix.cpp', |
| 757 | '../unix_test_app/main.cpp', |
| 758 | ], |
| 759 | }], |
| 760 | ], |
| 761 | 'direct_dependent_settings': { |
| 762 | 'include_dirs': [ |
| 763 | '../include/views', |
| 764 | ], |
| 765 | }, |
| 766 | }, |
| 767 | { |
| 768 | 'target_name': 'skgr', |
| 769 | 'type': 'static_library', |
| 770 | 'include_dirs': [ |
| 771 | '../include/config', |
| 772 | '../include/core', |
| 773 | '../src/core', |
| 774 | '../include/gpu', |
| 775 | '../gpu/include', |
| 776 | ], |
| 777 | 'sources': [ |
| 778 | '../include/gpu/SkGpuCanvas.h', |
| 779 | '../include/gpu/SkGpuDevice.h', |
| 780 | '../include/gpu/SkGpuDeviceFactory.h', |
| 781 | '../include/gpu/SkGr.h', |
| 782 | '../include/gpu/SkGrTexturePixelRef.h', |
| 783 | |
| 784 | '../src/gpu/GrPrintf_skia.cpp', |
| 785 | '../src/gpu/SkGpuCanvas.cpp', |
| 786 | '../src/gpu/SkGpuDevice.cpp', |
| 787 | '../src/gpu/SkGr.cpp', |
| 788 | '../src/gpu/SkGrFontScaler.cpp', |
| 789 | '../src/gpu/SkGrTexturePixelRef.cpp', |
| 790 | ], |
| 791 | 'conditions': [ |
| 792 | [ 'OS == "linux"', { |
| 793 | 'defines': [ |
| 794 | 'GR_LINUX_BUILD=1', |
| 795 | ], |
| 796 | }], |
| 797 | [ 'OS == "mac"', { |
| 798 | 'defines': [ |
| 799 | 'GR_MAC_BUILD=1', |
| 800 | ], |
| 801 | }], |
| 802 | [ 'OS == "win"', { |
| 803 | 'defines': [ |
| 804 | 'GR_WIN32_BUILD=1', |
| 805 | ], |
| 806 | },], |
| 807 | ], |
| 808 | 'direct_dependent_settings': { |
| 809 | 'conditions': [ |
| 810 | [ 'OS == "linux"', { |
| 811 | 'defines': [ |
| 812 | 'GR_LINUX_BUILD=1', |
| 813 | ], |
| 814 | }], |
| 815 | [ 'OS == "mac"', { |
| 816 | 'defines': [ |
| 817 | 'GR_MAC_BUILD=1', |
| 818 | ], |
| 819 | }], |
| 820 | [ 'OS == "win"', { |
| 821 | 'defines': [ |
| 822 | 'GR_WIN32_BUILD=1', |
| 823 | ], |
| 824 | },], |
| 825 | ], |
| 826 | 'include_dirs': [ |
| 827 | '../include/gpu', |
| 828 | ], |
| 829 | }, |
| 830 | }, |
| 831 | { |
| 832 | 'target_name': 'gr', |
| 833 | 'type': 'static_library', |
| 834 | 'include_dirs': [ |
| 835 | '../gpu/include', |
| 836 | ], |
| 837 | 'sources': [ |
| 838 | '../gpu/include/GrAllocator.h', |
| 839 | '../gpu/include/GrAllocPool.h', |
| 840 | '../gpu/include/GrAtlas.h', |
| 841 | '../gpu/include/GrClip.h', |
| 842 | '../gpu/include/GrClipIterator.h', |
| 843 | '../gpu/include/GrColor.h', |
| 844 | '../gpu/include/GrConfig.h', |
| 845 | '../gpu/include/GrContext.h', |
| 846 | '../gpu/include/GrContext_impl.h', |
| 847 | '../gpu/include/GrDrawTarget.h', |
| 848 | '../gpu/include/GrFontScaler.h', |
| 849 | '../gpu/include/GrGeometryBuffer.h', |
| 850 | '../gpu/include/GrGLConfig.h', |
| 851 | '../gpu/include/GrGLConfig_chrome.h', |
| 852 | '../gpu/include/GrGLIndexBuffer.h', |
| 853 | '../gpu/include/GrGLInterface.h', |
| 854 | '../gpu/include/GrGLIRect.h', |
| 855 | '../gpu/include/GrGLPlatformIncludes.h', |
| 856 | '../gpu/include/GrGLTexture.h', |
| 857 | '../gpu/include/GrGLVertexBuffer.h', |
| 858 | '../gpu/include/GrGlyph.h', |
| 859 | '../gpu/include/GrGpu.h', |
| 860 | '../gpu/include/GrGpuVertex.h', |
| 861 | '../gpu/include/GrIndexBuffer.h', |
| 862 | '../gpu/include/GrInOrderDrawBuffer.h', |
| 863 | '../gpu/include/GrInstanceCounter.h', |
| 864 | '../gpu/include/GrIPoint.h', |
| 865 | '../gpu/include/GrKey.h', |
| 866 | '../gpu/include/GrMatrix.h', |
| 867 | '../gpu/include/GrMemory.h', |
| 868 | '../gpu/include/GrMesh.h', |
| 869 | '../gpu/include/GrNoncopyable.h', |
| 870 | '../gpu/include/GrPaint.h', |
| 871 | '../gpu/include/GrPath.h', |
| 872 | '../gpu/include/GrPathIter.h', |
| 873 | '../gpu/include/GrPathSink.h', |
| 874 | '../gpu/include/GrPlotMgr.h', |
| 875 | '../gpu/include/GrPoint.h', |
| 876 | '../gpu/include/GrRandom.h', |
| 877 | '../gpu/include/GrRect.h', |
| 878 | '../gpu/include/GrRectanizer.h', |
| 879 | '../gpu/include/GrRefCnt.h', |
| 880 | '../gpu/include/GrSamplerState.h', |
| 881 | '../gpu/include/GrScalar.h', |
| 882 | '../gpu/include/GrStencil.h', |
| 883 | '../gpu/include/GrStopwatch.h', |
| 884 | '../gpu/include/GrStringBuilder.h', |
| 885 | '../gpu/include/GrTArray.h', |
| 886 | '../gpu/include/GrTBSearch.h', |
| 887 | '../gpu/include/GrTDArray.h', |
| 888 | '../gpu/include/GrTextContext.h', |
| 889 | '../gpu/include/GrTextStrike.h', |
| 890 | '../gpu/include/GrTexture.h', |
| 891 | '../gpu/include/GrTextureCache.h', |
| 892 | '../gpu/include/GrTHashCache.h', |
| 893 | '../gpu/include/GrTLList.h', |
| 894 | '../gpu/include/GrTouchGesture.h', |
| 895 | '../gpu/include/GrTypes.h', |
| 896 | '../gpu/include/GrUserConfig.h', |
| 897 | '../gpu/include/GrVertexBuffer.h', |
| 898 | |
| 899 | '../gpu/src/GrAllocPool.cpp', |
| 900 | '../gpu/src/GrAtlas.cpp', |
| 901 | '../gpu/src/GrBufferAllocPool.cpp', |
| 902 | '../gpu/src/GrBufferAllocPool.h', |
| 903 | '../gpu/src/GrClip.cpp', |
| 904 | '../gpu/src/GrContext.cpp', |
| 905 | '../gpu/src/GrDrawTarget.cpp', |
| 906 | '../gpu/src/GrGLIndexBuffer.cpp', |
| 907 | '../gpu/src/GrGLInterface.cpp', |
| 908 | '../gpu/src/GrGLTexture.cpp', |
| 909 | '../gpu/src/GrGLUtil.cpp', |
| 910 | '../gpu/src/GrGLVertexBuffer.cpp', |
| 911 | '../gpu/src/GrGpu.cpp', |
| 912 | '../gpu/src/GrGpuFactory.cpp', |
| 913 | '../gpu/src/GrGpuGL.cpp', |
| 914 | '../gpu/src/GrGpuGL.h', |
| 915 | '../gpu/src/GrGpuGLFixed.cpp', |
| 916 | '../gpu/src/GrGpuGLFixed.h', |
| 917 | '../gpu/src/GrGpuGLShaders2.cpp', |
| 918 | '../gpu/src/GrGpuGLShaders2.h', |
| 919 | '../gpu/src/GrInOrderDrawBuffer.cpp', |
| 920 | '../gpu/src/GrMatrix.cpp', |
| 921 | '../gpu/src/GrMemory.cpp', |
| 922 | '../gpu/src/GrPath.cpp', |
| 923 | '../gpu/src/GrPathRenderer.cpp', |
| 924 | '../gpu/src/GrPathRenderer.h', |
| 925 | '../gpu/src/GrPrintf_printf.cpp', |
| 926 | '../gpu/src/GrRectanizer.cpp', |
| 927 | '../gpu/src/GrRedBlackTree.h', |
| 928 | '../gpu/src/GrStencil.cpp', |
| 929 | '../gpu/src/GrTextContext.cpp', |
| 930 | '../gpu/src/GrTextStrike.cpp', |
| 931 | '../gpu/src/GrTextStrike_impl.h', |
| 932 | '../gpu/src/GrTextureCache.cpp', |
| 933 | '../gpu/src/gr_unittests.cpp', |
| 934 | ], |
bsalomon@google.com | 9182610 | 2011-03-21 19:51:57 +0000 | [diff] [blame^] | 935 | 'defines': [ |
| 936 | 'GR_IMPLEMENTATION=1', |
| 937 | ], |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 938 | 'conditions': [ |
| 939 | [ 'OS == "linux"', { |
| 940 | 'defines': [ |
| 941 | 'GR_LINUX_BUILD=1', |
| 942 | ], |
| 943 | 'link_settings': { |
| 944 | 'libraries': [ |
| 945 | '-lGL', |
| 946 | '-lX11', |
| 947 | ], |
bsalomon@google.com | 9182610 | 2011-03-21 19:51:57 +0000 | [diff] [blame^] | 948 | }, |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 949 | }], |
| 950 | [ 'OS == "mac"', { |
| 951 | 'defines': [ |
| 952 | 'GR_MAC_BUILD=1', |
| 953 | ], |
| 954 | 'link_settings': { |
| 955 | 'libraries': [ |
| 956 | '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |
| 957 | ], |
bsalomon@google.com | 9182610 | 2011-03-21 19:51:57 +0000 | [diff] [blame^] | 958 | }, |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 959 | }], |
| 960 | [ 'OS == "win"', { |
| 961 | 'defines': [ |
| 962 | 'GR_WIN32_BUILD=1', |
| 963 | ], |
| 964 | },], |
| 965 | ], |
| 966 | 'direct_dependent_settings': { |
| 967 | 'conditions': [ |
| 968 | [ 'OS == "linux"', { |
| 969 | 'defines': [ |
| 970 | 'GR_LINUX_BUILD=1', |
| 971 | ], |
| 972 | }], |
| 973 | [ 'OS == "mac"', { |
| 974 | 'defines': [ |
| 975 | 'GR_MAC_BUILD=1', |
| 976 | ], |
| 977 | }], |
| 978 | [ 'OS == "win"', { |
| 979 | 'defines': [ |
| 980 | 'GR_WIN32_BUILD=1', |
| 981 | ], |
| 982 | },], |
| 983 | ], |
| 984 | 'include_dirs': [ |
| 985 | '../gpu/include', |
| 986 | ], |
| 987 | }, |
| 988 | }, |
| 989 | { |
| 990 | 'target_name': 'animator', |
| 991 | 'type': 'static_library', |
| 992 | 'include_dirs': [ |
| 993 | '../include/config', |
| 994 | '../include/core', |
| 995 | '../include/effects', |
| 996 | '../include/animator', |
| 997 | '../include/views', |
| 998 | '../include/xml', |
| 999 | '../include/utils', |
| 1000 | '../include/images', |
| 1001 | ], |
| 1002 | 'sources': [ |
| 1003 | '../include/animator/SkAnimator.h', |
| 1004 | '../include/animator/SkAnimatorView.h', |
| 1005 | |
| 1006 | '../src/animator/SkAnimate.h', |
| 1007 | '../src/animator/SkAnimateActive.cpp', |
| 1008 | '../src/animator/SkAnimateActive.h', |
| 1009 | '../src/animator/SkAnimateBase.cpp', |
| 1010 | '../src/animator/SkAnimateBase.h', |
| 1011 | '../src/animator/SkAnimateField.cpp', |
| 1012 | '../src/animator/SkAnimateMaker.cpp', |
| 1013 | '../src/animator/SkAnimateMaker.h', |
| 1014 | '../src/animator/SkAnimateProperties.h', |
| 1015 | '../src/animator/SkAnimateSet.cpp', |
| 1016 | '../src/animator/SkAnimateSet.h', |
| 1017 | '../src/animator/SkAnimator.cpp', |
| 1018 | '../src/animator/SkAnimatorScript.cpp', |
| 1019 | '../src/animator/SkAnimatorScript.h', |
| 1020 | #'../src/animator/SkAnimatorScript2.cpp', fails on windows |
bsalomon@google.com | 9182610 | 2011-03-21 19:51:57 +0000 | [diff] [blame^] | 1021 | #'../src/animator/SkAnimatorScript2.h', |
bsalomon@google.com | a9681db | 2011-03-21 13:34:23 +0000 | [diff] [blame] | 1022 | '../src/animator/SkBase64.cpp', |
| 1023 | '../src/animator/SkBase64.h', |
| 1024 | '../src/animator/SkBoundable.cpp', |
| 1025 | '../src/animator/SkBoundable.h', |
| 1026 | '../src/animator/SkBuildCondensedInfo.cpp', |
| 1027 | #'../src/animator/SkCondensedDebug.cpp', fails on windows |
| 1028 | '../src/animator/SkCondensedRelease.cpp', |
| 1029 | '../src/animator/SkDisplayable.cpp', |
| 1030 | '../src/animator/SkDisplayable.h', |
| 1031 | '../src/animator/SkDisplayAdd.cpp', |
| 1032 | '../src/animator/SkDisplayAdd.h', |
| 1033 | '../src/animator/SkDisplayApply.cpp', |
| 1034 | '../src/animator/SkDisplayApply.h', |
| 1035 | '../src/animator/SkDisplayBounds.cpp', |
| 1036 | '../src/animator/SkDisplayBounds.h', |
| 1037 | '../src/animator/SkDisplayEvent.cpp', |
| 1038 | '../src/animator/SkDisplayEvent.h', |
| 1039 | '../src/animator/SkDisplayEvents.cpp', |
| 1040 | '../src/animator/SkDisplayEvents.h', |
| 1041 | '../src/animator/SkDisplayInclude.cpp', |
| 1042 | '../src/animator/SkDisplayInclude.h', |
| 1043 | '../src/animator/SkDisplayInput.cpp', |
| 1044 | '../src/animator/SkDisplayInput.h', |
| 1045 | '../src/animator/SkDisplayList.cpp', |
| 1046 | '../src/animator/SkDisplayList.h', |
| 1047 | '../src/animator/SkDisplayMath.cpp', |
| 1048 | '../src/animator/SkDisplayMath.h', |
| 1049 | '../src/animator/SkDisplayMovie.cpp', |
| 1050 | '../src/animator/SkDisplayMovie.h', |
| 1051 | '../src/animator/SkDisplayNumber.cpp', |
| 1052 | '../src/animator/SkDisplayNumber.h', |
| 1053 | '../src/animator/SkDisplayPost.cpp', |
| 1054 | '../src/animator/SkDisplayPost.h', |
| 1055 | '../src/animator/SkDisplayRandom.cpp', |
| 1056 | '../src/animator/SkDisplayRandom.h', |
| 1057 | '../src/animator/SkDisplayScreenplay.cpp', |
| 1058 | '../src/animator/SkDisplayScreenplay.h', |
| 1059 | '../src/animator/SkDisplayType.cpp', |
| 1060 | '../src/animator/SkDisplayType.h', |
| 1061 | '../src/animator/SkDisplayTypes.cpp', |
| 1062 | '../src/animator/SkDisplayTypes.h', |
| 1063 | '../src/animator/SkDisplayXMLParser.cpp', |
| 1064 | '../src/animator/SkDisplayXMLParser.h', |
| 1065 | '../src/animator/SkDraw3D.cpp', |
| 1066 | '../src/animator/SkDraw3D.h', |
| 1067 | '../src/animator/SkDrawable.cpp', |
| 1068 | '../src/animator/SkDrawable.h', |
| 1069 | '../src/animator/SkDrawBitmap.cpp', |
| 1070 | '../src/animator/SkDrawBitmap.h', |
| 1071 | '../src/animator/SkDrawBlur.cpp', |
| 1072 | '../src/animator/SkDrawBlur.h', |
| 1073 | '../src/animator/SkDrawClip.cpp', |
| 1074 | '../src/animator/SkDrawClip.h', |
| 1075 | '../src/animator/SkDrawColor.cpp', |
| 1076 | '../src/animator/SkDrawColor.h', |
| 1077 | '../src/animator/SkDrawDash.cpp', |
| 1078 | '../src/animator/SkDrawDash.h', |
| 1079 | '../src/animator/SkDrawDiscrete.cpp', |
| 1080 | '../src/animator/SkDrawDiscrete.h', |
| 1081 | '../src/animator/SkDrawEmboss.cpp', |
| 1082 | '../src/animator/SkDrawEmboss.h', |
| 1083 | '../src/animator/SkDrawExtraPathEffect.cpp', |
| 1084 | '../src/animator/SkDrawFull.cpp', |
| 1085 | '../src/animator/SkDrawFull.h', |
| 1086 | '../src/animator/SkDrawGradient.cpp', |
| 1087 | '../src/animator/SkDrawGradient.h', |
| 1088 | '../src/animator/SkDrawGroup.cpp', |
| 1089 | '../src/animator/SkDrawGroup.h', |
| 1090 | '../src/animator/SkDrawLine.cpp', |
| 1091 | '../src/animator/SkDrawLine.h', |
| 1092 | '../src/animator/SkDrawMatrix.cpp', |
| 1093 | '../src/animator/SkDrawMatrix.h', |
| 1094 | '../src/animator/SkDrawOval.cpp', |
| 1095 | '../src/animator/SkDrawOval.h', |
| 1096 | '../src/animator/SkDrawPaint.cpp', |
| 1097 | '../src/animator/SkDrawPaint.h', |
| 1098 | '../src/animator/SkDrawPath.cpp', |
| 1099 | '../src/animator/SkDrawPath.h', |
| 1100 | '../src/animator/SkDrawPoint.cpp', |
| 1101 | '../src/animator/SkDrawPoint.h', |
| 1102 | '../src/animator/SkDrawRectangle.cpp', |
| 1103 | '../src/animator/SkDrawRectangle.h', |
| 1104 | '../src/animator/SkDrawSaveLayer.cpp', |
| 1105 | '../src/animator/SkDrawSaveLayer.h', |
| 1106 | '../src/animator/SkDrawShader.cpp', |
| 1107 | '../src/animator/SkDrawShader.h', |
| 1108 | '../src/animator/SkDrawText.cpp', |
| 1109 | '../src/animator/SkDrawText.h', |
| 1110 | '../src/animator/SkDrawTextBox.cpp', |
| 1111 | '../src/animator/SkDrawTextBox.h', |
| 1112 | '../src/animator/SkDrawTo.cpp', |
| 1113 | '../src/animator/SkDrawTo.h', |
| 1114 | '../src/animator/SkDrawTransparentShader.cpp', |
| 1115 | '../src/animator/SkDrawTransparentShader.h', |
| 1116 | '../src/animator/SkDump.cpp', |
| 1117 | '../src/animator/SkDump.h', |
| 1118 | '../src/animator/SkExtras.h', |
| 1119 | '../src/animator/SkGetCondensedInfo.cpp', |
| 1120 | '../src/animator/SkHitClear.cpp', |
| 1121 | '../src/animator/SkHitClear.h', |
| 1122 | '../src/animator/SkHitTest.cpp', |
| 1123 | '../src/animator/SkHitTest.h', |
| 1124 | '../src/animator/SkIntArray.h', |
| 1125 | '../src/animator/SkMatrixParts.cpp', |
| 1126 | '../src/animator/SkMatrixParts.h', |
| 1127 | '../src/animator/SkMemberInfo.cpp', |
| 1128 | '../src/animator/SkMemberInfo.h', |
| 1129 | '../src/animator/SkOpArray.cpp', |
| 1130 | '../src/animator/SkOpArray.h', |
| 1131 | '../src/animator/SkOperand.h', |
| 1132 | '../src/animator/SkOperand2.h', |
| 1133 | '../src/animator/SkOperandInterpolator.h', |
| 1134 | '../src/animator/SkOperandIterpolator.cpp', |
| 1135 | '../src/animator/SkPaintParts.cpp', |
| 1136 | '../src/animator/SkPaintParts.h', |
| 1137 | '../src/animator/SkParseSVGPath.cpp', |
| 1138 | '../src/animator/SkPathParts.cpp', |
| 1139 | '../src/animator/SkPathParts.h', |
| 1140 | '../src/animator/SkPostParts.cpp', |
| 1141 | '../src/animator/SkPostParts.h', |
| 1142 | '../src/animator/SkScript.cpp', |
| 1143 | '../src/animator/SkScript.h', |
| 1144 | '../src/animator/SkScript2.h', |
| 1145 | '../src/animator/SkScriptCallBack.h', |
| 1146 | '../src/animator/SkScriptDecompile.cpp', |
| 1147 | '../src/animator/SkScriptRuntime.cpp', |
| 1148 | '../src/animator/SkScriptRuntime.h', |
| 1149 | '../src/animator/SkScriptTokenizer.cpp', |
| 1150 | '../src/animator/SkSnapshot.cpp', |
| 1151 | '../src/animator/SkSnapshot.h', |
| 1152 | '../src/animator/SkTDArray_Experimental.h', |
| 1153 | '../src/animator/SkTextOnPath.cpp', |
| 1154 | '../src/animator/SkTextOnPath.h', |
| 1155 | '../src/animator/SkTextToPath.cpp', |
| 1156 | '../src/animator/SkTextToPath.h', |
| 1157 | '../src/animator/SkTime.cpp', |
| 1158 | '../src/animator/SkTypedArray.cpp', |
| 1159 | '../src/animator/SkTypedArray.h', |
| 1160 | '../src/animator/SkXMLAnimatorWriter.cpp', |
| 1161 | '../src/animator/SkXMLAnimatorWriter.h', |
| 1162 | ], |
| 1163 | 'direct_dependent_settings': { |
| 1164 | 'include_dirs': [ |
| 1165 | '../include/animator', |
| 1166 | ], |
| 1167 | }, |
| 1168 | }, |
| 1169 | |
| 1170 | { |
| 1171 | 'target_name': 'svg', |
| 1172 | 'type': 'static_library', |
| 1173 | 'include_dirs': [ |
| 1174 | '../include/config', |
| 1175 | '../include/core', |
| 1176 | '../include/xml', |
| 1177 | '../include/utils', |
| 1178 | '../include/svg', |
| 1179 | ], |
| 1180 | 'sources': [ |
| 1181 | '../include/svg/SkSVGAttribute.h', |
| 1182 | '../include/svg/SkSVGBase.h', |
| 1183 | '../include/svg/SkSVGPaintState.h', |
| 1184 | '../include/svg/SkSVGParser.h', |
| 1185 | '../include/svg/SkSVGTypes.h', |
| 1186 | |
| 1187 | '../src/svg/SkSVGCircle.cpp', |
| 1188 | '../src/svg/SkSVGCircle.h', |
| 1189 | '../src/svg/SkSVGClipPath.cpp', |
| 1190 | '../src/svg/SkSVGClipPath.h', |
| 1191 | '../src/svg/SkSVGDefs.cpp', |
| 1192 | '../src/svg/SkSVGDefs.h', |
| 1193 | '../src/svg/SkSVGElements.cpp', |
| 1194 | '../src/svg/SkSVGElements.h', |
| 1195 | '../src/svg/SkSVGEllipse.cpp', |
| 1196 | '../src/svg/SkSVGEllipse.h', |
| 1197 | '../src/svg/SkSVGFeColorMatrix.cpp', |
| 1198 | '../src/svg/SkSVGFeColorMatrix.h', |
| 1199 | '../src/svg/SkSVGFilter.cpp', |
| 1200 | '../src/svg/SkSVGFilter.h', |
| 1201 | '../src/svg/SkSVGG.cpp', |
| 1202 | '../src/svg/SkSVGG.h', |
| 1203 | '../src/svg/SkSVGGradient.cpp', |
| 1204 | '../src/svg/SkSVGGradient.h', |
| 1205 | '../src/svg/SkSVGGroup.cpp', |
| 1206 | '../src/svg/SkSVGGroup.h', |
| 1207 | '../src/svg/SkSVGImage.cpp', |
| 1208 | '../src/svg/SkSVGImage.h', |
| 1209 | '../src/svg/SkSVGLine.cpp', |
| 1210 | '../src/svg/SkSVGLine.h', |
| 1211 | '../src/svg/SkSVGLinearGradient.cpp', |
| 1212 | '../src/svg/SkSVGLinearGradient.h', |
| 1213 | '../src/svg/SkSVGMask.cpp', |
| 1214 | '../src/svg/SkSVGMask.h', |
| 1215 | '../src/svg/SkSVGMetadata.cpp', |
| 1216 | '../src/svg/SkSVGMetadata.h', |
| 1217 | '../src/svg/SkSVGPaintState.cpp', |
| 1218 | '../src/svg/SkSVGParser.cpp', |
| 1219 | '../src/svg/SkSVGPath.cpp', |
| 1220 | '../src/svg/SkSVGPath.h', |
| 1221 | '../src/svg/SkSVGPolygon.cpp', |
| 1222 | '../src/svg/SkSVGPolygon.h', |
| 1223 | '../src/svg/SkSVGPolyline.cpp', |
| 1224 | '../src/svg/SkSVGPolyline.h', |
| 1225 | '../src/svg/SkSVGRadialGradient.cpp', |
| 1226 | '../src/svg/SkSVGRadialGradient.h', |
| 1227 | '../src/svg/SkSVGRect.cpp', |
| 1228 | '../src/svg/SkSVGRect.h', |
| 1229 | '../src/svg/SkSVGStop.cpp', |
| 1230 | '../src/svg/SkSVGStop.h', |
| 1231 | '../src/svg/SkSVGSVG.cpp', |
| 1232 | '../src/svg/SkSVGSVG.h', |
| 1233 | '../src/svg/SkSVGSymbol.cpp', |
| 1234 | '../src/svg/SkSVGSymbol.h', |
| 1235 | '../src/svg/SkSVGText.cpp', |
| 1236 | '../src/svg/SkSVGText.h', |
| 1237 | '../src/svg/SkSVGUse.cpp', |
| 1238 | ], |
| 1239 | 'sources!' : [ |
| 1240 | '../src/svg/SkSVG.cpp', # doesn't compile, maybe this is test code? |
| 1241 | ], |
| 1242 | 'direct_dependent_settings': { |
| 1243 | 'include_dirs': [ |
| 1244 | '../include/svg', |
| 1245 | ], |
| 1246 | }, |
| 1247 | }, |
| 1248 | |
| 1249 | { |
| 1250 | 'target_name': 'experimental', |
| 1251 | 'type': 'static_library', |
| 1252 | 'include_dirs': [ |
| 1253 | '../include/config', |
| 1254 | '../include/core', |
| 1255 | ], |
| 1256 | 'sources': [ |
| 1257 | '../experimental/SkMatrix44.cpp', |
| 1258 | '../experimental/SkMatrix44.h', |
| 1259 | '../experimental/SkSetPoly3To3.cpp', |
| 1260 | '../experimental/SkSetPoly3To3_A.cpp', |
| 1261 | '../experimental/SkSetPoly3To3_D.cpp', |
| 1262 | ], |
| 1263 | 'sources!': [ |
| 1264 | '../experimental/SkMatrix44.cpp', #doesn't compile |
| 1265 | '../experimental/SkMatrix44.h', |
| 1266 | ], |
| 1267 | 'direct_dependent_settings': { |
| 1268 | 'include_dirs': [ |
| 1269 | '../experimental', |
| 1270 | ], |
| 1271 | }, |
| 1272 | }, |
| 1273 | |
| 1274 | { |
| 1275 | 'target_name': 'SampleApp', |
| 1276 | 'type': 'executable', |
| 1277 | 'mac_bundle' : 1, |
| 1278 | 'include_dirs' : [ |
| 1279 | '../src/core', # needed to get SkConcaveToTriangle, maybe this should be moved to include dir? |
| 1280 | '../gm', # SampleGM.cpp pulls gm.h |
| 1281 | ], |
| 1282 | 'sources': [ |
| 1283 | # gm files needed for SampleGM.cpp |
| 1284 | '../gm/bitmapfilters.cpp', |
| 1285 | '../gm/blurs.cpp', |
| 1286 | '../gm/complexclip.cpp', |
| 1287 | '../gm/filltypes.cpp', |
| 1288 | '../gm/gm.h', |
| 1289 | '../gm/gradients.cpp', |
| 1290 | '../gm/points.cpp', |
| 1291 | '../gm/poly2poly.cpp', |
| 1292 | '../gm/shadertext.cpp', |
| 1293 | '../gm/shadows.cpp', |
| 1294 | '../gm/shapes.cpp', |
| 1295 | '../gm/tilemodes.cpp', |
| 1296 | '../gm/xfermodes.cpp', |
| 1297 | |
| 1298 | '../samplecode/ClockFaceView.cpp', |
| 1299 | '../samplecode/OverView.cpp', |
| 1300 | '../samplecode/SampleAll.cpp', |
| 1301 | '../samplecode/SampleAnimator.cpp', |
| 1302 | '../samplecode/SampleApp.cpp', |
| 1303 | '../samplecode/SampleArc.cpp', |
| 1304 | '../samplecode/SampleAvoid.cpp', |
| 1305 | '../samplecode/SampleBigGradient.cpp', |
| 1306 | '../samplecode/SampleBitmapRect.cpp', |
| 1307 | '../samplecode/SampleBlur.cpp', |
| 1308 | '../samplecode/SampleCamera.cpp', |
| 1309 | '../samplecode/SampleCircle.cpp', |
| 1310 | '../samplecode/SampleCode.h', |
| 1311 | '../samplecode/SampleComplexClip.cpp', |
| 1312 | '../samplecode/SampleCull.cpp', |
| 1313 | '../samplecode/SampleDecode.cpp', |
| 1314 | '../samplecode/SampleDither.cpp', |
| 1315 | '../samplecode/SampleDitherBitmap.cpp', |
| 1316 | '../samplecode/SampleDrawLooper.cpp', |
| 1317 | '../samplecode/SampleEffects.cpp', |
| 1318 | '../samplecode/SampleEmboss.cpp', |
| 1319 | '../samplecode/SampleEncode.cpp', |
| 1320 | '../samplecode/SampleExtractAlpha.cpp', |
| 1321 | '../samplecode/SampleFillType.cpp', |
| 1322 | '../samplecode/SampleFilter.cpp', |
| 1323 | '../samplecode/SampleFilter2.cpp', |
| 1324 | '../samplecode/SampleFontCache.cpp', |
| 1325 | '../samplecode/SampleFontScalerTest.cpp', |
| 1326 | '../samplecode/SampleFuzz.cpp', |
| 1327 | '../samplecode/SampleGM.cpp', |
| 1328 | '../samplecode/SampleGradients.cpp', |
| 1329 | '../samplecode/SampleHairline.cpp', |
| 1330 | '../samplecode/SampleImage.cpp', |
| 1331 | '../samplecode/SampleImageDir.cpp', |
| 1332 | '../samplecode/SampleLayerMask.cpp', |
| 1333 | '../samplecode/SampleLayers.cpp', |
| 1334 | '../samplecode/SampleLCD.cpp', |
| 1335 | '../samplecode/SampleLineClipper.cpp', |
| 1336 | '../samplecode/SampleLines.cpp', |
| 1337 | '../samplecode/SampleMeasure.cpp', |
| 1338 | '../samplecode/SampleMipMap.cpp', |
| 1339 | '../samplecode/SampleMovie.cpp', |
| 1340 | '../samplecode/SampleNinePatch.cpp', |
| 1341 | '../samplecode/SampleOvalTest.cpp', |
| 1342 | '../samplecode/SampleOverflow.cpp', |
| 1343 | '../samplecode/SamplePageFlip.cpp', |
| 1344 | '../samplecode/SamplePatch.cpp', |
| 1345 | '../samplecode/SamplePath.cpp', |
| 1346 | '../samplecode/SamplePathClip.cpp', |
| 1347 | '../samplecode/SamplePathEffects.cpp', |
| 1348 | '../samplecode/SamplePicture.cpp', |
| 1349 | '../samplecode/SamplePoints.cpp', |
| 1350 | '../samplecode/SamplePolyToPoly.cpp', |
| 1351 | '../samplecode/SampleRegion.cpp', |
| 1352 | '../samplecode/SampleRepeatTile.cpp', |
| 1353 | '../samplecode/SampleShaders.cpp', |
| 1354 | '../samplecode/SampleShaderText.cpp', |
| 1355 | '../samplecode/SampleShapes.cpp', |
| 1356 | '../samplecode/SampleSkLayer.cpp', |
| 1357 | '../samplecode/SampleSlides.cpp', |
| 1358 | '../samplecode/SampleStrokePath.cpp', |
| 1359 | '../samplecode/SampleStrokeText.cpp', |
| 1360 | '../samplecode/SampleSVG.cpp', |
| 1361 | '../samplecode/SampleTests.cpp', |
| 1362 | '../samplecode/SampleText.cpp', |
| 1363 | '../samplecode/SampleTextAlpha.cpp', |
| 1364 | '../samplecode/SampleTextBox.cpp', |
| 1365 | '../samplecode/SampleTextEffects.cpp', |
| 1366 | '../samplecode/SampleTextOnPath.cpp', |
| 1367 | '../samplecode/SampleTiling.cpp', |
| 1368 | '../samplecode/SampleTinyBitmap.cpp', |
| 1369 | '../samplecode/SampleTriangles.cpp', |
| 1370 | '../samplecode/SampleTypeface.cpp', |
| 1371 | '../samplecode/SampleUnitMapper.cpp', |
| 1372 | '../samplecode/SampleVertices.cpp', |
| 1373 | '../samplecode/SampleXfermodes.cpp', |
| 1374 | ], |
| 1375 | 'sources!': [ |
| 1376 | '../samplecode/SampleSkLayer.cpp', #relies on SkMatrix44 which doesn't compile |
| 1377 | '../samplecode/SampleTests.cpp', #includes unknown file SkShaderExtras.h |
| 1378 | '../samplecode/SampleWarp.cpp', |
| 1379 | '../samplecode/SampleFontCache.cpp', |
| 1380 | ], |
| 1381 | 'dependencies': [ |
| 1382 | 'skia', |
| 1383 | 'effects', |
| 1384 | 'images', |
| 1385 | 'views', |
| 1386 | 'utils', |
| 1387 | 'animator', |
| 1388 | 'xml', |
| 1389 | 'svg', |
| 1390 | 'experimental', |
| 1391 | 'gr', |
| 1392 | 'skgr', |
| 1393 | ], |
| 1394 | 'conditions' : [ |
| 1395 | [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { |
| 1396 | 'sources!': [ |
| 1397 | '../samplecode/SampleDecode.cpp', |
| 1398 | ], |
| 1399 | }], |
| 1400 | [ 'OS == "win"', { |
| 1401 | 'sources!': [ |
| 1402 | # require UNIX functions |
| 1403 | '../samplecode/SampleEncode.cpp', |
| 1404 | '../samplecode/SamplePageFlip.cpp', |
| 1405 | ], |
| 1406 | },], |
| 1407 | [ 'OS == "mac"', { |
| 1408 | 'sources!': [ |
| 1409 | '../samplecode/SampleDecode.cpp', |
| 1410 | ], |
| 1411 | },], |
| 1412 | |
| 1413 | ], |
| 1414 | 'msvs_settings': { |
| 1415 | 'VCLinkerTool': { |
| 1416 | 'SubSystem': '2', |
| 1417 | 'AdditionalDependencies': [ |
| 1418 | 'OpenGL32.lib', |
| 1419 | 'glew32.lib', |
| 1420 | 'usp10.lib', |
| 1421 | 'd3d9.lib', |
| 1422 | ], |
| 1423 | }, |
| 1424 | }, |
| 1425 | }, |
| 1426 | ], |
| 1427 | } |
| 1428 | |
| 1429 | # Local Variables: |
| 1430 | # tab-width:2 |
| 1431 | # indent-tabs-mode:nil |
| 1432 | # End: |
| 1433 | # vim: set expandtab tabstop=2 shiftwidth=2: |