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

Side by Side Diff: skia/BUILD.gn

Issue 837243002: Reland "skia: Add 'skia_unittests' test suite for this directory." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 11 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 | « chrome/chrome_tests_unit.gypi ('k') | skia/ext/platform_canvas_unittest.cc » ('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 if (cpu_arch == "arm") { 7 if (cpu_arch == "arm") {
8 import("//build/config/arm.gni") 8 import("//build/config/arm.gni")
9 } 9 }
10 if (is_android) {
11 import("//build/config/android/rules.gni")
12 }
10 13
11 skia_support_gpu = !is_ios 14 skia_support_gpu = !is_ios
12 skia_support_pdf = !is_ios && (enable_basic_printing || enable_print_preview) 15 skia_support_pdf = !is_ios && (enable_basic_printing || enable_print_preview)
13 16
14 # The list of Skia defines that are to be set for blink. 17 # The list of Skia defines that are to be set for blink.
15 gypi_blink_skia_defines = 18 gypi_blink_skia_defines =
16 exec_script("//build/gypi_to_gn.py", 19 exec_script("//build/gypi_to_gn.py",
17 [ 20 [
18 rebase_path( 21 rebase_path(
19 "//third_party/WebKit/public/blink_skia_config.gypi"), 22 "//third_party/WebKit/public/blink_skia_config.gypi"),
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 ":skia_library_config", 706 ":skia_library_config",
704 "//build/config/compiler:no_chromium_code", 707 "//build/config/compiler:no_chromium_code",
705 ] 708 ]
706 709
707 deps = [ 710 deps = [
708 "//base", 711 "//base",
709 ] 712 ]
710 713
711 visibility = [ ":skia" ] 714 visibility = [ ":skia" ]
712 } 715 }
716
717 test("skia_unittests") {
718 sources = [
719 "ext/analysis_canvas_unittest.cc",
720 "ext/bitmap_platform_device_mac_unittest.cc",
721 "ext/convolver_unittest.cc",
722 "ext/image_operations_unittest.cc",
723 "ext/pixel_ref_utils_unittest.cc",
724 "ext/platform_canvas_unittest.cc",
725 "ext/recursive_gaussian_convolution_unittest.cc",
726 "ext/refptr_unittest.cc",
727 "ext/skia_utils_ios_unittest.mm",
728 "ext/skia_utils_mac_unittest.mm",
729 "ext/vector_canvas_unittest.cc",
730 ]
731
732 if (!is_win) {
733 sources -= [ "ext/vector_canvas_unittest.cc" ]
734 }
735
736 if (!is_win && !is_mac) {
737 sources -= [ "ext/platform_canvas_unittest.cc" ]
738 }
739
740 deps = [
741 ":skia",
742 "//base",
743 "//base/test:run_all_unittests",
744 "//testing/gtest",
745 "//ui/gfx",
746 "//ui/gfx/geometry",
747 ]
748 }
749
750 if (is_android) {
751 # GYP: //skia/skia_tests.gyp:skia_unittests_apk
752 unittest_apk("skia_unittests_apk") {
753 unittests_dep = ":skia_unittests"
754 deps = [
755 ":skia_unittests",
756 ]
757 }
758 }
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | skia/ext/platform_canvas_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698