From: djsollen@google.com Date: Thu, 15 Dec 2011 16:16:22 +0000 (+0000) Subject: Fix android build and cleanup references to SkMMapStream X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~17127 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=62b24b1c806a2eb386f74f99cdcd8eb5b1f76c63;p=platform%2Fupstream%2FlibSkiaSharp.git Fix android build and cleanup references to SkMMapStream Review URL: http://codereview.appspot.com/5489050 git-svn-id: http://skia.googlecode.com/svn/trunk@2877 2bbb7eff-a529-9590-31e7-b0007b416f81 --- diff --git a/gyp/core.gyp b/gyp/core.gyp index 488caa3..9e5c536 100644 --- a/gyp/core.gyp +++ b/gyp/core.gyp @@ -88,6 +88,7 @@ '../src/core/SkMath.cpp', '../src/core/SkMatrix.cpp', '../src/core/SkMetaData.cpp', + '../src/core/SkMMapStream.cpp', '../src/core/SkPackBits.cpp', '../src/core/SkPaint.cpp', '../src/core/SkPath.cpp', @@ -189,6 +190,7 @@ '../include/core/SkMath.h', '../include/core/SkMatrix.h', '../include/core/SkMetaData.h', + '../include/core/SkMMapStream.h', '../include/core/SkOSFile.h', '../include/core/SkPackBits.h', '../include/core/SkPaint.h', @@ -250,10 +252,6 @@ '-Wno-unused', '-Wno-unused-function', ], - 'sources': [ - '../include/core/SkMMapStream.h', - '../src/core/SkMMapStream.cpp', - ], 'link_settings': { 'libraries': [ '-lfreetype', @@ -267,10 +265,7 @@ '../third_party/freetype/include/**', ], 'sources': [ - '../include/core/SkMMapStream.h', '../include/utils/mac/SkCGUtils.h', - - '../src/core/SkMMapStream.cpp', ], 'link_settings': { 'libraries': [ @@ -283,10 +278,7 @@ '../include/utils/ios', ], 'sources': [ - '../include/core/SkMMapStream.h', '../include/utils/mac/SkCGUtils.h', - - '../src/core/SkMMapStream.cpp', ], 'link_settings': { 'libraries': [ @@ -304,18 +296,17 @@ 'include_dirs': [ 'config/win', ], + 'sources!': [ + '../include/core/SkMMapStream.h', + '../src/core/SkMMapStream.cpp', + ], }], [ 'skia_os == "android"', { 'sources!': [ '../src/opts/opts_check_SSE2.cpp', ], - 'sources': [ - '../include/core/SkMMapStream.h', - '../src/core/SkMMapStream.cpp', - ], 'dependencies': [ 'android_system.gyp:ft2', - 'android_system.gyp:expat', ], }], ], diff --git a/gyp/ports.gyp b/gyp/ports.gyp index d53542b..5d697e5 100644 --- a/gyp/ports.gyp +++ b/gyp/ports.gyp @@ -91,6 +91,10 @@ '../src/ports/SkFontHost_FreeType.cpp', '../src/ports/FontHostConfiguration_android.cpp', ], + 'dependencies': [ + 'android_system.gyp:ft2', + 'android_system.gyp:expat', + ], }], ], 'direct_dependent_settings': {