| 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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 "//build/linux:fontconfig", | 464 "//build/linux:fontconfig", |
| 465 "//third_party/icu:icuuc", | 465 "//third_party/icu:icuuc", |
| 466 ] | 466 ] |
| 467 } | 467 } |
| 468 | 468 |
| 469 if (is_android) { | 469 if (is_android) { |
| 470 set_sources_assignment_filter([]) | 470 set_sources_assignment_filter([]) |
| 471 sources += [ "ext/platform_device_linux.cc" ] | 471 sources += [ "ext/platform_device_linux.cc" ] |
| 472 set_sources_assignment_filter(sources_assignment_filter) | 472 set_sources_assignment_filter(sources_assignment_filter) |
| 473 deps += [ | 473 deps += [ |
| 474 "//third_party/android_tools:cpu_features", |
| 474 "//third_party/expat", | 475 "//third_party/expat", |
| 475 "//third_party/freetype-android:freetype", | 476 "//third_party/freetype-android:freetype", |
| 476 "//third_party/android_tools:cpu_features", | |
| 477 ] | 477 ] |
| 478 } | 478 } |
| 479 | 479 |
| 480 if (skia_support_pdf) { | 480 if (skia_support_pdf) { |
| 481 deps += [ "//third_party/sfntly" ] | 481 deps += [ "//third_party/sfntly" ] |
| 482 sources += gypi_skia_pdf.sources | 482 sources += gypi_skia_pdf.sources |
| 483 } | 483 } |
| 484 | 484 |
| 485 if (is_android && !is_debug) { | 485 if (is_android && !is_debug) { |
| 486 configs -= [ "//build/config/compiler:default_optimization" ] | 486 configs -= [ "//build/config/compiler:default_optimization" ] |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 cflags = [] | 589 cflags = [] |
| 590 defines = [] | 590 defines = [] |
| 591 | 591 |
| 592 deps = [ | 592 deps = [ |
| 593 "//base", | 593 "//base", |
| 594 ] | 594 ] |
| 595 | 595 |
| 596 if (current_cpu == "x86" || current_cpu == "x64") { | 596 if (current_cpu == "x86" || current_cpu == "x64") { |
| 597 sources = gypi_skia_opts.sse2_sources | 597 sources = gypi_skia_opts.sse2_sources |
| 598 deps += [ | 598 deps += [ |
| 599 ":skia_opts_avx", |
| 600 ":skia_opts_avx2", |
| 599 ":skia_opts_sse3", | 601 ":skia_opts_sse3", |
| 600 ":skia_opts_sse41", | 602 ":skia_opts_sse41", |
| 601 ":skia_opts_sse42", | 603 ":skia_opts_sse42", |
| 602 ":skia_opts_avx", | |
| 603 ":skia_opts_avx2", | |
| 604 ] | 604 ] |
| 605 } else if (current_cpu == "arm") { | 605 } else if (current_cpu == "arm") { |
| 606 # The assembly uses the frame pointer register (r7 in Thumb/r11 in | 606 # The assembly uses the frame pointer register (r7 in Thumb/r11 in |
| 607 # ARM), the compiler doesn't like that. | 607 # ARM), the compiler doesn't like that. |
| 608 cflags += [ "-fomit-frame-pointer" ] | 608 cflags += [ "-fomit-frame-pointer" ] |
| 609 | 609 |
| 610 if (arm_version >= 7) { | 610 if (arm_version >= 7) { |
| 611 sources = gypi_skia_opts.armv7_sources | 611 sources = gypi_skia_opts.armv7_sources |
| 612 if (arm_use_neon || arm_optionally_use_neon) { | 612 if (arm_use_neon || arm_optionally_use_neon) { |
| 613 sources += gypi_skia_opts.neon_sources | 613 sources += gypi_skia_opts.neon_sources |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 ] | 711 ] |
| 712 | 712 |
| 713 deps = [ | 713 deps = [ |
| 714 ":skia", | 714 ":skia", |
| 715 "//base", | 715 "//base", |
| 716 "//base/test:test_support", | 716 "//base/test:test_support", |
| 717 "//build/config/sanitizers:deps", | 717 "//build/config/sanitizers:deps", |
| 718 ] | 718 ] |
| 719 } | 719 } |
| 720 } | 720 } |
| OLD | NEW |