Disable the tests that crash under ThreadSanitizer after the recent Clang roll:
[chromium-blink-merge.git] / skia / skia_chrome.gypi
blobb5530119101fbba5d0c32f6001860f64e87780fb
1 # Copyright 2013 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 # This gypi file contains all the Chrome-specific enhancements to Skia.
7 # In component mode (shared_lib) it is folded into a single shared library with
8 # the Skia files but in all other cases it is a separate library.
10   'dependencies': [
11     'skia_library',
12     'skia_chrome_opts',
13     '../base/base.gyp:base',
14     '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
15   ],
17   'direct_dependent_settings': {
18     'include_dirs': [
19       'ext',
20     ],
21   },
23   'sources': [
24     'ext/analysis_canvas.cc',
25     'ext/analysis_canvas.h',
26     'ext/benchmarking_canvas.cc',
27     'ext/benchmarking_canvas.h',
28     'ext/bitmap_platform_device.h',
29     'ext/bitmap_platform_device_cairo.cc',
30     'ext/bitmap_platform_device_cairo.h',
31     'ext/bitmap_platform_device_mac.cc',
32     'ext/bitmap_platform_device_mac.h',
33     'ext/bitmap_platform_device_skia.cc',
34     'ext/bitmap_platform_device_skia.h',
35     'ext/bitmap_platform_device_win.cc',
36     'ext/bitmap_platform_device_win.h',
37     'ext/convolver.cc',
38     'ext/convolver.h',
39     'ext/event_tracer_impl.cc',
40     'ext/event_tracer_impl.h',
41     'ext/google_logging.cc',
42     'ext/image_operations.cc',
43     'ext/image_operations.h',
44     'ext/lazy_pixel_ref.cc',
45     'ext/lazy_pixel_ref.h',
46     'ext/opacity_draw_filter.cc',
47     'ext/opacity_draw_filter.h',
48     'ext/paint_simplifier.cc',
49     'ext/paint_simplifier.h',
50     'ext/pixel_ref_utils.cc',
51     'ext/pixel_ref_utils.h',
52     'ext/platform_canvas.cc',
53     'ext/platform_canvas.h',
54     'ext/platform_device.cc',
55     'ext/platform_device.h',
56     'ext/platform_device_linux.cc',
57     'ext/platform_device_mac.cc',
58     'ext/platform_device_win.cc',
59     'ext/recursive_gaussian_convolution.cc',
60     'ext/recursive_gaussian_convolution.h',
61     'ext/refptr.h',
62     'ext/SkDiscardableMemory_chrome.h',
63     'ext/SkDiscardableMemory_chrome.cc',
64     'ext/SkMemory_new_handler.cpp',
65     'ext/skia_trace_shim.h',
66     'ext/skia_utils_base.cc',
67     'ext/skia_utils_base.h',
68     'ext/skia_utils_ios.mm',
69     'ext/skia_utils_ios.h',
70     'ext/skia_utils_mac.mm',
71     'ext/skia_utils_mac.h',
72     'ext/skia_utils_win.cc',
73     'ext/skia_utils_win.h',
74     'ext/vector_canvas.h',
75     'ext/vector_platform_device_emf_win.cc',
76     'ext/vector_platform_device_emf_win.h',
77     'ext/vector_platform_device_skia.cc',
78     'ext/vector_platform_device_skia.h',
79   ],
80   'conditions': [
81     [ 'OS == "android" and enable_printing == 0', {
82       'sources!': [
83         'ext/skia_utils_base.cc',
84       ],
85     }],
86     [ 'enable_printing == 0', {
87       'sources!': [
88         'ext/vector_platform_device_skia.cc',
89       ],
90     }],
91     ['OS == "ios"', {
92       'sources/': [
93         ['exclude', '^ext/vector_platform_device_skia\\.'],
94       ],
95       'dependencies!': [
96         'skia_chrome_opts',
97       ],
98     }],
99     # TODO(scottmg): http://crbug.com/177306
100     ['clang==1', {
101       'xcode_settings': {
102         'WARNING_CFLAGS!': [
103           # Don't warn about string->bool used in asserts.
104           '-Wstring-conversion',
105         ],
106       },
107       'cflags!': [
108         '-Wstring-conversion',
109       ],
110     }],
111     [ 'OS != "android" and (OS != "linux" or use_cairo==1)', {
112       'sources!': [
113         'ext/bitmap_platform_device_skia.cc',
114       ],
115     }],
116   ],
118   'target_conditions': [
119     # Pull in specific linux files for android (which have been filtered out
120     # by file name rules).
121     [ 'OS == "android"', {
122       'sources/': [
123         ['include', 'ext/platform_device_linux\\.cc$'],
124       ],
125     }],
126   ],