Chromium Code Reviews| Index: skia/BUILD.gn |
| diff --git a/skia/BUILD.gn b/skia/BUILD.gn |
| index 248bc1cff3483845385662604bcdcce3ea3b0ca4..977596af68d10f71edd17fc4f31c0c38a67f9cd3 100644 |
| --- a/skia/BUILD.gn |
| +++ b/skia/BUILD.gn |
| @@ -8,6 +8,9 @@ import("//testing/test.gni") |
| if (current_cpu == "arm") { |
| import("//build/config/arm.gni") |
| } |
| +if (current_cpu == "mipsel" || current_cpu == "mipsel64") { |
| + import("//build/config/mips.gni") |
| +} |
| skia_support_gpu = !is_ios |
| skia_support_pdf = !is_ios && (enable_basic_printing || enable_print_preview) |
| @@ -550,6 +553,7 @@ source_set("skia_opts") { |
| [ |
| # Chrome-specific. |
| "ext/convolver_SSE2.cc", |
| + "ext/convolver_SSE2.h", |
| ] |
| if (is_linux || is_mac) { |
| @@ -577,7 +581,19 @@ source_set("skia_opts") { |
| } |
| } else if (current_cpu == "mipsel") { |
| cflags += [ "-fomit-frame-pointer" ] |
| - sources = gypi_skia_opts.none_sources |
| + |
| + if (mips_dsp_rev >= 1) { |
| + sources = gypi_skia_opts.mips_dsp_sources |
| + if (mips_dsp_rev >= 2) { |
| + sources += [ |
| + # Chrome-specific. |
| + "ext/convolver_mips_dspr2.cc", |
| + "ext/convolver_mips_dspr2.h", |
| + ] |
| + } |
| + } else { |
| + sources = gypi_skia_opts.none_sources |
| + } |
|
wtc
2015/03/12 22:03:20
The new code I added mimics the code for SSE2 and
|
| } else { |
| assert(false, "Need to port cpu specific stuff from skia_library_opts.gyp") |
| } |