| 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 } |
| 11 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 11 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
| 12 import("//build/config/mips.gni") | 12 import("//build/config/mips.gni") |
| 13 } | 13 } |
| 14 | 14 |
| 15 skia_support_gpu = !is_ios | 15 skia_support_gpu = !is_ios |
| 16 skia_support_pdf = !is_ios && (enable_basic_printing || enable_print_preview) | 16 skia_support_pdf = !is_ios && (enable_basic_printing || enable_print_preview) |
| 17 | 17 |
| 18 # When building Chrome for iOS with GYP, the target cpu is not known during | 18 # When building Chrome for iOS with GYP, the target cpu is not known during |
| 19 # the invocation of gyp. This cause the iOS build to use non-optimised skia. | 19 # the invocation of gyp. This cause the iOS build to use non-optimised skia. |
| 20 # Replicate this with GN to avoid introducing regression as recommended by | 20 # Replicate this with GN to avoid introducing regression as recommended by |
| 21 # the OWNERS of skia. | 21 # the OWNERS of skia. |
| 22 | 22 |
| 23 declare_args() { | 23 declare_args() { |
| 24 skia_whitelist_serialized_typefaces = false | 24 skia_whitelist_serialized_typefaces = false |
| 25 |
| 25 # TODO(crbug.com/607933): Once GYP is no longer supported, port iOS to use | 26 # TODO(crbug.com/607933): Once GYP is no longer supported, port iOS to use |
| 26 # optimised skia. | 27 # optimised skia. |
| 27 skia_build_no_opts = is_ios | 28 skia_build_no_opts = is_ios |
| 28 } | 29 } |
| 29 | 30 |
| 30 # The list of Skia defines that are to be set for chromium. | 31 # The list of Skia defines that are to be set for chromium. |
| 31 gypi_chromium_skia_defines = | 32 gypi_chromium_skia_defines = |
| 32 exec_script("//build/gypi_to_gn.py", | 33 exec_script("//build/gypi_to_gn.py", |
| 33 [ | 34 [ |
| 34 rebase_path("//skia/chromium_skia_defines.gypi"), | 35 rebase_path("//skia/chromium_skia_defines.gypi"), |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 "ext/skia_utils_mac_unittest.mm", | 715 "ext/skia_utils_mac_unittest.mm", |
| 715 ] | 716 ] |
| 716 | 717 |
| 717 if (!is_win && !is_mac) { | 718 if (!is_win && !is_mac) { |
| 718 sources -= [ "ext/platform_canvas_unittest.cc" ] | 719 sources -= [ "ext/platform_canvas_unittest.cc" ] |
| 719 } | 720 } |
| 720 | 721 |
| 721 deps = [ | 722 deps = [ |
| 722 ":skia", | 723 ":skia", |
| 723 "//base", | 724 "//base", |
| 724 "//base/test:run_all_unittests", | 725 "//mojo/edk/test:run_all_unittests", |
| 725 "//testing/gtest", | 726 "//testing/gtest", |
| 726 "//ui/gfx", | 727 "//ui/gfx", |
| 727 "//ui/gfx/geometry", | 728 "//ui/gfx/geometry", |
| 728 ] | 729 ] |
| 729 | 730 |
| 730 if (!is_ios) { | 731 if (!is_ios) { |
| 731 deps += [ "//cc:test_support" ] # TODO: Fix this test to not depend on cc. | 732 sources += [ "public/interfaces/test/struct_traits_unittest.cc" ] |
| 733 deps += [ |
| 734 # TODO: Fix this test to not depend on cc. |
| 735 "//cc:test_support", |
| 736 "//mojo/edk/system", |
| 737 "//mojo/public/cpp/bindings", |
| 738 "//skia/public/interfaces:test_interfaces", |
| 739 ] |
| 732 } | 740 } |
| 733 } | 741 } |
| 734 | 742 |
| 735 if (!is_ios) { | 743 if (!is_ios) { |
| 736 executable("image_operations_bench") { | 744 executable("image_operations_bench") { |
| 737 sources = [ | 745 sources = [ |
| 738 "ext/image_operations_bench.cc", | 746 "ext/image_operations_bench.cc", |
| 739 ] | 747 ] |
| 740 | 748 |
| 741 deps = [ | 749 deps = [ |
| (...skipping 12 matching lines...) Expand all Loading... |
| 754 | 762 |
| 755 deps = [ | 763 deps = [ |
| 756 ":skia", | 764 ":skia", |
| 757 "//base", | 765 "//base", |
| 758 "//base/test:test_support", | 766 "//base/test:test_support", |
| 759 "//build/config/sanitizers:deps", | 767 "//build/config/sanitizers:deps", |
| 760 "//build/win:default_exe_manifest", | 768 "//build/win:default_exe_manifest", |
| 761 ] | 769 ] |
| 762 } | 770 } |
| 763 } | 771 } |
| OLD | NEW |