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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 sources += gypi_skia_pdf.sources | 538 sources += gypi_skia_pdf.sources |
539 } | 539 } |
540 | 540 |
541 if (is_android && !is_debug) { | 541 if (is_android && !is_debug) { |
542 configs -= [ "//build/config/compiler:optimize" ] | 542 configs -= [ "//build/config/compiler:optimize" ] |
543 configs += [ "//build/config/compiler:optimize_max" ] | 543 configs += [ "//build/config/compiler:optimize_max" ] |
544 } | 544 } |
545 } | 545 } |
546 | 546 |
547 # Separated out so it can be compiled with different flags for SSE. | 547 # 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 |
548 source_set("skia_opts") { | 549 source_set("skia_opts") { |
549 cflags = [] | 550 cflags = [] |
550 defines = [] | 551 defines = [] |
551 | 552 |
552 if (current_cpu == "x86" || current_cpu == "x64") { | 553 if (current_cpu == "x86" || current_cpu == "x64") { |
553 sources = gypi_skia_opts.sse2_sources + gypi_skia_opts.ssse3_sources + | 554 sources = gypi_skia_opts.sse2_sources + gypi_skia_opts.ssse3_sources + |
554 gypi_skia_opts.sse41_sources + | 555 gypi_skia_opts.sse41_sources + |
555 [ | 556 [ |
556 # Chrome-specific. | 557 # Chrome-specific. |
557 "ext/convolver_SSE2.cc", | 558 "ext/convolver_SSE2.cc", |
558 "ext/convolver_SSE2.h", | 559 "ext/convolver_SSE2.h", |
559 ] | 560 ] |
560 | 561 |
561 if (is_linux || is_mac) { | 562 if (!is_win || is_clang) { |
562 cflags += [ "-msse4.1" ] | 563 cflags += [ "-msse4.1" ] |
563 } else if (is_win) { | 564 } |
| 565 if (is_win) { |
564 defines += [ "SK_CPU_SSE_LEVEL=41" ] | 566 defines += [ "SK_CPU_SSE_LEVEL=41" ] |
565 } | 567 } |
566 } else if (current_cpu == "arm") { | 568 } else if (current_cpu == "arm") { |
567 # The assembly uses the frame pointer register (r7 in Thumb/r11 in | 569 # The assembly uses the frame pointer register (r7 in Thumb/r11 in |
568 # ARM), the compiler doesn't like that. | 570 # ARM), the compiler doesn't like that. |
569 cflags += [ "-fomit-frame-pointer" ] | 571 cflags += [ "-fomit-frame-pointer" ] |
570 | 572 |
571 if (arm_version >= 7) { | 573 if (arm_version >= 7) { |
572 sources = gypi_skia_opts.armv7_sources | 574 sources = gypi_skia_opts.armv7_sources |
573 if (arm_use_neon || arm_optionally_use_neon) { | 575 if (arm_use_neon || arm_optionally_use_neon) { |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 "tools/filter_fuzz_stub/filter_fuzz_stub.cc", | 671 "tools/filter_fuzz_stub/filter_fuzz_stub.cc", |
670 ] | 672 ] |
671 | 673 |
672 deps = [ | 674 deps = [ |
673 ":skia", | 675 ":skia", |
674 "//base", | 676 "//base", |
675 "//base/test:test_support", | 677 "//base/test:test_support", |
676 ] | 678 ] |
677 } | 679 } |
678 } | 680 } |
OLD | NEW |