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 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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 ":skia_library_config", | 705 ":skia_library_config", |
703 "//build/config/compiler:no_chromium_code", | 706 "//build/config/compiler:no_chromium_code", |
704 ] | 707 ] |
705 | 708 |
706 deps = [ | 709 deps = [ |
707 "//base", | 710 "//base", |
708 ] | 711 ] |
709 | 712 |
710 visibility = [ ":skia" ] | 713 visibility = [ ":skia" ] |
711 } | 714 } |
| 715 |
| 716 test("skia_unittests") { |
| 717 sources = [ |
| 718 "ext/analysis_canvas_unittest.cc", |
| 719 "ext/bitmap_platform_device_mac_unittest.cc", |
| 720 "ext/convolver_unittest.cc", |
| 721 "ext/image_operations_unittest.cc", |
| 722 "ext/pixel_ref_utils_unittest.cc", |
| 723 "ext/platform_canvas_unittest.cc", |
| 724 "ext/recursive_gaussian_convolution_unittest.cc", |
| 725 "ext/refptr_unittest.cc", |
| 726 "ext/skia_utils_ios_unittest.mm", |
| 727 "ext/skia_utils_mac_unittest.mm", |
| 728 "ext/vector_canvas_unittest.cc", |
| 729 ] |
| 730 |
| 731 if (!is_win) { |
| 732 sources -= [ "ext/vector_canvas_unittest.cc" ] |
| 733 } |
| 734 |
| 735 if (!is_win && !is_mac) { |
| 736 sources -= [ "ext/platform_canvas_unittest.cc" ] |
| 737 } |
| 738 |
| 739 deps = [ |
| 740 ":skia", |
| 741 "//base", |
| 742 "//base/test:run_all_unittests", |
| 743 "//testing/gtest", |
| 744 "//ui/gfx", |
| 745 "//ui/gfx/geometry", |
| 746 ] |
| 747 } |
| 748 |
| 749 if (is_android) { |
| 750 # GYP: //skia/skia_tests.gyp:skia_unittests_apk |
| 751 unittest_apk("skia_unittests_apk") { |
| 752 unittests_dep = ":skia_unittests" |
| 753 deps = [ |
| 754 ":skia_unittests", |
| 755 ] |
| 756 } |
| 757 } |
OLD | NEW |