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("//printing/features/features.gni") | 7 import("//printing/features/features.gni") |
8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
9 import("//third_party/skia/gn/shared_sources.gni") | 9 import("//third_party/skia/gn/shared_sources.gni") |
10 | 10 |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 defines = [ "SK_CPU_SSE_LEVEL=42" ] | 540 defines = [ "SK_CPU_SSE_LEVEL=42" ] |
541 } | 541 } |
542 visibility = [ ":skia_opts" ] | 542 visibility = [ ":skia_opts" ] |
543 configs -= [ "//build/config/compiler:chromium_code" ] | 543 configs -= [ "//build/config/compiler:chromium_code" ] |
544 configs += [ | 544 configs += [ |
545 ":skia_config", | 545 ":skia_config", |
546 ":skia_library_config", | 546 ":skia_library_config", |
547 "//build/config/compiler:no_chromium_code", | 547 "//build/config/compiler:no_chromium_code", |
548 ] | 548 ] |
549 } | 549 } |
550 | |
551 # skia_opts_avx and skia_opts_hsw are stubbed out for crbug.com/666707. | |
552 source_set("skia_opts_avx") { | 550 source_set("skia_opts_avx") { |
553 #sources = skia_opts.avx_sources | 551 sources = skia_opts.avx_sources |
554 sources = [ | |
555 "ext/SkOpts_avx_stub.cc", | |
556 ] | |
557 if (!is_win) { | 552 if (!is_win) { |
558 cflags = [ "-mavx" ] | 553 cflags = [ "-mavx" ] |
559 } | 554 } |
560 if (is_win) { | 555 if (is_win) { |
561 cflags = [ "/arch:AVX" ] | 556 cflags = [ "/arch:AVX" ] |
562 } | 557 } |
563 visibility = [ ":skia_opts" ] | 558 visibility = [ ":skia_opts" ] |
564 configs -= [ "//build/config/compiler:chromium_code" ] | 559 configs -= [ "//build/config/compiler:chromium_code" ] |
565 configs += [ | 560 configs += [ |
566 ":skia_config", | 561 ":skia_config", |
567 ":skia_library_config", | 562 ":skia_library_config", |
568 "//build/config/compiler:no_chromium_code", | 563 "//build/config/compiler:no_chromium_code", |
569 ] | 564 ] |
570 } | 565 } |
571 source_set("skia_opts_hsw") { | 566 source_set("skia_opts_hsw") { |
572 #sources = skia_opts.hsw_sources | 567 sources = skia_opts.hsw_sources |
573 sources = [ | |
574 "ext/SkOpts_hsw_stub.cc", | |
575 ] | |
576 if (!is_win) { | 568 if (!is_win) { |
577 cflags = [ | 569 cflags = [ |
578 "-mavx2", | 570 "-mavx2", |
579 "-mbmi", | 571 "-mbmi", |
580 "-mbmi2", | 572 "-mbmi2", |
581 "-mf16c", | 573 "-mf16c", |
582 "-mfma", | 574 "-mfma", |
583 ] | 575 ] |
584 } | 576 } |
585 if (is_win) { | 577 if (is_win) { |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 | 725 |
734 deps = [ | 726 deps = [ |
735 ":skia", | 727 ":skia", |
736 "//base", | 728 "//base", |
737 "//base/test:test_support", | 729 "//base/test:test_support", |
738 "//build/config/sanitizers:deps", | 730 "//build/config/sanitizers:deps", |
739 "//build/win:default_exe_manifest", | 731 "//build/win:default_exe_manifest", |
740 ] | 732 ] |
741 } | 733 } |
742 } | 734 } |
OLD | NEW |