| 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("//build/config/sanitizers/sanitizers.gni") |
| 7 import("//printing/features/features.gni") | 8 import("//printing/features/features.gni") |
| 8 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 9 import("//third_party/skia/gn/shared_sources.gni") | 10 import("//third_party/skia/gn/shared_sources.gni") |
| 10 | 11 |
| 11 if (current_cpu == "arm") { | 12 if (current_cpu == "arm") { |
| 12 import("//build/config/arm.gni") | 13 import("//build/config/arm.gni") |
| 13 } | 14 } |
| 14 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 15 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
| 15 import("//build/config/mips.gni") | 16 import("//build/config/mips.gni") |
| 16 } | 17 } |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 } | 558 } |
| 558 visibility = [ ":skia_opts" ] | 559 visibility = [ ":skia_opts" ] |
| 559 configs -= [ "//build/config/compiler:chromium_code" ] | 560 configs -= [ "//build/config/compiler:chromium_code" ] |
| 560 configs += [ | 561 configs += [ |
| 561 ":skia_config", | 562 ":skia_config", |
| 562 ":skia_library_config", | 563 ":skia_library_config", |
| 563 "//build/config/compiler:no_chromium_code", | 564 "//build/config/compiler:no_chromium_code", |
| 564 ] | 565 ] |
| 565 } | 566 } |
| 566 source_set("skia_opts_hsw") { | 567 source_set("skia_opts_hsw") { |
| 567 sources = skia_opts.hsw_sources | 568 # SyzyAsan doesn't support the AVX2 and F16C instructions. |
| 569 if (!is_syzyasan) { |
| 570 sources = skia_opts.hsw_sources |
| 571 } else { |
| 572 sources = [ |
| 573 "ext/SkOpts_hsw_stub.cc", |
| 574 ] |
| 575 } |
| 568 if (!is_win) { | 576 if (!is_win) { |
| 569 cflags = [ | 577 cflags = [ |
| 570 "-mavx2", | 578 "-mavx2", |
| 571 "-mbmi", | 579 "-mbmi", |
| 572 "-mbmi2", | 580 "-mbmi2", |
| 573 "-mf16c", | 581 "-mf16c", |
| 574 "-mfma", | 582 "-mfma", |
| 575 ] | 583 ] |
| 576 } | 584 } |
| 577 if (is_win) { | 585 if (is_win && !is_syzyasan) { |
| 578 cflags = [ "/arch:AVX2" ] | 586 cflags = [ "/arch:AVX2" ] |
| 579 } | 587 } |
| 580 visibility = [ ":skia_opts" ] | 588 visibility = [ ":skia_opts" ] |
| 581 configs -= [ "//build/config/compiler:chromium_code" ] | 589 configs -= [ "//build/config/compiler:chromium_code" ] |
| 582 configs += [ | 590 configs += [ |
| 583 ":skia_config", | 591 ":skia_config", |
| 584 ":skia_library_config", | 592 ":skia_library_config", |
| 585 "//build/config/compiler:no_chromium_code", | 593 "//build/config/compiler:no_chromium_code", |
| 586 ] | 594 ] |
| 587 } | 595 } |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 | 733 |
| 726 deps = [ | 734 deps = [ |
| 727 ":skia", | 735 ":skia", |
| 728 "//base", | 736 "//base", |
| 729 "//base/test:test_support", | 737 "//base/test:test_support", |
| 730 "//build/config/sanitizers:deps", | 738 "//build/config/sanitizers:deps", |
| 731 "//build/win:default_exe_manifest", | 739 "//build/win:default_exe_manifest", |
| 732 ] | 740 ] |
| 733 } | 741 } |
| 734 } | 742 } |
| OLD | NEW |