diff options
author | petarj@mips.com <petarj@mips.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-01 17:46:25 +0000 |
---|---|---|
committer | petarj@mips.com <petarj@mips.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-01 17:46:25 +0000 |
commit | 97b7de78f139c74116588761ecb13f5db20d7ccb (patch) | |
tree | b1d307db88a1d4082d10acd988f52ab40c26da13 /skia/skia.gyp | |
parent | be363b2ae7d3ebc594d6db53313985b07977d80b (diff) | |
download | chromium_src-97b7de78f139c74116588761ecb13f5db20d7ccb.zip chromium_src-97b7de78f139c74116588761ecb13f5db20d7ccb.tar.gz chromium_src-97b7de78f139c74116588761ecb13f5db20d7ccb.tar.bz2 |
[MIPS] Add build support in Skia for MIPS.
Small change in skia.gyp to support building for MIPS arch.
BUG= https://code.google.com/p/chromium/issues/detail?id=130022
TEST=make chrome
Review URL: https://chromiumcodereview.appspot.com/11292003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165421 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/skia.gyp')
-rw-r--r-- | skia/skia.gyp | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/skia/skia.gyp b/skia/skia.gyp index 0cd2e35..37d6c2e 100644 --- a/skia/skia.gyp +++ b/skia/skia.gyp @@ -346,7 +346,7 @@ '__ARM_HAVE_NEON', ], }], - [ 'target_arch == "arm"', { + [ 'target_arch == "arm" or target_arch == "mipsel"', { 'sources!': [ '../third_party/skia/src/opts/opts_check_SSE2.cpp' ], @@ -658,7 +658,8 @@ '../third_party/skia/src/core', ], 'conditions': [ - [ 'os_posix == 1 and OS != "mac" and OS != "android" and target_arch != "arm"', { + [ 'os_posix == 1 and OS != "mac" and OS != "android" and \ + target_arch != "arm" and target_arch != "mipsel"', { 'cflags': [ '-msse2', ], @@ -668,7 +669,7 @@ 'SK_BUILD_FOR_ANDROID_NDK', ], }], - [ 'target_arch != "arm"', { + [ 'target_arch != "arm" and target_arch != "mipsel"', { 'sources': [ '../third_party/skia/src/opts/SkBitmapProcState_opts_SSE2.cpp', '../third_party/skia/src/opts/SkBlitRect_opts_SSE2.cpp', @@ -683,8 +684,8 @@ ], }], ], - }, - { # arm + }], + [ 'target_arch == "arm"', { 'conditions': [ [ 'armv7 == 1', { 'defines': [ @@ -747,6 +748,16 @@ '../third_party/skia/src/opts/opts_check_arm.cpp', ], }], + [ 'target_arch == "mipsel"',{ + 'cflags': [ + '-fomit-frame-pointer', + ], + 'sources': [ + '../third_party/skia/src/opts/SkBitmapProcState_opts_none.cpp', + '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp', + '../third_party/skia/src/opts/SkUtils_opts_none.cpp', + ], + }], ], }, # For the same lame reasons as what is done for skia_opts, we have to |