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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
186 "/wd4244", # conversion from 'type1( __int64)' to 'type2 (unsigned int)' | 186 "/wd4244", # conversion from 'type1( __int64)' to 'type2 (unsigned int)' |
187 "/wd4267", # conversion from 'size_t' (64 bit) to 'type'(32 bit). | 187 "/wd4267", # conversion from 'size_t' (64 bit) to 'type'(32 bit). |
188 "/wd4341", # signed value is out of range for enum constant. | 188 "/wd4341", # signed value is out of range for enum constant. |
189 "/wd4345", # Object is default-initialized if initialization is omitted. | 189 "/wd4345", # Object is default-initialized if initialization is omitted. |
190 "/wd4390", # ';'empty statement found in looping;is it what was intended? | 190 "/wd4390", # ';'empty statement found in looping;is it what was intended? |
191 "/wd4554", # 'operator' : check operator precedence for possible error | 191 "/wd4554", # 'operator' : check operator precedence for possible error |
192 "/wd4748", # compiler will disable optimizations if a function has inline | 192 "/wd4748", # compiler will disable optimizations if a function has inline |
193 # assembly code contains flow control(jmp or jcc) statements. | 193 # assembly code contains flow control(jmp or jcc) statements. |
194 | 194 |
195 "/wd4800", # forcing value to bool 'true/false'(assigning int to bool). | 195 "/wd4800", # forcing value to bool 'true/false'(assigning int to bool). |
196 | |
197 "/wd4752", # We use AVX but don't let the compiler do so itself. See crb ug.com/666707. | |
brucedawson
2016/11/18 18:21:30
Wrap this line at 80 characters.
mtklein_C
2016/11/18 18:24:06
Whoops, as you may have guessed, my editor is set
| |
196 ] | 198 ] |
197 } | 199 } |
198 } | 200 } |
199 | 201 |
200 component("skia") { | 202 component("skia") { |
201 sources = [ | 203 sources = [ |
202 # Chrome sources. | 204 # Chrome sources. |
203 "config/SkUserConfig.h", | 205 "config/SkUserConfig.h", |
204 "config/sk_ref_cnt_ext_debug.h", | 206 "config/sk_ref_cnt_ext_debug.h", |
205 "config/sk_ref_cnt_ext_release.h", | 207 "config/sk_ref_cnt_ext_release.h", |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
547 ":skia_library_config", | 549 ":skia_library_config", |
548 "//build/config/compiler:no_chromium_code", | 550 "//build/config/compiler:no_chromium_code", |
549 ] | 551 ] |
550 } | 552 } |
551 source_set("skia_opts_avx") { | 553 source_set("skia_opts_avx") { |
552 sources = skia_opts.avx_sources | 554 sources = skia_opts.avx_sources |
553 if (!is_win) { | 555 if (!is_win) { |
554 cflags = [ "-mavx" ] | 556 cflags = [ "-mavx" ] |
555 } | 557 } |
556 if (is_win) { | 558 if (is_win) { |
557 cflags = [ "/arch:AVX" ] | 559 defines = [ "SK_CPU_SSE_LEVEL=51" ] |
558 } | 560 } |
559 visibility = [ ":skia_opts" ] | 561 visibility = [ ":skia_opts" ] |
560 configs -= [ "//build/config/compiler:chromium_code" ] | 562 configs -= [ "//build/config/compiler:chromium_code" ] |
561 configs += [ | 563 configs += [ |
562 ":skia_config", | 564 ":skia_config", |
563 ":skia_library_config", | 565 ":skia_library_config", |
564 "//build/config/compiler:no_chromium_code", | 566 "//build/config/compiler:no_chromium_code", |
565 ] | 567 ] |
566 } | 568 } |
567 source_set("skia_opts_hsw") { | 569 source_set("skia_opts_hsw") { |
568 sources = skia_opts.hsw_sources | 570 sources = skia_opts.hsw_sources |
569 if (!is_win) { | 571 if (!is_win) { |
570 cflags = [ | 572 cflags = [ |
571 "-mavx2", | 573 "-mavx2", |
572 "-mbmi", | 574 "-mbmi", |
573 "-mbmi2", | 575 "-mbmi2", |
574 "-mf16c", | 576 "-mf16c", |
575 "-mfma", | 577 "-mfma", |
576 ] | 578 ] |
577 } | 579 } |
578 if (is_win) { | 580 if (is_win) { |
579 cflags = [ "/arch:AVX2" ] | 581 defines = [ "SK_CPU_SSE_LEVEL=52" ] |
580 } | 582 } |
581 visibility = [ ":skia_opts" ] | 583 visibility = [ ":skia_opts" ] |
582 configs -= [ "//build/config/compiler:chromium_code" ] | 584 configs -= [ "//build/config/compiler:chromium_code" ] |
583 configs += [ | 585 configs += [ |
584 ":skia_config", | 586 ":skia_config", |
585 ":skia_library_config", | 587 ":skia_library_config", |
586 "//build/config/compiler:no_chromium_code", | 588 "//build/config/compiler:no_chromium_code", |
587 ] | 589 ] |
588 } | 590 } |
589 } | 591 } |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
726 | 728 |
727 deps = [ | 729 deps = [ |
728 ":skia", | 730 ":skia", |
729 "//base", | 731 "//base", |
730 "//base/test:test_support", | 732 "//base/test:test_support", |
731 "//build/config/sanitizers:deps", | 733 "//build/config/sanitizers:deps", |
732 "//build/win:default_exe_manifest", | 734 "//build/win:default_exe_manifest", |
733 ] | 735 ] |
734 } | 736 } |
735 } | 737 } |
OLD | NEW |