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" || current_cpu == "arm64") { | 8 if (current_cpu == "arm" || current_cpu == "arm64") { |
9 import("//build/config/arm.gni") | 9 import("//build/config/arm.gni") |
10 } | 10 } |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 source_set("skia_opts") { | 469 source_set("skia_opts") { |
470 cflags = [] | 470 cflags = [] |
471 defines = [] | 471 defines = [] |
472 | 472 |
473 if (current_cpu == "x86" || current_cpu == "x64") { | 473 if (current_cpu == "x86" || current_cpu == "x64") { |
474 sources = gypi_skia_opts.sse2_sources + gypi_skia_opts.ssse3_sources + | 474 sources = gypi_skia_opts.sse2_sources + gypi_skia_opts.ssse3_sources + |
475 gypi_skia_opts.sse41_sources + gypi_skia_opts.avx_sources | 475 gypi_skia_opts.sse41_sources + gypi_skia_opts.avx_sources |
476 if (is_linux || is_mac) { | 476 if (is_linux || is_mac) { |
477 cflags += [ "-msse4.1" ] | 477 cflags += [ "-msse4.1" ] |
478 } | 478 } |
479 } else if (current_cpu == "arm") { | 479 } else if (current_cpu == "arm" || current_cpu == "arm64") { |
480 # The assembly uses the frame pointer register (r7 in Thumb/r11 in | 480 # The assembly uses the frame pointer register (r7 in Thumb/r11 in |
481 # ARM), the compiler doesn't like that. | 481 # ARM), the compiler doesn't like that. |
482 cflags += [ "-fomit-frame-pointer" ] | 482 cflags += [ "-fomit-frame-pointer" ] |
483 if (arm_version >= 7 && (arm_use_neon || arm_optionally_use_neon)) { | 483 if (arm_version >= 7 && (arm_use_neon || arm_optionally_use_neon)) { |
484 sources = gypi_skia_opts.armv7_sources | 484 sources = gypi_skia_opts.armv7_sources |
485 if (arm_use_neon || arm_optionally_use_neon) { | 485 if (arm_use_neon || arm_optionally_use_neon) { |
486 sources += gypi_skia_opts.neon_sources | 486 sources += gypi_skia_opts.neon_sources |
487 | 487 |
488 # Root build config sets -mfpu=$arm_fpu, which we expect to be neon | 488 # Root build config sets -mfpu=$arm_fpu, which we expect to be neon |
489 # when running this. | 489 # when running this. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 deps = [ | 543 deps = [ |
544 ":skia", | 544 ":skia", |
545 "//base", | 545 "//base", |
546 "//base/test:run_all_unittests", | 546 "//base/test:run_all_unittests", |
547 "//cc:test_support", # TODO: Fix this test to not depend on cc. | 547 "//cc:test_support", # TODO: Fix this test to not depend on cc. |
548 "//testing/gtest", | 548 "//testing/gtest", |
549 "//ui/gfx", | 549 "//ui/gfx", |
550 "//ui/gfx/geometry", | 550 "//ui/gfx/geometry", |
551 ] | 551 ] |
552 } | 552 } |
OLD | NEW |