blob: 24b3fac1c6187ed6168c5f02e2afdff55c77b2f2 [file] [log] [blame]
[email protected]9d6bc352013-07-23 13:00:101# 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.
4
5
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.
[email protected]6f2b1c92013-12-17 22:42:489
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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[email protected]9d6bc352013-07-23 13:00:1014{
15 'dependencies': [
16 'skia_library_opts.gyp:skia_opts',
17 '../third_party/zlib/zlib.gyp:zlib',
18 ],
19
[email protected]9d6bc352013-07-23 13:00:1020 'includes': [
21 '../third_party/skia/gyp/core.gypi',
22 '../third_party/skia/gyp/effects.gypi',
[email protected]92096c052013-08-27 11:21:0823 '../third_party/skia/gyp/pdf.gypi',
[email protected]9d6bc352013-07-23 13:00:1024 ],
25
26 'sources': [
27 # this should likely be moved into src/utils in skia
28 '../third_party/skia/src/core/SkFlate.cpp',
[email protected]9d6bc352013-07-23 13:00:1029 '../third_party/skia/src/core/SkPaintOptionsAndroid.cpp',
30
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',
34
35 '../third_party/skia/src/opts/opts_check_SSE2.cpp',
36
[email protected]9d6bc352013-07-23 13:00:1037 '../third_party/skia/src/ports/SkPurgeableMemoryBlock_none.cpp',
38
39 '../third_party/skia/src/ports/SkFontConfigInterface_android.cpp',
40 '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp',
41
42 '../third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp',
43 '../third_party/skia/src/ports/SkFontHost_fontconfig.cpp',
44
[email protected]6ea5ec082014-03-24 16:18:3945 '../third_party/skia/src/fonts/SkFontMgr_indirect.cpp',
46 '../third_party/skia/src/fonts/SkRemotableFontMgr.cpp',
47 '../third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp',
48
[email protected]9d6bc352013-07-23 13:00:1049 '../third_party/skia/src/ports/SkFontHost_FreeType.cpp',
50 '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp',
51 '../third_party/skia/src/ports/SkFontHost_FreeType_common.h',
52 '../third_party/skia/src/ports/SkFontConfigParser_android.cpp',
53 '../third_party/skia/src/ports/SkFontHost_mac.cpp',
54 '../third_party/skia/src/ports/SkFontHost_win.cpp',
[email protected]1d93409e2013-08-21 17:13:1955 '../third_party/skia/src/ports/SkFontHost_win_dw.cpp',
56 '../third_party/skia/src/ports/SkFontMgr_default_gdi.cpp',
[email protected]9d6bc352013-07-23 13:00:1057 '../third_party/skia/src/ports/SkGlobalInitialization_chromium.cpp',
58 '../third_party/skia/src/ports/SkOSFile_posix.cpp',
59 '../third_party/skia/src/ports/SkOSFile_stdio.cpp',
60 '../third_party/skia/src/ports/SkOSFile_win.cpp',
[email protected]9d6bc352013-07-23 13:00:1061 '../third_party/skia/src/ports/SkTime_Unix.cpp',
62 '../third_party/skia/src/ports/SkTLS_pthread.cpp',
63 '../third_party/skia/src/ports/SkTLS_win.cpp',
64
[email protected]596de2e2013-08-07 14:41:0465 '../third_party/skia/src/sfnt/SkOTTable_name.cpp',
66 '../third_party/skia/src/sfnt/SkOTTable_name.h',
[email protected]9d6bc352013-07-23 13:00:1067 '../third_party/skia/src/sfnt/SkOTUtils.cpp',
68 '../third_party/skia/src/sfnt/SkOTUtils.h',
69
70 '../third_party/skia/include/utils/mac/SkCGUtils.h',
71 '../third_party/skia/include/utils/SkDeferredCanvas.h',
72 '../third_party/skia/include/utils/SkMatrix44.h',
73 '../third_party/skia/src/utils/debugger/SkDebugCanvas.cpp',
74 '../third_party/skia/src/utils/debugger/SkDebugCanvas.h',
75 '../third_party/skia/src/utils/debugger/SkDrawCommand.cpp',
76 '../third_party/skia/src/utils/debugger/SkDrawCommand.h',
77 '../third_party/skia/src/utils/debugger/SkObjectParser.cpp',
78 '../third_party/skia/src/utils/debugger/SkObjectParser.h',
79 '../third_party/skia/src/utils/mac/SkCreateCGImageRef.cpp',
80 '../third_party/skia/src/utils/SkBase64.cpp',
81 '../third_party/skia/src/utils/SkBase64.h',
82 '../third_party/skia/src/utils/SkBitSet.cpp',
83 '../third_party/skia/src/utils/SkBitSet.h',
[email protected]996b11ad2013-09-06 06:01:2884 '../third_party/skia/src/utils/SkCanvasStack.cpp',
85 '../third_party/skia/src/utils/SkCanvasStateUtils.cpp',
[email protected]b48c53ad2014-02-05 21:59:1886 '../third_party/skia/src/utils/SkEventTracer.cpp',
[email protected]9d6bc352013-07-23 13:00:1087 '../third_party/skia/src/utils/SkDeferredCanvas.cpp',
88 '../third_party/skia/src/utils/SkMatrix44.cpp',
89 '../third_party/skia/src/utils/SkNullCanvas.cpp',
90 '../third_party/skia/include/utils/SkNWayCanvas.h',
91 '../third_party/skia/src/utils/SkNWayCanvas.cpp',
92 '../third_party/skia/src/utils/SkPictureUtils.cpp',
[email protected]64975672013-07-30 18:47:1393 '../third_party/skia/src/utils/SkProxyCanvas.cpp',
[email protected]9d6bc352013-07-23 13:00:1094 '../third_party/skia/src/utils/SkRTConf.cpp',
95 '../third_party/skia/include/utils/SkRTConf.h',
[email protected]6ea5ec082014-03-24 16:18:3996 '../third_party/skia/src/utils/win/SkDWrite.h',
97 '../third_party/skia/src/utils/win/SkDWrite.cpp',
[email protected]1d93409e2013-08-21 17:13:1998 '../third_party/skia/src/utils/win/SkDWriteFontFileStream.cpp',
99 '../third_party/skia/src/utils/win/SkDWriteFontFileStream.h',
100 '../third_party/skia/src/utils/win/SkDWriteGeometrySink.cpp',
101 '../third_party/skia/src/utils/win/SkDWriteGeometrySink.h',
102 '../third_party/skia/src/utils/win/SkHRESULT.cpp',
[email protected]9d6bc352013-07-23 13:00:10103
[email protected]9d6bc352013-07-23 13:00:10104 '../third_party/skia/include/images/SkImageRef.h',
105 '../third_party/skia/include/images/SkImageRef_GlobalPool.h',
106 '../third_party/skia/include/images/SkMovie.h',
107 '../third_party/skia/include/images/SkPageFlipper.h',
108
[email protected]6ea5ec082014-03-24 16:18:39109 '../third_party/skia/include/ports/SkFontConfigInterface.h',
110 '../third_party/skia/include/ports/SkFontMgr.h',
111 '../third_party/skia/include/ports/SkFontMgr_indirect.h',
112 '../third_party/skia/include/ports/SkFontStyle.h',
113 '../third_party/skia/include/ports/SkRemotableFontMgr.h',
114 '../third_party/skia/include/ports/SkTypeface_win.h',
115
[email protected]9d6bc352013-07-23 13:00:10116 '../third_party/skia/include/utils/SkNullCanvas.h',
117 '../third_party/skia/include/utils/SkPictureUtils.h',
[email protected]64975672013-07-30 18:47:13118 '../third_party/skia/include/utils/SkProxyCanvas.h',
[email protected]9d6bc352013-07-23 13:00:10119 ],
120 'include_dirs': [
[email protected]9d6bc352013-07-23 13:00:10121 '../third_party/skia/include/core',
122 '../third_party/skia/include/effects',
123 '../third_party/skia/include/images',
124 '../third_party/skia/include/lazy',
125 '../third_party/skia/include/pathops',
126 '../third_party/skia/include/pdf',
127 '../third_party/skia/include/pipe',
128 '../third_party/skia/include/ports',
129 '../third_party/skia/include/utils',
130 '../third_party/skia/src/core',
[email protected]36b39bb42013-10-18 13:40:22131 '../third_party/skia/src/opts',
[email protected]9d6bc352013-07-23 13:00:10132 '../third_party/skia/src/image',
[email protected]2b889f882013-08-01 14:19:39133 '../third_party/skia/src/ports',
[email protected]9d6bc352013-07-23 13:00:10134 '../third_party/skia/src/sfnt',
135 '../third_party/skia/src/utils',
136 '../third_party/skia/src/lazy',
137 ],
138 'conditions': [
139 ['skia_support_gpu != 0', {
140 'includes': [
141 '../third_party/skia/gyp/gpu.gypi',
142 ],
143 'sources': [
[email protected]54dd8ab2014-01-16 23:40:00144 '<@(skgpu_null_gl_sources)',
[email protected]9d6bc352013-07-23 13:00:10145 '<@(skgpu_sources)',
146 ],
147 'include_dirs': [
148 '../third_party/skia/include/gpu',
[email protected]9d6bc352013-07-23 13:00:10149 '../third_party/skia/src/gpu',
150 ],
151 }],
152 ['skia_support_pdf == 0', {
153 'sources/': [
154 ['exclude', '../third_party/skia/src/pdf/']
155 ],
156 }],
157 ['skia_support_pdf == 1', {
158 'dependencies': [
159 '../third_party/sfntly/sfntly.gyp:sfntly',
160 ],
161 }],
162
[email protected]9d6bc352013-07-23 13:00:10163 [ 'OS != "ios"', {
164 'dependencies': [
[email protected]41eddab2013-08-08 13:23:30165 '../third_party/WebKit/public/blink_skia_config.gyp:blink_skia_config',
[email protected]9d6bc352013-07-23 13:00:10166 ],
[email protected]fe779d32013-08-08 17:22:34167 'export_dependent_settings': [
168 '../third_party/WebKit/public/blink_skia_config.gyp:blink_skia_config',
169 ],
[email protected]9d6bc352013-07-23 13:00:10170 }],
171 [ 'OS != "mac"', {
172 'sources/': [
173 ['exclude', '/mac/']
174 ],
175 }],
[email protected]9d6bc352013-07-23 13:00:10176 [ 'OS == "android" and target_arch == "arm"', {
177 'sources': [
178 '../third_party/skia/src/core/SkUtilsArm.cpp',
179 ],
180 'includes': [
181 '../build/android/cpufeatures.gypi',
182 ],
183 }],
[email protected]2e42a35d2014-03-21 11:30:36184 [ 'target_arch == "arm" or target_arch == "arm64" or \
185 target_arch == "mipsel"', {
[email protected]9d6bc352013-07-23 13:00:10186 'sources!': [
187 '../third_party/skia/src/opts/opts_check_SSE2.cpp'
188 ],
189 }],
[email protected]b098e1d82013-11-08 06:24:58190 [ 'desktop_linux == 1 or chromeos == 1', {
[email protected]9d6bc352013-07-23 13:00:10191 'dependencies': [
192 '../build/linux/system.gyp:fontconfig',
193 '../build/linux/system.gyp:freetype2',
[email protected]9d6bc352013-07-23 13:00:10194 '../third_party/icu/icu.gyp:icuuc',
195 ],
196 'cflags': [
197 '-Wno-unused',
198 '-Wno-unused-function',
199 ],
200 }],
[email protected]928362a2013-11-19 20:17:16201 [ 'use_cairo == 1', {
202 'dependencies': [
203 '../build/linux/system.gyp:pangocairo',
204 ],
205 }],
[email protected]b098e1d82013-11-08 06:24:58206 [ 'OS=="win" or OS=="mac" or OS=="ios" or OS=="android"', {
[email protected]9d6bc352013-07-23 13:00:10207 'sources!': [
208 '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp',
209 '../third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp',
210 ],
211 }],
[email protected]b098e1d82013-11-08 06:24:58212 [ 'OS=="win" or OS=="mac" or OS=="ios"', {
[email protected]9d6bc352013-07-23 13:00:10213 'sources!': [
214 '../third_party/skia/src/ports/SkFontHost_FreeType.cpp',
215 '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp',
216 '../third_party/skia/src/ports/SkFontHost_fontconfig.cpp',
217
218 ],
219 }],
220 [ 'OS == "android"', {
221 'dependencies': [
222 '../third_party/expat/expat.gyp:expat',
223 '../third_party/freetype/freetype.gyp:ft2',
224 ],
225 # This exports a hard dependency because it needs to run its
226 # symlink action in order to expose the skia header files.
227 'hard_dependency': 1,
228 'include_dirs': [
229 '../third_party/expat/files/lib',
230 ],
231 }],
232 [ 'OS == "ios"', {
[email protected]9d6bc352013-07-23 13:00:10233 'include_dirs': [
234 '../third_party/skia/include/utils/ios',
235 '../third_party/skia/include/utils/mac',
236 ],
237 'link_settings': {
238 'libraries': [
239 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
240 ],
241 },
242 'sources': [
243 # This file is used on both iOS and Mac, so it should be removed
244 # from the ios and mac conditions and moved into the main sources
245 # list.
246 '../third_party/skia/src/utils/mac/SkStream_mac.cpp',
247 ],
248 'sources/': [
249 ['exclude', 'opts_check_SSE2\\.cpp$'],
250 ],
[email protected]8e3f8c82013-08-21 15:09:55251
[email protected]9d6bc352013-07-23 13:00:10252 # The main skia_opts target does not currently work on iOS because the
253 # target architecture on iOS is determined at compile time rather than
254 # gyp time (simulator builds are x86, device builds are arm). As a
255 # temporary measure, this is a separate opts target for iOS-only, using
256 # the _none.cpp files to avoid architecture-dependent implementations.
257 'dependencies': [
258 'skia_library_opts.gyp:skia_opts_none',
259 ],
260 'dependencies!': [
261 'skia_library_opts.gyp:skia_opts',
262 ],
263 }],
264 [ 'OS == "mac"', {
[email protected]9d6bc352013-07-23 13:00:10265 'direct_dependent_settings': {
266 'include_dirs': [
267 '../third_party/skia/include/utils/mac',
268 ],
269 },
270 'include_dirs': [
271 '../third_party/skia/include/utils/mac',
272 ],
273 'link_settings': {
274 'libraries': [
275 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
276 ],
277 },
278 'sources': [
279 '../third_party/skia/src/utils/mac/SkStream_mac.cpp',
280 ],
281 }],
282 [ 'OS == "win"', {
283 'sources!': [
284 '../third_party/skia/src/ports/SkOSFile_posix.cpp',
[email protected]9d6bc352013-07-23 13:00:10285 '../third_party/skia/src/ports/SkTime_Unix.cpp',
286 '../third_party/skia/src/ports/SkTLS_pthread.cpp',
287 ],
[email protected]1d93409e2013-08-21 17:13:19288 'include_dirs': [
289 '../third_party/skia/include/utils/win',
290 '../third_party/skia/src/utils/win',
291 ],
[email protected]1d93409e2013-08-21 17:13:19292 },{ # not 'OS == "win"'
293 'sources!': [
294 '../third_party/skia/src/ports/SkFontHost_win_dw.cpp',
295 '../third_party/skia/src/ports/SkFontMgr_default_gdi.cpp',
[email protected]6ea5ec082014-03-24 16:18:39296 '../third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp',
[email protected]1d93409e2013-08-21 17:13:19297
[email protected]6ea5ec082014-03-24 16:18:39298 '../third_party/skia/src/utils/win/SkDWrite.h',
299 '../third_party/skia/src/utils/win/SkDWrite.cpp',
[email protected]1d93409e2013-08-21 17:13:19300 '../third_party/skia/src/utils/win/SkDWriteFontFileStream.cpp',
301 '../third_party/skia/src/utils/win/SkDWriteFontFileStream.h',
302 '../third_party/skia/src/utils/win/SkDWriteGeometrySink.cpp',
303 '../third_party/skia/src/utils/win/SkDWriteGeometrySink.h',
304 '../third_party/skia/src/utils/win/SkHRESULT.cpp',
305 ],
[email protected]9d6bc352013-07-23 13:00:10306 }],
307 # TODO(scottmg): http://crbug.com/177306
308 ['clang==1', {
309 'xcode_settings': {
310 'WARNING_CFLAGS!': [
311 # Don't warn about string->bool used in asserts.
312 '-Wstring-conversion',
313 ],
314 },
315 'cflags!': [
316 '-Wstring-conversion',
317 ],
318 }],
319 ],
320 'target_conditions': [
321 # Pull in specific Mac files for iOS (which have been filtered out
322 # by file name rules).
323 [ 'OS == "ios"', {
324 'sources/': [
325 ['include', 'SkFontHost_mac\\.cpp$',],
326 ['include', 'SkStream_mac\\.cpp$',],
327 ['include', 'SkCreateCGImageRef\\.cpp$',],
328 ],
329 }],
330 ],
331
[email protected]9d6bc352013-07-23 13:00:10332 'direct_dependent_settings': {
333 'include_dirs': [
334 #temporary until we can hide SkFontHost
335 '../third_party/skia/src/core',
336
[email protected]9d6bc352013-07-23 13:00:10337 '../third_party/skia/include/core',
338 '../third_party/skia/include/effects',
339 '../third_party/skia/include/pdf',
340 '../third_party/skia/include/gpu',
[email protected]9d6bc352013-07-23 13:00:10341 '../third_party/skia/include/lazy',
342 '../third_party/skia/include/pathops',
343 '../third_party/skia/include/pipe',
344 '../third_party/skia/include/ports',
345 '../third_party/skia/include/utils',
346 ],
[email protected]9d6bc352013-07-23 13:00:10347 },
348}