blob: 3353b631286c21627bb213896d120d6aea7a11cb [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]bc912d62014-04-30 14:53:4424 '../third_party/skia/gyp/record.gypi',
[email protected]9d6bc352013-07-23 13:00:1025 ],
26
27 'sources': [
28 # this should likely be moved into src/utils in skia
29 '../third_party/skia/src/core/SkFlate.cpp',
[email protected]9d6bc352013-07-23 13:00:1030 '../third_party/skia/src/core/SkPaintOptionsAndroid.cpp',
31
32 '../third_party/skia/src/ports/SkImageDecoder_empty.cpp',
33 '../third_party/skia/src/images/SkScaledBitmapSampler.cpp',
34 '../third_party/skia/src/images/SkScaledBitmapSampler.h',
35
36 '../third_party/skia/src/opts/opts_check_SSE2.cpp',
37
[email protected]9d6bc352013-07-23 13:00:1038 '../third_party/skia/src/ports/SkFontConfigInterface_android.cpp',
39 '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp',
40
41 '../third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp',
42 '../third_party/skia/src/ports/SkFontHost_fontconfig.cpp',
43
[email protected]6ea5ec082014-03-24 16:18:3944 '../third_party/skia/src/fonts/SkFontMgr_indirect.cpp',
45 '../third_party/skia/src/fonts/SkRemotableFontMgr.cpp',
46 '../third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp',
47
[email protected]9d6bc352013-07-23 13:00:1048 '../third_party/skia/src/ports/SkFontHost_FreeType.cpp',
49 '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp',
50 '../third_party/skia/src/ports/SkFontHost_FreeType_common.h',
51 '../third_party/skia/src/ports/SkFontConfigParser_android.cpp',
52 '../third_party/skia/src/ports/SkFontHost_mac.cpp',
53 '../third_party/skia/src/ports/SkFontHost_win.cpp',
[email protected]1d93409e2013-08-21 17:13:1954 '../third_party/skia/src/ports/SkFontHost_win_dw.cpp',
55 '../third_party/skia/src/ports/SkFontMgr_default_gdi.cpp',
[email protected]9d6bc352013-07-23 13:00:1056 '../third_party/skia/src/ports/SkGlobalInitialization_chromium.cpp',
57 '../third_party/skia/src/ports/SkOSFile_posix.cpp',
58 '../third_party/skia/src/ports/SkOSFile_stdio.cpp',
59 '../third_party/skia/src/ports/SkOSFile_win.cpp',
[email protected]9d6bc352013-07-23 13:00:1060 '../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
[email protected]596de2e2013-08-07 14:41:0464 '../third_party/skia/src/sfnt/SkOTTable_name.cpp',
65 '../third_party/skia/src/sfnt/SkOTTable_name.h',
[email protected]9d6bc352013-07-23 13:00:1066 '../third_party/skia/src/sfnt/SkOTUtils.cpp',
67 '../third_party/skia/src/sfnt/SkOTUtils.h',
68
69 '../third_party/skia/include/utils/mac/SkCGUtils.h',
70 '../third_party/skia/include/utils/SkDeferredCanvas.h',
71 '../third_party/skia/include/utils/SkMatrix44.h',
[email protected]9eceeae2014-03-28 18:20:3272 '../third_party/skia/include/utils/SkNoSaveLayerCanvas.h',
[email protected]9d6bc352013-07-23 13:00:1073 '../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',
[email protected]332702f2014-04-16 11:38:4788 '../third_party/skia/src/utils/SkMatrix22.cpp',
89 '../third_party/skia/src/utils/SkMatrix22.h',
[email protected]9d6bc352013-07-23 13:00:1090 '../third_party/skia/src/utils/SkMatrix44.cpp',
91 '../third_party/skia/src/utils/SkNullCanvas.cpp',
92 '../third_party/skia/include/utils/SkNWayCanvas.h',
93 '../third_party/skia/src/utils/SkNWayCanvas.cpp',
94 '../third_party/skia/src/utils/SkPictureUtils.cpp',
[email protected]64975672013-07-30 18:47:1395 '../third_party/skia/src/utils/SkProxyCanvas.cpp',
[email protected]9d6bc352013-07-23 13:00:1096 '../third_party/skia/src/utils/SkRTConf.cpp',
97 '../third_party/skia/include/utils/SkRTConf.h',
[email protected]6ea5ec082014-03-24 16:18:3998 '../third_party/skia/src/utils/win/SkDWrite.h',
99 '../third_party/skia/src/utils/win/SkDWrite.cpp',
[email protected]1d93409e2013-08-21 17:13:19100 '../third_party/skia/src/utils/win/SkDWriteFontFileStream.cpp',
101 '../third_party/skia/src/utils/win/SkDWriteFontFileStream.h',
102 '../third_party/skia/src/utils/win/SkDWriteGeometrySink.cpp',
103 '../third_party/skia/src/utils/win/SkDWriteGeometrySink.h',
104 '../third_party/skia/src/utils/win/SkHRESULT.cpp',
[email protected]9d6bc352013-07-23 13:00:10105
[email protected]9d6bc352013-07-23 13:00:10106 '../third_party/skia/include/images/SkImageRef.h',
107 '../third_party/skia/include/images/SkImageRef_GlobalPool.h',
108 '../third_party/skia/include/images/SkMovie.h',
109 '../third_party/skia/include/images/SkPageFlipper.h',
110
[email protected]6ea5ec082014-03-24 16:18:39111 '../third_party/skia/include/ports/SkFontConfigInterface.h',
112 '../third_party/skia/include/ports/SkFontMgr.h',
113 '../third_party/skia/include/ports/SkFontMgr_indirect.h',
114 '../third_party/skia/include/ports/SkFontStyle.h',
115 '../third_party/skia/include/ports/SkRemotableFontMgr.h',
116 '../third_party/skia/include/ports/SkTypeface_win.h',
117
[email protected]9d6bc352013-07-23 13:00:10118 '../third_party/skia/include/utils/SkNullCanvas.h',
119 '../third_party/skia/include/utils/SkPictureUtils.h',
[email protected]64975672013-07-30 18:47:13120 '../third_party/skia/include/utils/SkProxyCanvas.h',
[email protected]9d6bc352013-07-23 13:00:10121 ],
122 'include_dirs': [
[email protected]9d6bc352013-07-23 13:00:10123 '../third_party/skia/include/core',
124 '../third_party/skia/include/effects',
125 '../third_party/skia/include/images',
126 '../third_party/skia/include/lazy',
127 '../third_party/skia/include/pathops',
128 '../third_party/skia/include/pdf',
129 '../third_party/skia/include/pipe',
130 '../third_party/skia/include/ports',
[email protected]bc912d62014-04-30 14:53:44131 '../third_party/skia/include/record',
[email protected]9d6bc352013-07-23 13:00:10132 '../third_party/skia/include/utils',
133 '../third_party/skia/src/core',
[email protected]36b39bb42013-10-18 13:40:22134 '../third_party/skia/src/opts',
[email protected]9d6bc352013-07-23 13:00:10135 '../third_party/skia/src/image',
[email protected]2b889f882013-08-01 14:19:39136 '../third_party/skia/src/ports',
[email protected]9d6bc352013-07-23 13:00:10137 '../third_party/skia/src/sfnt',
138 '../third_party/skia/src/utils',
139 '../third_party/skia/src/lazy',
140 ],
141 'conditions': [
142 ['skia_support_gpu != 0', {
143 'includes': [
144 '../third_party/skia/gyp/gpu.gypi',
145 ],
146 'sources': [
[email protected]54dd8ab2014-01-16 23:40:00147 '<@(skgpu_null_gl_sources)',
[email protected]9d6bc352013-07-23 13:00:10148 '<@(skgpu_sources)',
149 ],
150 'include_dirs': [
151 '../third_party/skia/include/gpu',
[email protected]9d6bc352013-07-23 13:00:10152 '../third_party/skia/src/gpu',
153 ],
154 }],
155 ['skia_support_pdf == 0', {
156 'sources/': [
157 ['exclude', '../third_party/skia/src/pdf/']
158 ],
159 }],
160 ['skia_support_pdf == 1', {
161 'dependencies': [
162 '../third_party/sfntly/sfntly.gyp:sfntly',
163 ],
164 }],
165
[email protected]9d6bc352013-07-23 13:00:10166 [ 'OS != "ios"', {
167 'dependencies': [
[email protected]41eddab2013-08-08 13:23:30168 '../third_party/WebKit/public/blink_skia_config.gyp:blink_skia_config',
[email protected]9d6bc352013-07-23 13:00:10169 ],
[email protected]fe779d32013-08-08 17:22:34170 'export_dependent_settings': [
171 '../third_party/WebKit/public/blink_skia_config.gyp:blink_skia_config',
172 ],
[email protected]9d6bc352013-07-23 13:00:10173 }],
174 [ 'OS != "mac"', {
175 'sources/': [
176 ['exclude', '/mac/']
177 ],
178 }],
[email protected]9d6bc352013-07-23 13:00:10179 [ 'OS == "android" and target_arch == "arm"', {
180 'sources': [
181 '../third_party/skia/src/core/SkUtilsArm.cpp',
182 ],
183 'includes': [
184 '../build/android/cpufeatures.gypi',
185 ],
186 }],
[email protected]2e42a35d2014-03-21 11:30:36187 [ 'target_arch == "arm" or target_arch == "arm64" or \
188 target_arch == "mipsel"', {
[email protected]9d6bc352013-07-23 13:00:10189 'sources!': [
190 '../third_party/skia/src/opts/opts_check_SSE2.cpp'
191 ],
192 }],
[email protected]b098e1d82013-11-08 06:24:58193 [ 'desktop_linux == 1 or chromeos == 1', {
[email protected]9d6bc352013-07-23 13:00:10194 'dependencies': [
195 '../build/linux/system.gyp:fontconfig',
196 '../build/linux/system.gyp:freetype2',
[email protected]9d6bc352013-07-23 13:00:10197 '../third_party/icu/icu.gyp:icuuc',
198 ],
199 'cflags': [
200 '-Wno-unused',
201 '-Wno-unused-function',
202 ],
203 }],
[email protected]928362a2013-11-19 20:17:16204 [ 'use_cairo == 1', {
205 'dependencies': [
206 '../build/linux/system.gyp:pangocairo',
207 ],
208 }],
[email protected]b098e1d82013-11-08 06:24:58209 [ 'OS=="win" or OS=="mac" or OS=="ios" or OS=="android"', {
[email protected]9d6bc352013-07-23 13:00:10210 'sources!': [
211 '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp',
212 '../third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp',
213 ],
214 }],
[email protected]b098e1d82013-11-08 06:24:58215 [ 'OS=="win" or OS=="mac" or OS=="ios"', {
[email protected]9d6bc352013-07-23 13:00:10216 'sources!': [
217 '../third_party/skia/src/ports/SkFontHost_FreeType.cpp',
218 '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp',
219 '../third_party/skia/src/ports/SkFontHost_fontconfig.cpp',
220
221 ],
222 }],
223 [ 'OS == "android"', {
224 'dependencies': [
225 '../third_party/expat/expat.gyp:expat',
226 '../third_party/freetype/freetype.gyp:ft2',
227 ],
228 # This exports a hard dependency because it needs to run its
229 # symlink action in order to expose the skia header files.
230 'hard_dependency': 1,
231 'include_dirs': [
232 '../third_party/expat/files/lib',
233 ],
234 }],
235 [ 'OS == "ios"', {
[email protected]9d6bc352013-07-23 13:00:10236 'include_dirs': [
237 '../third_party/skia/include/utils/ios',
238 '../third_party/skia/include/utils/mac',
239 ],
240 'link_settings': {
241 'libraries': [
242 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
243 ],
244 },
245 'sources': [
246 # This file is used on both iOS and Mac, so it should be removed
247 # from the ios and mac conditions and moved into the main sources
248 # list.
249 '../third_party/skia/src/utils/mac/SkStream_mac.cpp',
250 ],
251 'sources/': [
252 ['exclude', 'opts_check_SSE2\\.cpp$'],
253 ],
[email protected]8e3f8c82013-08-21 15:09:55254
[email protected]9d6bc352013-07-23 13:00:10255 # The main skia_opts target does not currently work on iOS because the
256 # target architecture on iOS is determined at compile time rather than
257 # gyp time (simulator builds are x86, device builds are arm). As a
258 # temporary measure, this is a separate opts target for iOS-only, using
259 # the _none.cpp files to avoid architecture-dependent implementations.
260 'dependencies': [
261 'skia_library_opts.gyp:skia_opts_none',
262 ],
263 'dependencies!': [
264 'skia_library_opts.gyp:skia_opts',
265 ],
266 }],
267 [ 'OS == "mac"', {
[email protected]9d6bc352013-07-23 13:00:10268 'direct_dependent_settings': {
269 'include_dirs': [
270 '../third_party/skia/include/utils/mac',
271 ],
272 },
273 'include_dirs': [
274 '../third_party/skia/include/utils/mac',
275 ],
276 'link_settings': {
277 'libraries': [
278 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
279 ],
280 },
281 'sources': [
282 '../third_party/skia/src/utils/mac/SkStream_mac.cpp',
283 ],
284 }],
285 [ 'OS == "win"', {
286 'sources!': [
287 '../third_party/skia/src/ports/SkOSFile_posix.cpp',
[email protected]9d6bc352013-07-23 13:00:10288 '../third_party/skia/src/ports/SkTime_Unix.cpp',
289 '../third_party/skia/src/ports/SkTLS_pthread.cpp',
290 ],
[email protected]1d93409e2013-08-21 17:13:19291 'include_dirs': [
292 '../third_party/skia/include/utils/win',
293 '../third_party/skia/src/utils/win',
294 ],
[email protected]1d93409e2013-08-21 17:13:19295 },{ # not 'OS == "win"'
296 'sources!': [
297 '../third_party/skia/src/ports/SkFontHost_win_dw.cpp',
298 '../third_party/skia/src/ports/SkFontMgr_default_gdi.cpp',
[email protected]6ea5ec082014-03-24 16:18:39299 '../third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp',
[email protected]1d93409e2013-08-21 17:13:19300
[email protected]6ea5ec082014-03-24 16:18:39301 '../third_party/skia/src/utils/win/SkDWrite.h',
302 '../third_party/skia/src/utils/win/SkDWrite.cpp',
[email protected]1d93409e2013-08-21 17:13:19303 '../third_party/skia/src/utils/win/SkDWriteFontFileStream.cpp',
304 '../third_party/skia/src/utils/win/SkDWriteFontFileStream.h',
305 '../third_party/skia/src/utils/win/SkDWriteGeometrySink.cpp',
306 '../third_party/skia/src/utils/win/SkDWriteGeometrySink.h',
307 '../third_party/skia/src/utils/win/SkHRESULT.cpp',
308 ],
[email protected]9d6bc352013-07-23 13:00:10309 }],
310 # TODO(scottmg): http://crbug.com/177306
311 ['clang==1', {
312 'xcode_settings': {
313 'WARNING_CFLAGS!': [
314 # Don't warn about string->bool used in asserts.
315 '-Wstring-conversion',
316 ],
317 },
318 'cflags!': [
319 '-Wstring-conversion',
320 ],
321 }],
322 ],
323 'target_conditions': [
324 # Pull in specific Mac files for iOS (which have been filtered out
325 # by file name rules).
326 [ 'OS == "ios"', {
327 'sources/': [
328 ['include', 'SkFontHost_mac\\.cpp$',],
329 ['include', 'SkStream_mac\\.cpp$',],
330 ['include', 'SkCreateCGImageRef\\.cpp$',],
331 ],
332 }],
333 ],
334
[email protected]9d6bc352013-07-23 13:00:10335 'direct_dependent_settings': {
336 'include_dirs': [
337 #temporary until we can hide SkFontHost
338 '../third_party/skia/src/core',
339
[email protected]9d6bc352013-07-23 13:00:10340 '../third_party/skia/include/core',
341 '../third_party/skia/include/effects',
342 '../third_party/skia/include/pdf',
343 '../third_party/skia/include/gpu',
[email protected]9d6bc352013-07-23 13:00:10344 '../third_party/skia/include/lazy',
345 '../third_party/skia/include/pathops',
346 '../third_party/skia/include/pipe',
347 '../third_party/skia/include/ports',
348 '../third_party/skia/include/utils',
349 ],
[email protected]9d6bc352013-07-23 13:00:10350 },
351}