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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16 'skia_library_opts.gyp:skia_opts',
17 '../third_party/zlib/zlib.gyp:zlib',
21 '../third_party/skia/gyp/core.gypi',
22 '../third_party/skia/gyp/effects.gypi',
23 '../third_party/skia/gyp/pdf.gypi',
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',
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',
140 ['skia_support_gpu != 0', {
142 '../third_party/skia/gyp/gpu.gypi',
145 '<@(skgpu_null_gl_sources)',
149 '../third_party/skia/include/gpu',
150 '../third_party/skia/src/gpu',
153 ['skia_support_pdf == 0', {
155 ['exclude', '../third_party/skia/src/pdf/']
158 ['skia_support_pdf == 1', {
160 '../third_party/sfntly/sfntly.gyp:sfntly',
166 '../third_party/WebKit/public/blink_skia_config.gyp:blink_skia_config',
168 'export_dependent_settings': [
169 '../third_party/WebKit/public/blink_skia_config.gyp:blink_skia_config',
177 [ 'OS == "android" and target_arch == "arm"', {
179 '../third_party/skia/src/core/SkUtilsArm.cpp',
182 '../build/android/cpufeatures.gypi',
185 [ 'target_arch == "arm" or target_arch == "arm64" or \
186 target_arch == "mipsel"', {
188 '../third_party/skia/src/opts/opts_check_SSE2.cpp'
191 [ 'desktop_linux == 1 or chromeos == 1', {
193 '../build/linux/system.gyp:fontconfig',
194 '../build/linux/system.gyp:freetype2',
195 '../third_party/icu/icu.gyp:icuuc',
199 '-Wno-unused-function',
202 [ 'use_cairo == 1', {
204 '../build/linux/system.gyp:pangocairo',
207 [ 'OS=="win" or OS=="mac" or OS=="ios" or OS=="android"', {
209 '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp',
210 '../third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp',
213 [ 'OS=="win" or OS=="mac" or OS=="ios"', {
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',
221 [ 'OS == "android"', {
223 '../third_party/expat/expat.gyp:expat',
224 '../third_party/freetype/freetype.gyp:ft2',
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,
230 '../third_party/expat/files/lib',
235 '../third_party/skia/include/utils/ios',
236 '../third_party/skia/include/utils/mac',
240 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
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
247 '../third_party/skia/src/utils/mac/SkStream_mac.cpp',
250 ['exclude', 'opts_check_SSE2\\.cpp$'],
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.
259 'skia_library_opts.gyp:skia_opts_none',
262 'skia_library_opts.gyp:skia_opts',
266 'direct_dependent_settings': {
268 '../third_party/skia/include/utils/mac',
272 '../third_party/skia/include/utils/mac',
276 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
280 '../third_party/skia/src/utils/mac/SkStream_mac.cpp',
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',
290 '../third_party/skia/include/utils/win',
291 '../third_party/skia/src/utils/win',
293 },{ # not 'OS == "win"'
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',
308 # TODO(scottmg): http://crbug.com/177306
312 # Don't warn about string->bool used in asserts.
313 '-Wstring-conversion',
317 '-Wstring-conversion',
321 'target_conditions': [
322 # Pull in specific Mac files for iOS (which have been filtered out
323 # by file name rules).
326 ['include', 'SkFontHost_mac\\.cpp$',],
327 ['include', 'SkStream_mac\\.cpp$',],
328 ['include', 'SkCreateCGImageRef\\.cpp$',],
333 'direct_dependent_settings': {
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',