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