Disable TabDragController tests that fail with a real compositor.
[chromium-blink-merge.git] / skia / skia_library.gypi
blob8d3df47295cd5e02291d48bef3bf0f10cccb2a25
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 the Skia library.
7 # In component mode (shared_lib) it is folded into a single shared library with
8 # the Chrome-specific enhancements but in all other cases it is a separate lib.
10 # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!WARNING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11 # variables and defines should go in skia_common.gypi so they can be seen
12 # by files listed here and in skia_library_opts.gypi.
13 # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!WARNING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
15   'dependencies': [
16     'skia_library_opts.gyp:skia_opts',
17     '../third_party/zlib/zlib.gyp:zlib',
18   ],
20   'includes': [
21     '../third_party/skia/gyp/core.gypi',
22     '../third_party/skia/gyp/effects.gypi',
23     '../third_party/skia/gyp/pdf.gypi',
24   ],
26   'sources': [
27     # this should likely be moved into src/utils in skia
28     '../third_party/skia/src/core/SkFlate.cpp',
29     '../third_party/skia/src/core/SkPaintOptionsAndroid.cpp',
31     '../third_party/skia/src/ports/SkImageDecoder_empty.cpp',
32     '../third_party/skia/src/images/SkScaledBitmapSampler.cpp',
33     '../third_party/skia/src/images/SkScaledBitmapSampler.h',
35     '../third_party/skia/src/opts/opts_check_SSE2.cpp',
37     '../third_party/skia/src/ports/SkPurgeableMemoryBlock_none.cpp',
39     '../third_party/skia/src/ports/SkFontConfigInterface_android.cpp',
40     '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp',
42     '../third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp',
43     '../third_party/skia/src/ports/SkFontHost_fontconfig.cpp',
45     '../third_party/skia/src/ports/SkFontHost_FreeType.cpp',
46     '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp',
47     '../third_party/skia/src/ports/SkFontHost_FreeType_common.h',
48     '../third_party/skia/src/ports/SkFontConfigParser_android.cpp',
49     '../third_party/skia/src/ports/SkFontHost_mac.cpp',
50     '../third_party/skia/src/ports/SkFontHost_win.cpp',
51     '../third_party/skia/src/ports/SkFontHost_win_dw.cpp',
52     '../third_party/skia/src/ports/SkFontMgr_default_gdi.cpp',
53     '../third_party/skia/src/ports/SkGlobalInitialization_chromium.cpp',
54     '../third_party/skia/src/ports/SkOSFile_posix.cpp',
55     '../third_party/skia/src/ports/SkOSFile_stdio.cpp',
56     '../third_party/skia/src/ports/SkOSFile_win.cpp',
57     '../third_party/skia/src/ports/SkTime_Unix.cpp',
58     '../third_party/skia/src/ports/SkTLS_pthread.cpp',
59     '../third_party/skia/src/ports/SkTLS_win.cpp',
61     '../third_party/skia/src/sfnt/SkOTTable_name.cpp',
62     '../third_party/skia/src/sfnt/SkOTTable_name.h',
63     '../third_party/skia/src/sfnt/SkOTUtils.cpp',
64     '../third_party/skia/src/sfnt/SkOTUtils.h',
66     '../third_party/skia/include/utils/mac/SkCGUtils.h',
67     '../third_party/skia/include/utils/SkDeferredCanvas.h',
68     '../third_party/skia/include/utils/SkMatrix44.h',
69     '../third_party/skia/src/utils/debugger/SkDebugCanvas.cpp',
70     '../third_party/skia/src/utils/debugger/SkDebugCanvas.h',
71     '../third_party/skia/src/utils/debugger/SkDrawCommand.cpp',
72     '../third_party/skia/src/utils/debugger/SkDrawCommand.h',
73     '../third_party/skia/src/utils/debugger/SkObjectParser.cpp',
74     '../third_party/skia/src/utils/debugger/SkObjectParser.h',
75     '../third_party/skia/src/utils/mac/SkCreateCGImageRef.cpp',
76     '../third_party/skia/src/utils/SkBase64.cpp',
77     '../third_party/skia/src/utils/SkBase64.h',
78     '../third_party/skia/src/utils/SkBitSet.cpp',
79     '../third_party/skia/src/utils/SkBitSet.h',
80     '../third_party/skia/src/utils/SkCanvasStack.cpp',
81     '../third_party/skia/src/utils/SkCanvasStateUtils.cpp',
82     '../third_party/skia/src/utils/SkDeferredCanvas.cpp',
83     '../third_party/skia/src/utils/SkMatrix44.cpp',
84     '../third_party/skia/src/utils/SkNullCanvas.cpp',
85     '../third_party/skia/include/utils/SkNWayCanvas.h',
86     '../third_party/skia/src/utils/SkNWayCanvas.cpp',
87     '../third_party/skia/src/utils/SkPictureUtils.cpp',
88     '../third_party/skia/src/utils/SkProxyCanvas.cpp',
89     '../third_party/skia/src/utils/SkRTConf.cpp',
90     '../third_party/skia/include/utils/SkRTConf.h',
91     '../third_party/skia/src/utils/win/SkDWriteFontFileStream.cpp',
92     '../third_party/skia/src/utils/win/SkDWriteFontFileStream.h',
93     '../third_party/skia/src/utils/win/SkDWriteGeometrySink.cpp',
94     '../third_party/skia/src/utils/win/SkDWriteGeometrySink.h',
95     '../third_party/skia/src/utils/win/SkHRESULT.cpp',
97     '../third_party/skia/include/ports/SkTypeface_win.h',
99     '../third_party/skia/include/images/SkImageRef.h',
100     '../third_party/skia/include/images/SkImageRef_GlobalPool.h',
101     '../third_party/skia/include/images/SkMovie.h',
102     '../third_party/skia/include/images/SkPageFlipper.h',
104     '../third_party/skia/include/utils/SkNullCanvas.h',
105     '../third_party/skia/include/utils/SkPictureUtils.h',
106     '../third_party/skia/include/utils/SkProxyCanvas.h',
107   ],
108   'include_dirs': [
109     '../third_party/skia/include/core',
110     '../third_party/skia/include/effects',
111     '../third_party/skia/include/images',
112     '../third_party/skia/include/lazy',
113     '../third_party/skia/include/pathops',
114     '../third_party/skia/include/pdf',
115     '../third_party/skia/include/pipe',
116     '../third_party/skia/include/ports',
117     '../third_party/skia/include/utils',
118     '../third_party/skia/src/core',
119     '../third_party/skia/src/opts',
120     '../third_party/skia/src/image',
121     '../third_party/skia/src/ports',
122     '../third_party/skia/src/sfnt',
123     '../third_party/skia/src/utils',
124     '../third_party/skia/src/lazy',
125   ],
126   'conditions': [
127     ['skia_support_gpu != 0', {
128       'includes': [
129         '../third_party/skia/gyp/gpu.gypi',
130       ],
131       'sources': [
132         '<@(skgpu_null_gl_sources)',
133         '<@(skgpu_sources)',
134       ],
135       'include_dirs': [
136         '../third_party/skia/include/gpu',
137         '../third_party/skia/src/gpu',
138       ],
139     }],
140     ['skia_support_pdf == 0', {
141       'sources/': [
142         ['exclude', '../third_party/skia/src/pdf/']
143       ],
144     }],
145     ['skia_support_pdf == 1', {
146       'dependencies': [
147         '../third_party/sfntly/sfntly.gyp:sfntly',
148       ],
149     }],
151     [ 'OS != "ios"', {
152       'dependencies': [
153         '../third_party/WebKit/public/blink_skia_config.gyp:blink_skia_config',
154       ],
155       'export_dependent_settings': [
156         '../third_party/WebKit/public/blink_skia_config.gyp:blink_skia_config',
157       ],
158     }],
159     [ 'OS != "mac"', {
160       'sources/': [
161         ['exclude', '/mac/']
162       ],
163     }],
164     [ 'OS == "android" and target_arch == "arm"', {
165       'sources': [
166         '../third_party/skia/src/core/SkUtilsArm.cpp',
167       ],
168       'includes': [
169         '../build/android/cpufeatures.gypi',
170       ],
171     }],
172     [ 'target_arch == "arm" or target_arch == "mipsel"', {
173       'sources!': [
174         '../third_party/skia/src/opts/opts_check_SSE2.cpp'
175       ],
176     }],
177     [ 'desktop_linux == 1 or chromeos == 1', {
178       'dependencies': [
179         '../build/linux/system.gyp:fontconfig',
180         '../build/linux/system.gyp:freetype2',
181         '../third_party/icu/icu.gyp:icuuc',
182       ],
183       'cflags': [
184         '-Wno-unused',
185         '-Wno-unused-function',
186       ],
187     }],
188     [ 'use_cairo == 1', {
189       'dependencies': [
190         '../build/linux/system.gyp:pangocairo',
191       ],
192     }],
193     [ 'OS=="win" or OS=="mac" or OS=="ios" or OS=="android"', {
194       'sources!': [
195         '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp',
196         '../third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp',
197       ],
198     }],
199     [ 'OS=="win" or OS=="mac" or OS=="ios"', {
200       'sources!': [
201         '../third_party/skia/src/ports/SkFontHost_FreeType.cpp',
202         '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp',
203         '../third_party/skia/src/ports/SkFontHost_fontconfig.cpp',
205       ],
206     }],
207     [ 'OS == "android"', {
208       'dependencies': [
209         '../third_party/expat/expat.gyp:expat',
210         '../third_party/freetype/freetype.gyp:ft2',
211       ],
212       # This exports a hard dependency because it needs to run its
213       # symlink action in order to expose the skia header files.
214       'hard_dependency': 1,
215       'include_dirs': [
216         '../third_party/expat/files/lib',
217       ],
218     }],
219     [ 'OS == "ios"', {
220       'include_dirs': [
221         '../third_party/skia/include/utils/ios',
222         '../third_party/skia/include/utils/mac',
223       ],
224       'link_settings': {
225         'libraries': [
226           '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
227         ],
228       },
229       'sources': [
230         # This file is used on both iOS and Mac, so it should be removed
231         #  from the ios and mac conditions and moved into the main sources
232         #  list.
233         '../third_party/skia/src/utils/mac/SkStream_mac.cpp',
234       ],
235       'sources/': [
236         ['exclude', 'opts_check_SSE2\\.cpp$'],
237       ],
239       # The main skia_opts target does not currently work on iOS because the
240       # target architecture on iOS is determined at compile time rather than
241       # gyp time (simulator builds are x86, device builds are arm).  As a
242       # temporary measure, this is a separate opts target for iOS-only, using
243       # the _none.cpp files to avoid architecture-dependent implementations.
244       'dependencies': [
245         'skia_library_opts.gyp:skia_opts_none',
246       ],
247       'dependencies!': [
248         'skia_library_opts.gyp:skia_opts',
249       ],
250     }],
251     [ 'OS == "mac"', {
252       'direct_dependent_settings': {
253         'include_dirs': [
254           '../third_party/skia/include/utils/mac',
255         ],
256       },
257       'include_dirs': [
258         '../third_party/skia/include/utils/mac',
259       ],
260       'link_settings': {
261         'libraries': [
262           '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
263         ],
264       },
265       'sources': [
266         '../third_party/skia/src/utils/mac/SkStream_mac.cpp',
267       ],
268     }],
269     [ 'OS == "win"', {
270       'sources!': [
271         '../third_party/skia/src/ports/SkOSFile_posix.cpp',
272         '../third_party/skia/src/ports/SkTime_Unix.cpp',
273         '../third_party/skia/src/ports/SkTLS_pthread.cpp',
274       ],
275       'include_dirs': [
276         '../third_party/skia/include/utils/win',
277         '../third_party/skia/src/utils/win',
278       ],
279     },{ # not 'OS == "win"'
280       'sources!': [
281         '../third_party/skia/src/ports/SkFontHost_win_dw.cpp',
282         '../third_party/skia/src/ports/SkFontMgr_default_gdi.cpp',
284         '../third_party/skia/src/utils/win/SkDWriteFontFileStream.cpp',
285         '../third_party/skia/src/utils/win/SkDWriteFontFileStream.h',
286         '../third_party/skia/src/utils/win/SkDWriteGeometrySink.cpp',
287         '../third_party/skia/src/utils/win/SkDWriteGeometrySink.h',
288         '../third_party/skia/src/utils/win/SkHRESULT.cpp',
289       ],
290     }],
291     # TODO(scottmg): http://crbug.com/177306
292     ['clang==1', {
293       'xcode_settings': {
294         'WARNING_CFLAGS!': [
295           # Don't warn about string->bool used in asserts.
296           '-Wstring-conversion',
297         ],
298       },
299       'cflags!': [
300         '-Wstring-conversion',
301       ],
302     }],
303   ],
304   'target_conditions': [
305     # Pull in specific Mac files for iOS (which have been filtered out
306     # by file name rules).
307     [ 'OS == "ios"', {
308       'sources/': [
309         ['include', 'SkFontHost_mac\\.cpp$',],
310         ['include', 'SkStream_mac\\.cpp$',],
311         ['include', 'SkCreateCGImageRef\\.cpp$',],
312       ],
313     }],
314   ],
316   'direct_dependent_settings': {
317     'include_dirs': [
318       #temporary until we can hide SkFontHost
319       '../third_party/skia/src/core',
321       '../third_party/skia/include/core',
322       '../third_party/skia/include/effects',
323       '../third_party/skia/include/pdf',
324       '../third_party/skia/include/gpu',
325       '../third_party/skia/include/lazy',
326       '../third_party/skia/include/pathops',
327       '../third_party/skia/include/pipe',
328       '../third_party/skia/include/ports',
329       '../third_party/skia/include/utils',
330     ],
331   },