Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Side by Side Diff: skia/BUILD.gn

Issue 2040233002: Implement sk_sp<SkImageFilter> StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't build StructTraitsTest on iOS Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | skia/public/interfaces/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | skia/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698