OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 if (current_cpu == "arm") { | 8 if (current_cpu == "arm") { |
9 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
10 } | 10 } |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 "ext/skia_utils_base.cc", | 311 "ext/skia_utils_base.cc", |
312 "ext/skia_utils_base.h", | 312 "ext/skia_utils_base.h", |
313 "ext/skia_utils_ios.h", | 313 "ext/skia_utils_ios.h", |
314 "ext/skia_utils_ios.mm", | 314 "ext/skia_utils_ios.mm", |
315 "ext/skia_utils_mac.h", | 315 "ext/skia_utils_mac.h", |
316 "ext/skia_utils_mac.mm", | 316 "ext/skia_utils_mac.mm", |
317 "ext/skia_utils_win.cc", | 317 "ext/skia_utils_win.cc", |
318 "ext/skia_utils_win.h", | 318 "ext/skia_utils_win.h", |
319 ] | 319 ] |
320 | 320 |
| 321 if (current_cpu == "x86" || current_cpu == "x64") { |
| 322 sources += [ |
| 323 "ext/convolver_SSE2.cc", |
| 324 "ext/convolver_SSE2.h", |
| 325 ] |
| 326 } else if (current_cpu == "mipsel" && mips_dsp_rev >= 2) { |
| 327 sources += [ |
| 328 "ext/convolver_mips_dspr2.cc", |
| 329 "ext/convolver_mips_dspr2.h", |
| 330 ] |
| 331 } |
| 332 |
321 # The skia gypi values are relative to the skia_dir, so we need to rebase. | 333 # The skia gypi values are relative to the skia_dir, so we need to rebase. |
322 sources += gypi_skia_core.sources | 334 sources += gypi_skia_core.sources |
323 sources += gypi_skia_effects.sources | 335 sources += gypi_skia_effects.sources |
324 sources += gypi_skia_utils.sources | 336 sources += gypi_skia_utils.sources |
325 sources += gypi_values.skia_library_sources | 337 sources += gypi_values.skia_library_sources |
326 | 338 |
327 # This and skia_opts are really the same conceptual target so share headers. | 339 # This and skia_opts are really the same conceptual target so share headers. |
328 allow_circular_includes_from = [ ":skia_opts" ] | 340 allow_circular_includes_from = [ ":skia_opts" ] |
329 | 341 |
330 if (current_cpu == "arm") { | 342 if (current_cpu == "arm") { |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 } | 557 } |
546 | 558 |
547 # Separated out so it can be compiled with different flags for SSE. | 559 # Separated out so it can be compiled with different flags for SSE. |
548 # TODO(GYP): This is wrong, it needs one target per arch http://crbug.com/496512 | 560 # TODO(GYP): This is wrong, it needs one target per arch http://crbug.com/496512 |
549 source_set("skia_opts") { | 561 source_set("skia_opts") { |
550 cflags = [] | 562 cflags = [] |
551 defines = [] | 563 defines = [] |
552 | 564 |
553 if (current_cpu == "x86" || current_cpu == "x64") { | 565 if (current_cpu == "x86" || current_cpu == "x64") { |
554 sources = gypi_skia_opts.sse2_sources + gypi_skia_opts.ssse3_sources + | 566 sources = gypi_skia_opts.sse2_sources + gypi_skia_opts.ssse3_sources + |
555 gypi_skia_opts.sse41_sources + | 567 gypi_skia_opts.sse41_sources |
556 [ | |
557 # Chrome-specific. | |
558 "ext/convolver_SSE2.cc", | |
559 "ext/convolver_SSE2.h", | |
560 ] | |
561 | 568 |
562 if (!is_win || is_clang) { | 569 if (!is_win || is_clang) { |
563 cflags += [ "-msse4.1" ] | 570 cflags += [ "-msse4.1" ] |
564 } | 571 } |
565 if (is_win) { | 572 if (is_win) { |
566 defines += [ "SK_CPU_SSE_LEVEL=41" ] | 573 defines += [ "SK_CPU_SSE_LEVEL=41" ] |
567 } | 574 } |
568 } else if (current_cpu == "arm") { | 575 } else if (current_cpu == "arm") { |
569 # The assembly uses the frame pointer register (r7 in Thumb/r11 in | 576 # The assembly uses the frame pointer register (r7 in Thumb/r11 in |
570 # ARM), the compiler doesn't like that. | 577 # ARM), the compiler doesn't like that. |
(...skipping 12 matching lines...) Expand all Loading... |
583 } | 590 } |
584 } | 591 } |
585 } else { | 592 } else { |
586 sources = gypi_skia_opts.none_sourcees | 593 sources = gypi_skia_opts.none_sourcees |
587 } | 594 } |
588 } else if (current_cpu == "mipsel") { | 595 } else if (current_cpu == "mipsel") { |
589 cflags += [ "-fomit-frame-pointer" ] | 596 cflags += [ "-fomit-frame-pointer" ] |
590 | 597 |
591 if (mips_dsp_rev >= 1) { | 598 if (mips_dsp_rev >= 1) { |
592 sources = gypi_skia_opts.mips_dsp_sources | 599 sources = gypi_skia_opts.mips_dsp_sources |
593 if (mips_dsp_rev >= 2) { | |
594 sources += [ | |
595 # Chrome-specific. | |
596 "ext/convolver_mips_dspr2.cc", | |
597 "ext/convolver_mips_dspr2.h", | |
598 ] | |
599 } | |
600 } else { | 600 } else { |
601 sources = gypi_skia_opts.none_sources | 601 sources = gypi_skia_opts.none_sources |
602 } | 602 } |
603 } else { | 603 } else { |
604 assert(false, "Need to port cpu specific stuff from skia_library_opts.gyp") | 604 assert(false, "Need to port cpu specific stuff from skia_library_opts.gyp") |
605 } | 605 } |
606 | 606 |
607 if (is_android && !is_debug) { | 607 if (is_android && !is_debug) { |
608 configs -= [ "//build/config/compiler:optimize" ] | 608 configs -= [ "//build/config/compiler:optimize" ] |
609 configs += [ "//build/config/compiler:optimize_max" ] | 609 configs += [ "//build/config/compiler:optimize_max" ] |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 "tools/filter_fuzz_stub/filter_fuzz_stub.cc", | 671 "tools/filter_fuzz_stub/filter_fuzz_stub.cc", |
672 ] | 672 ] |
673 | 673 |
674 deps = [ | 674 deps = [ |
675 ":skia", | 675 ":skia", |
676 "//base", | 676 "//base", |
677 "//base/test:test_support", | 677 "//base/test:test_support", |
678 ] | 678 ] |
679 } | 679 } |
680 } | 680 } |
OLD | NEW |