Don't add an aura tooltip to bubble close buttons on Windows.
[chromium-blink-merge.git] / skia / skia_library.gypi
blob075f25c45a18a5f0a30e8e47ecbf33c82fb72842
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     '../third_party/skia/gyp/utils.gypi',
25   ],
27   'sources': [
28     # this should likely be moved into src/utils in skia
29     '../third_party/skia/src/core/SkFlate.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/ports/SkFontConfigInterface_direct.cpp',
37     '../third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp',
38     '../third_party/skia/src/ports/SkFontHost_fontconfig.cpp',
40     '../third_party/skia/src/fonts/SkFontMgr_indirect.cpp',
41     '../third_party/skia/src/fonts/SkRemotableFontMgr.cpp',
42     '../third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp',
44     '../third_party/skia/src/ports/SkImageGenerator_none.cpp',
46     '../third_party/skia/src/ports/SkFontHost_FreeType.cpp',
47     '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp',
48     '../third_party/skia/src/ports/SkFontHost_FreeType_common.h',
49     '../third_party/skia/src/ports/SkFontConfigParser_android.cpp',
50     '../third_party/skia/src/ports/SkFontHost_mac.cpp',
51     '../third_party/skia/src/ports/SkFontHost_win.cpp',
52     "../third_party/skia/src/ports/SkFontMgr_android.cpp",
53     '../third_party/skia/src/ports/SkFontMgr_win_dw.cpp',
54     '../third_party/skia/src/ports/SkGlobalInitialization_chromium.cpp',
55     '../third_party/skia/src/ports/SkOSFile_posix.cpp',
56     '../third_party/skia/src/ports/SkOSFile_stdio.cpp',
57     '../third_party/skia/src/ports/SkOSFile_win.cpp',
58     '../third_party/skia/src/ports/SkScalerContext_win_dw.cpp',
59     '../third_party/skia/src/ports/SkScalerContext_win_dw.h',
60     '../third_party/skia/src/ports/SkTime_Unix.cpp',
61     '../third_party/skia/src/ports/SkTLS_pthread.cpp',
62     '../third_party/skia/src/ports/SkTLS_win.cpp',
63     '../third_party/skia/src/ports/SkTypeface_win_dw.cpp',
64     '../third_party/skia/src/ports/SkTypeface_win_dw.h',
66     '../third_party/skia/src/sfnt/SkOTTable_name.cpp',
67     '../third_party/skia/src/sfnt/SkOTTable_name.h',
68     '../third_party/skia/src/sfnt/SkOTUtils.cpp',
69     '../third_party/skia/src/sfnt/SkOTUtils.h',
71     '../third_party/skia/include/core/SkFontStyle.h',
73     '../third_party/skia/include/images/SkMovie.h',
74     '../third_party/skia/include/images/SkPageFlipper.h',
76     '../third_party/skia/include/ports/SkFontConfigInterface.h',
77     '../third_party/skia/include/ports/SkFontMgr.h',
78     '../third_party/skia/include/ports/SkFontMgr_indirect.h',
79     '../third_party/skia/include/ports/SkRemotableFontMgr.h',
80     '../third_party/skia/include/ports/SkTypeface_win.h',
81   ],
83   # Exclude all unused files in skia utils.gypi file
84   'sources!': [
85   '../third_party/skia/include/utils/SkBoundaryPatch.h',
86   '../third_party/skia/include/utils/SkFrontBufferedStream.h',
87   '../third_party/skia/include/utils/SkCamera.h',
88   '../third_party/skia/include/utils/SkCanvasStateUtils.h',
89   '../third_party/skia/include/utils/SkCubicInterval.h',
90   '../third_party/skia/include/utils/SkCullPoints.h',
91   '../third_party/skia/include/utils/SkDebugUtils.h',
92   '../third_party/skia/include/utils/SkDumpCanvas.h',
93   '../third_party/skia/include/utils/SkEventTracer.h',
94   '../third_party/skia/include/utils/SkInterpolator.h',
95   '../third_party/skia/include/utils/SkLayer.h',
96   '../third_party/skia/include/utils/SkMeshUtils.h',
97   '../third_party/skia/include/utils/SkNinePatch.h',
98   '../third_party/skia/include/utils/SkParsePaint.h',
99   '../third_party/skia/include/utils/SkParsePath.h',
100   '../third_party/skia/include/utils/SkRandom.h',
102   '../third_party/skia/src/utils/SkBitmapHasher.cpp',
103   '../third_party/skia/src/utils/SkBitmapHasher.h',
104   '../third_party/skia/src/utils/SkBoundaryPatch.cpp',
105   '../third_party/skia/src/utils/SkFrontBufferedStream.cpp',
106   '../third_party/skia/src/utils/SkCamera.cpp',
107   '../third_party/skia/src/utils/SkCanvasStack.h',
108   '../third_party/skia/src/utils/SkCubicInterval.cpp',
109   '../third_party/skia/src/utils/SkCullPoints.cpp',
110   '../third_party/skia/src/utils/SkDumpCanvas.cpp',
111   '../third_party/skia/src/utils/SkFloatUtils.h',
112   '../third_party/skia/src/utils/SkInterpolator.cpp',
113   '../third_party/skia/src/utils/SkLayer.cpp',
114   '../third_party/skia/src/utils/SkMD5.cpp',
115   '../third_party/skia/src/utils/SkMD5.h',
116   '../third_party/skia/src/utils/SkMeshUtils.cpp',
117   '../third_party/skia/src/utils/SkNinePatch.cpp',
118   '../third_party/skia/src/utils/SkOSFile.cpp',
119   '../third_party/skia/src/utils/SkParsePath.cpp',
120   '../third_party/skia/src/utils/SkPathUtils.cpp',
121   '../third_party/skia/src/utils/SkSHA1.cpp',
122   '../third_party/skia/src/utils/SkSHA1.h',
123   '../third_party/skia/src/utils/SkTFitsIn.h',
124   '../third_party/skia/src/utils/SkTLogic.h',
126   # We don't currently need to change thread affinity, so leave out this complexity for now.
127   "../third_party/skia/src/utils/SkThreadUtils_pthread_mach.cpp",
128   "../third_party/skia/src/utils/SkThreadUtils_pthread_linux.cpp",
130 #windows
131   '../third_party/skia/include/utils/win/SkAutoCoInitialize.h',
132   '../third_party/skia/include/utils/win/SkHRESULT.h',
133   '../third_party/skia/include/utils/win/SkIStream.h',
134   '../third_party/skia/include/utils/win/SkTScopedComPtr.h',
135   '../third_party/skia/src/utils/win/SkAutoCoInitialize.cpp',
136   '../third_party/skia/src/utils/win/SkIStream.cpp',
137   '../third_party/skia/src/utils/win/SkWGL_win.cpp',
139 #testing
140   '../third_party/skia/src/fonts/SkGScalerContext.cpp',
141   '../third_party/skia/src/fonts/SkGScalerContext.h',
142   ],
144   'include_dirs': [
145     '../third_party/skia/include/c',
146     '../third_party/skia/include/core',
147     '../third_party/skia/include/effects',
148     '../third_party/skia/include/images',
149     '../third_party/skia/include/lazy',
150     '../third_party/skia/include/pathops',
151     '../third_party/skia/include/pdf',
152     '../third_party/skia/include/pipe',
153     '../third_party/skia/include/ports',
154     '../third_party/skia/include/record',
155     '../third_party/skia/include/utils',
156     '../third_party/skia/src/core',
157     '../third_party/skia/src/opts',
158     '../third_party/skia/src/image',
159     '../third_party/skia/src/pdf',
160     '../third_party/skia/src/ports',
161     '../third_party/skia/src/sfnt',
162     '../third_party/skia/src/utils',
163     '../third_party/skia/src/lazy',
164   ],
165   'conditions': [
166     ['skia_support_gpu != 0', {
167       'includes': [
168         '../third_party/skia/gyp/gpu.gypi',
169       ],
170       'sources': [
171         '<@(skgpu_null_gl_sources)',
172         '<@(skgpu_sources)',
173       ],
174       'include_dirs': [
175         '../third_party/skia/include/gpu',
176         '../third_party/skia/src/gpu',
177       ],
178     }],
179     ['skia_support_pdf == 0', {
180       'sources/': [
181         ['exclude', '../third_party/skia/src/doc/SkDocument_PDF.cpp'],
182         ['exclude', '../third_party/skia/src/pdf/'],
183       ],
184     }],
185     ['skia_support_pdf == 1', {
186       'dependencies': [
187         '../third_party/sfntly/sfntly.gyp:sfntly',
188       ],
189     }],
191     [ 'OS == "win"', {
192       'sources!': [
193         # Keeping _win.cpp
194         "../third_party/skia/src/utils/SkThreadUtils_pthread.cpp",
195         "../third_party/skia/src/utils/SkThreadUtils_pthread_other.cpp",
196       ],
197     },{
198       'sources!': [
199         # Keeping _pthread.cpp and _pthread_other.cpp
200         "../third_party/skia/src/utils/SkThreadUtils_win.cpp",
201       ],
202     }],
204     [ 'OS != "mac"', {
205       'sources/': [
206         ['exclude', '/mac/']
207       ],
208     }],
209     [ 'OS == "android" and target_arch == "arm"', {
210       'sources': [
211         '../third_party/skia/src/core/SkUtilsArm.cpp',
212       ],
213       'dependencies': [
214         '../build/android/ndk.gyp:cpu_features',
215       ],
216     }],
217     [ 'desktop_linux == 1 or chromeos == 1', {
218       'dependencies': [
219         '../build/linux/system.gyp:fontconfig',
220         '../build/linux/system.gyp:freetype2',
221         '../third_party/icu/icu.gyp:icuuc',
222       ],
223       'cflags': [
224         '-Wno-unused',
225         '-Wno-unused-function',
226       ],
227     }],
228     [ 'use_cairo == 1 and use_pango == 1', {
229       'dependencies': [
230         '../build/linux/system.gyp:pangocairo',
231       ],
232     }],
233     [ 'OS=="win" or OS=="mac" or OS=="ios" or OS=="android"', {
234       'sources!': [
235         '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp',
236         '../third_party/skia/src/ports/SkFontHost_fontconfig.cpp',
237         '../third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp',
238       ],
239     }],
240     [ 'OS=="win" or OS=="mac" or OS=="ios"', {
241       'sources!': [
242         '../third_party/skia/src/ports/SkFontHost_FreeType.cpp',
243         '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp',
245       ],
246     }],
247     [ 'OS == "android"', {
248       'dependencies': [
249         '../third_party/expat/expat.gyp:expat',
250         '../third_party/freetype/freetype.gyp:ft2',
251       ],
252       # This exports a hard dependency because it needs to run its
253       # symlink action in order to expose the skia header files.
254       'hard_dependency': 1,
255       'include_dirs': [
256         '../third_party/expat/files/lib',
257       ],
258     }],
259     [ 'OS == "ios"', {
260       'include_dirs': [
261         '../third_party/skia/include/utils/ios',
262         '../third_party/skia/include/utils/mac',
263       ],
264       'link_settings': {
265         'libraries': [
266           '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
267         ],
268       },
269       'sources': [
270         # This file is used on both iOS and Mac, so it should be removed
271         #  from the ios and mac conditions and moved into the main sources
272         #  list.
273         '../third_party/skia/src/utils/mac/SkStream_mac.cpp',
274       ],
276       # The main skia_opts target does not currently work on iOS because the
277       # target architecture on iOS is determined at compile time rather than
278       # gyp time (simulator builds are x86, device builds are arm).  As a
279       # temporary measure, this is a separate opts target for iOS-only, using
280       # the _none.cpp files to avoid architecture-dependent implementations.
281       'dependencies': [
282         'skia_library_opts.gyp:skia_opts_none',
283       ],
284       'dependencies!': [
285         'skia_library_opts.gyp:skia_opts',
286       ],
287     }],
288     [ 'OS == "mac"', {
289       'direct_dependent_settings': {
290         'include_dirs': [
291           '../third_party/skia/include/utils/mac',
292         ],
293       },
294       'include_dirs': [
295         '../third_party/skia/include/utils/mac',
296       ],
297       'link_settings': {
298         'libraries': [
299           '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
300         ],
301       },
302       'sources': [
303         '../third_party/skia/src/utils/mac/SkStream_mac.cpp',
304       ],
305     }],
306     [ 'OS == "win"', {
307       'sources!': [
308         '../third_party/skia/src/ports/SkOSFile_posix.cpp',
309         '../third_party/skia/src/ports/SkTime_Unix.cpp',
310         '../third_party/skia/src/ports/SkTLS_pthread.cpp',
311       ],
312       'include_dirs': [
313         '../third_party/skia/include/utils/win',
314         '../third_party/skia/src/utils/win',
315       ],
316     },{ # not 'OS == "win"'
317       'sources!': [
318         '../third_party/skia/src/ports/SkFontMgr_win_dw.cpp',
319         '../third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp',
320         '../third_party/skia/src/ports/SkScalerContext_win_dw.cpp',
321         '../third_party/skia/src/ports/SkScalerContext_win_dw.h',
322         '../third_party/skia/src/ports/SkTypeface_win_dw.cpp',
323         '../third_party/skia/src/ports/SkTypeface_win_dw.h',
325         '../third_party/skia/src/utils/win/SkDWrite.h',
326         '../third_party/skia/src/utils/win/SkDWrite.cpp',
327         '../third_party/skia/src/utils/win/SkDWriteFontFileStream.cpp',
328         '../third_party/skia/src/utils/win/SkDWriteFontFileStream.h',
329         '../third_party/skia/src/utils/win/SkDWriteGeometrySink.cpp',
330         '../third_party/skia/src/utils/win/SkDWriteGeometrySink.h',
331         '../third_party/skia/src/utils/win/SkHRESULT.cpp',
332       ],
333     }],
334   ],
335   'target_conditions': [
336     # Pull in specific Mac files for iOS (which have been filtered out
337     # by file name rules).
338     [ 'OS == "ios"', {
339       'sources/': [
340         ['include', 'SkFontHost_mac\\.cpp$',],
341         ['include', 'SkStream_mac\\.cpp$',],
342         ['include', 'SkCreateCGImageRef\\.cpp$',],
343       ],
344       'xcode_settings' : {
345         'WARNING_CFLAGS': [
346           # SkFontHost_mac.cpp uses API deprecated in iOS 7.
347           # crbug.com/408571
348           '-Wno-deprecated-declarations',
349         ],
350       },
351     }],
352   ],
354   'direct_dependent_settings': {
355     'include_dirs': [
356       '../third_party/skia/include/core',
357       '../third_party/skia/include/effects',
358       '../third_party/skia/include/pdf',
359       '../third_party/skia/include/gpu',
360       '../third_party/skia/include/lazy',
361       '../third_party/skia/include/pathops',
362       '../third_party/skia/include/pipe',
363       '../third_party/skia/include/ports',
364       '../third_party/skia/include/utils',
365     ],
366   },