From c1587e0f45ae662bdc933148114457ba7f6af084 Mon Sep 17 00:00:00 2001 From: "senorblanco@chromium.org" Date: Wed, 4 May 2011 18:59:38 +0000 Subject: Fix SampleApp raster path on Linux to use SK_SAMPLES_FOR_X, so pixel components are in the right order (RGBA vs BGRA). Review URL: http://codereview.appspot.com/4474043/ git-svn-id: http://skia.googlecode.com/svn/trunk@1246 2bbb7eff-a529-9590-31e7-b0007b416f81 --- gyp/skia.gyp | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) (limited to 'gyp') diff --git a/gyp/skia.gyp b/gyp/skia.gyp index 85b11f70b8..816801c319 100644 --- a/gyp/skia.gyp +++ b/gyp/skia.gyp @@ -30,7 +30,12 @@ 'SK_BUILD_FOR_WIN32', 'SK_IGNORE_STDINT_DOT_H', ], - },], + }], + [ 'OS == "linux"', { + 'defines': [ + 'SK_SAMPLES_FOR_X', + ], + }], ], 'direct_dependent_settings': { 'conditions': [ @@ -43,7 +48,7 @@ 'defines': [ 'SK_BUILD_FOR_WIN32', ], - },], + }], ], }, }, @@ -344,12 +349,12 @@ 'sources!': [ '../src/ports/SkDebug_stdio.cpp', ], - },], + }], [ 'OS != "win"', { 'sources!': [ '../src/ports/SkDebug_win.cpp', ], - },], + }], ], 'direct_dependent_settings': { 'include_dirs': [ @@ -532,7 +537,7 @@ '../src/images/SkJpegUtility.cpp', '../src/images/SkMovie_gif.cpp', ], - },], + }], [ 'OS == "mac"', { 'sources!': [ '../include/images/SkJpegUtility.h', @@ -544,7 +549,7 @@ '../src/images/SkJpegUtility.cpp', '../src/images/SkMovie_gif.cpp', ], - },], + }], [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { 'sources!': [ '../include/images/SkJpegUtility.h', @@ -601,7 +606,7 @@ '../src/xml/SkJS.cpp', '../src/xml/SkJSDisplayable.cpp', ], - },], + }], ], 'direct_dependent_settings': { 'include_dirs': [ @@ -710,7 +715,7 @@ '../src/utils/mac/SkCreateCGImageRef.cpp', '../src/utils/mac/SkEGLContext_mac.cpp', ], - },], + }], ], 'direct_dependent_settings': { 'include_dirs': [ @@ -793,7 +798,7 @@ '../src/utils/win/SkOSWindow_Win.cpp', '../src/utils/win/skia_win.cpp', ], - },], + }], [ 'OS == "mac"', { 'sources': [ '../include/utils/SkCGUtils.h', @@ -809,7 +814,7 @@ '$(SDKROOT)/System/Library/Frameworks/AGL.framework', ], }, - },], + }], [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { 'include_dirs' : [ '../include/utils/unix', @@ -866,7 +871,7 @@ 'defines': [ 'GR_WIN32_BUILD=1', ], - },], + }], ], 'direct_dependent_settings': { 'conditions': [ @@ -884,7 +889,7 @@ 'defines': [ 'GR_WIN32_BUILD=1', ], - },], + }], ], 'include_dirs': [ '../include/gpu', @@ -1057,7 +1062,7 @@ 'sources!': [ '../gpu/src/GrGLDefaultInterface_none.cpp', ], - },], + }], [ 'OS != "win"', { 'sources!': [ '../gpu/src/win/GrGLDefaultInterface_win.cpp', @@ -1091,7 +1096,7 @@ 'GR_WIN32_BUILD=1', 'GR_GL_FUNCTION_TYPE=__stdcall', ], - },], + }], ], 'include_dirs': [ '../gpu/include', @@ -1516,12 +1521,12 @@ '../samplecode/SampleEncode.cpp', '../samplecode/SamplePageFlip.cpp', ], - },], + }], [ 'OS == "mac"', { 'sources!': [ '../samplecode/SampleDecode.cpp', ], - },], + }], ], 'msvs_settings': { -- cgit v1.2.3