Roll src/third_party/WebKit 4619053:6b63e20 (svn 201059:201060)
[chromium-blink-merge.git] / skia / skia_tests.gyp
blobf120d7c5604c75e04a3b88f8735331369a9cf83c
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       'target_name': 'skia_unittests',
12       'type': '<(gtest_target_type)',
13       'dependencies': [
14         '../base/base.gyp:base',
15         '../base/base.gyp:run_all_unittests',
16         '../testing/gtest.gyp:gtest',
17         '../skia/skia.gyp:skia',
18         '../ui/gfx/gfx.gyp:gfx',
19         '../ui/gfx/gfx.gyp:gfx_geometry',
20       ],
21       'sources': [
22         'ext/analysis_canvas_unittest.cc',
23         'ext/bitmap_platform_device_mac_unittest.cc',
24         'ext/convolver_unittest.cc',
25         'ext/image_operations_unittest.cc',
26         'ext/pixel_ref_utils_unittest.cc',
27         'ext/platform_canvas_unittest.cc',
28         'ext/recursive_gaussian_convolution_unittest.cc',
29         'ext/refptr_unittest.cc',
30         'ext/skia_memory_dump_provider_unittest.cc',
31         'ext/skia_utils_ios_unittest.mm',
32         'ext/skia_utils_mac_unittest.mm',
33       ],
34       'conditions': [
35         ['OS != "win" and OS != "mac"', {
36           'sources!': [
37             'ext/platform_canvas_unittest.cc',
38           ],
39         }],
40         ['OS == "android"', {
41           'dependencies': [
42             '../testing/android/native_test.gyp:native_test_native_code',
43           ],
44         }],
45       ],
46     },
47   ],
48   'conditions': [
49     ['OS == "android"', {
50       'targets': [
51         {
52           'target_name': 'skia_unittests_apk',
53           'type': 'none',
54           'dependencies': [
55             'skia_unittests',
56           ],
57           'variables': {
58             'test_suite_name': 'skia_unittests',
59           },
60           'includes': [ '../build/apk_test.gypi' ],
61         },
62       ],
63     }],
64     ['test_isolation_mode != "noop"', {
65       'targets': [
66         {
67           'target_name': 'skia_unittests_run',
68           'type': 'none',
69           'dependencies': [
70             'skia_unittests',
71           ],
72           'includes': [
73             '../build/isolate.gypi',
74           ],
75           'sources': [
76             'skia_unittests.isolate',
77           ],
78         },
79       ],
80     }],
81   ],