blob: 760c1cd8af4f1bd8d72b781adaa434641c5385b4 [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]7110c54c2014-06-10 22:52:0424 '../third_party/skia/gyp/utils.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',
mtklein1bd9a312014-09-04 17:29:1130
[email protected]9d6bc352013-07-23 13:00:1031 '../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
[email protected]bdda54ae22014-05-01 18:03:1735 '../third_party/skia/src/opts/opts_check_x86.cpp',
[email protected]9d6bc352013-07-23 13:00:1036
[email protected]9d6bc352013-07-23 13:00:1037 '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp',
38
39 '../third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp',
40 '../third_party/skia/src/ports/SkFontHost_fontconfig.cpp',
41
[email protected]6ea5ec082014-03-24 16:18:3942 '../third_party/skia/src/fonts/SkFontMgr_indirect.cpp',
43 '../third_party/skia/src/fonts/SkRemotableFontMgr.cpp',
44 '../third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp',
45
[email protected]9d6bc352013-07-23 13:00:1046 '../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',
[email protected]196e7ca2014-07-24 18:41:1852 "../third_party/skia/src/ports/SkFontMgr_android.cpp",
[email protected]15c7a712014-06-06 13:33:2453 '../third_party/skia/src/ports/SkFontMgr_win_dw.cpp',
[email protected]9d6bc352013-07-23 13:00:1054 '../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',
[email protected]15c7a712014-06-06 13:33:2458 '../third_party/skia/src/ports/SkScalerContext_win_dw.cpp',
59 '../third_party/skia/src/ports/SkScalerContext_win_dw.h',
[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',
[email protected]15c7a712014-06-06 13:33:2463 '../third_party/skia/src/ports/SkTypeface_win_dw.cpp',
64 '../third_party/skia/src/ports/SkTypeface_win_dw.h',
[email protected]9d6bc352013-07-23 13:00:1065
[email protected]596de2e2013-08-07 14:41:0466 '../third_party/skia/src/sfnt/SkOTTable_name.cpp',
67 '../third_party/skia/src/sfnt/SkOTTable_name.h',
[email protected]9d6bc352013-07-23 13:00:1068 '../third_party/skia/src/sfnt/SkOTUtils.cpp',
69 '../third_party/skia/src/sfnt/SkOTUtils.h',
70
[email protected]9d6bc352013-07-23 13:00:1071 '../third_party/skia/src/utils/debugger/SkDebugCanvas.cpp',
72 '../third_party/skia/src/utils/debugger/SkDebugCanvas.h',
73 '../third_party/skia/src/utils/debugger/SkDrawCommand.cpp',
74 '../third_party/skia/src/utils/debugger/SkDrawCommand.h',
75 '../third_party/skia/src/utils/debugger/SkObjectParser.cpp',
76 '../third_party/skia/src/utils/debugger/SkObjectParser.h',
[email protected]9d6bc352013-07-23 13:00:1077
[email protected]9d6bc352013-07-23 13:00:1078 '../third_party/skia/include/images/SkMovie.h',
79 '../third_party/skia/include/images/SkPageFlipper.h',
80
[email protected]6ea5ec082014-03-24 16:18:3981 '../third_party/skia/include/ports/SkFontConfigInterface.h',
82 '../third_party/skia/include/ports/SkFontMgr.h',
83 '../third_party/skia/include/ports/SkFontMgr_indirect.h',
84 '../third_party/skia/include/ports/SkFontStyle.h',
85 '../third_party/skia/include/ports/SkRemotableFontMgr.h',
86 '../third_party/skia/include/ports/SkTypeface_win.h',
[email protected]9d6bc352013-07-23 13:00:1087 ],
[email protected]7110c54c2014-06-10 22:52:0488
89 # Exclude all unused files in skia utils.gypi file
90 'sources!': [
[email protected]7110c54c2014-06-10 22:52:0491 '../third_party/skia/src/utils/SkCondVar.cpp',
mtklein1bd9a312014-09-04 17:29:1192 '../third_party/skia/src/utils/SkCondVar.h',
93 '../third_party/skia/src/utils/SkRunnable.h',
[email protected]7110c54c2014-06-10 22:52:0494
95 '../third_party/skia/include/utils/SkBoundaryPatch.h',
96 '../third_party/skia/include/utils/SkFrontBufferedStream.h',
97 '../third_party/skia/include/utils/SkCamera.h',
98 '../third_party/skia/include/utils/SkCanvasStateUtils.h',
99 '../third_party/skia/include/utils/SkCubicInterval.h',
100 '../third_party/skia/include/utils/SkCullPoints.h',
101 '../third_party/skia/include/utils/SkDebugUtils.h',
102 '../third_party/skia/include/utils/SkDumpCanvas.h',
103 '../third_party/skia/include/utils/SkEventTracer.h',
104 '../third_party/skia/include/utils/SkInterpolator.h',
105 '../third_party/skia/include/utils/SkLayer.h',
106 '../third_party/skia/include/utils/SkMeshUtils.h',
107 '../third_party/skia/include/utils/SkNinePatch.h',
108 '../third_party/skia/include/utils/SkParse.h',
109 '../third_party/skia/include/utils/SkParsePaint.h',
110 '../third_party/skia/include/utils/SkParsePath.h',
111 '../third_party/skia/include/utils/SkRandom.h',
112 '../third_party/skia/include/utils/SkWGL.h',
113
114 '../third_party/skia/src/utils/SkBitmapHasher.cpp',
115 '../third_party/skia/src/utils/SkBitmapHasher.h',
116 '../third_party/skia/src/utils/SkBoundaryPatch.cpp',
117 '../third_party/skia/src/utils/SkFrontBufferedStream.cpp',
118 '../third_party/skia/src/utils/SkCamera.cpp',
119 '../third_party/skia/src/utils/SkCanvasStack.h',
120 '../third_party/skia/src/utils/SkCubicInterval.cpp',
121 '../third_party/skia/src/utils/SkCullPoints.cpp',
122 '../third_party/skia/src/utils/SkDumpCanvas.cpp',
123 '../third_party/skia/src/utils/SkFloatUtils.h',
124 '../third_party/skia/src/utils/SkGatherPixelRefsAndRects.cpp',
125 '../third_party/skia/src/utils/SkGatherPixelRefsAndRects.h',
126 '../third_party/skia/src/utils/SkInterpolator.cpp',
127 '../third_party/skia/src/utils/SkLayer.cpp',
128 '../third_party/skia/src/utils/SkMD5.cpp',
129 '../third_party/skia/src/utils/SkMD5.h',
130 '../third_party/skia/src/utils/SkMeshUtils.cpp',
131 '../third_party/skia/src/utils/SkNinePatch.cpp',
132 '../third_party/skia/src/utils/SkOSFile.cpp',
133 '../third_party/skia/src/utils/SkParse.cpp',
134 '../third_party/skia/src/utils/SkParseColor.cpp',
135 '../third_party/skia/src/utils/SkParsePath.cpp',
136 '../third_party/skia/src/utils/SkPathUtils.cpp',
137 '../third_party/skia/src/utils/SkSHA1.cpp',
138 '../third_party/skia/src/utils/SkSHA1.h',
139 '../third_party/skia/src/utils/SkThreadUtils.h',
140 '../third_party/skia/src/utils/SkThreadUtils_pthread.cpp',
141 '../third_party/skia/src/utils/SkThreadUtils_pthread.h',
142 '../third_party/skia/src/utils/SkThreadUtils_pthread_linux.cpp',
143 '../third_party/skia/src/utils/SkThreadUtils_pthread_mach.cpp',
144 '../third_party/skia/src/utils/SkThreadUtils_pthread_other.cpp',
145 '../third_party/skia/src/utils/SkThreadUtils_win.cpp',
146 '../third_party/skia/src/utils/SkThreadUtils_win.h',
147 '../third_party/skia/src/utils/SkTFitsIn.h',
148 '../third_party/skia/src/utils/SkTLogic.h',
149
150#windows
151 '../third_party/skia/include/utils/win/SkAutoCoInitialize.h',
152 '../third_party/skia/include/utils/win/SkHRESULT.h',
153 '../third_party/skia/include/utils/win/SkIStream.h',
154 '../third_party/skia/include/utils/win/SkTScopedComPtr.h',
155 '../third_party/skia/src/utils/win/SkAutoCoInitialize.cpp',
156 '../third_party/skia/src/utils/win/SkIStream.cpp',
157 '../third_party/skia/src/utils/win/SkWGL_win.cpp',
158
159#testing
160 '../third_party/skia/src/fonts/SkGScalerContext.cpp',
161 '../third_party/skia/src/fonts/SkGScalerContext.h',
162 ],
163
[email protected]9d6bc352013-07-23 13:00:10164 'include_dirs': [
reedb5f89982014-10-24 19:58:15165 '../third_party/skia/include/c',
[email protected]9d6bc352013-07-23 13:00:10166 '../third_party/skia/include/core',
167 '../third_party/skia/include/effects',
168 '../third_party/skia/include/images',
169 '../third_party/skia/include/lazy',
170 '../third_party/skia/include/pathops',
171 '../third_party/skia/include/pdf',
172 '../third_party/skia/include/pipe',
173 '../third_party/skia/include/ports',
[email protected]bc912d62014-04-30 14:53:44174 '../third_party/skia/include/record',
[email protected]9d6bc352013-07-23 13:00:10175 '../third_party/skia/include/utils',
176 '../third_party/skia/src/core',
[email protected]36b39bb42013-10-18 13:40:22177 '../third_party/skia/src/opts',
[email protected]9d6bc352013-07-23 13:00:10178 '../third_party/skia/src/image',
[email protected]2b889f882013-08-01 14:19:39179 '../third_party/skia/src/ports',
[email protected]9d6bc352013-07-23 13:00:10180 '../third_party/skia/src/sfnt',
181 '../third_party/skia/src/utils',
182 '../third_party/skia/src/lazy',
183 ],
184 'conditions': [
185 ['skia_support_gpu != 0', {
186 'includes': [
187 '../third_party/skia/gyp/gpu.gypi',
188 ],
189 'sources': [
[email protected]54dd8ab2014-01-16 23:40:00190 '<@(skgpu_null_gl_sources)',
[email protected]9d6bc352013-07-23 13:00:10191 '<@(skgpu_sources)',
192 ],
193 'include_dirs': [
194 '../third_party/skia/include/gpu',
[email protected]9d6bc352013-07-23 13:00:10195 '../third_party/skia/src/gpu',
196 ],
197 }],
198 ['skia_support_pdf == 0', {
199 'sources/': [
200 ['exclude', '../third_party/skia/src/pdf/']
201 ],
202 }],
203 ['skia_support_pdf == 1', {
204 'dependencies': [
205 '../third_party/sfntly/sfntly.gyp:sfntly',
206 ],
207 }],
208
[email protected]9d6bc352013-07-23 13:00:10209 [ 'OS != "mac"', {
210 'sources/': [
211 ['exclude', '/mac/']
212 ],
213 }],
[email protected]9d6bc352013-07-23 13:00:10214 [ 'OS == "android" and target_arch == "arm"', {
215 'sources': [
216 '../third_party/skia/src/core/SkUtilsArm.cpp',
217 ],
218 'includes': [
219 '../build/android/cpufeatures.gypi',
220 ],
221 }],
[email protected]2e42a35d2014-03-21 11:30:36222 [ 'target_arch == "arm" or target_arch == "arm64" or \
[email protected]d56118e2014-08-06 17:25:22223 target_arch == "mipsel" or target_arch == "mips64el"', {
[email protected]9d6bc352013-07-23 13:00:10224 'sources!': [
[email protected]bdda54ae22014-05-01 18:03:17225 '../third_party/skia/src/opts/opts_check_x86.cpp'
[email protected]9d6bc352013-07-23 13:00:10226 ],
227 }],
[email protected]b098e1d82013-11-08 06:24:58228 [ 'desktop_linux == 1 or chromeos == 1', {
[email protected]9d6bc352013-07-23 13:00:10229 'dependencies': [
230 '../build/linux/system.gyp:fontconfig',
231 '../build/linux/system.gyp:freetype2',
[email protected]9d6bc352013-07-23 13:00:10232 '../third_party/icu/icu.gyp:icuuc',
233 ],
234 'cflags': [
235 '-Wno-unused',
236 '-Wno-unused-function',
237 ],
238 }],
[email protected]928362a2013-11-19 20:17:16239 [ 'use_cairo == 1', {
240 'dependencies': [
241 '../build/linux/system.gyp:pangocairo',
242 ],
243 }],
[email protected]b098e1d82013-11-08 06:24:58244 [ 'OS=="win" or OS=="mac" or OS=="ios" or OS=="android"', {
[email protected]9d6bc352013-07-23 13:00:10245 'sources!': [
246 '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp',
[email protected]2dc1e102014-08-14 14:04:34247 '../third_party/skia/src/ports/SkFontHost_fontconfig.cpp',
[email protected]9d6bc352013-07-23 13:00:10248 '../third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp',
249 ],
250 }],
[email protected]b098e1d82013-11-08 06:24:58251 [ 'OS=="win" or OS=="mac" or OS=="ios"', {
[email protected]9d6bc352013-07-23 13:00:10252 'sources!': [
253 '../third_party/skia/src/ports/SkFontHost_FreeType.cpp',
254 '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp',
[email protected]9d6bc352013-07-23 13:00:10255
256 ],
257 }],
258 [ 'OS == "android"', {
259 'dependencies': [
260 '../third_party/expat/expat.gyp:expat',
261 '../third_party/freetype/freetype.gyp:ft2',
262 ],
263 # This exports a hard dependency because it needs to run its
264 # symlink action in order to expose the skia header files.
265 'hard_dependency': 1,
266 'include_dirs': [
267 '../third_party/expat/files/lib',
268 ],
269 }],
270 [ 'OS == "ios"', {
[email protected]9d6bc352013-07-23 13:00:10271 'include_dirs': [
272 '../third_party/skia/include/utils/ios',
273 '../third_party/skia/include/utils/mac',
274 ],
275 'link_settings': {
276 'libraries': [
277 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
278 ],
279 },
280 'sources': [
281 # This file is used on both iOS and Mac, so it should be removed
282 # from the ios and mac conditions and moved into the main sources
283 # list.
284 '../third_party/skia/src/utils/mac/SkStream_mac.cpp',
285 ],
286 'sources/': [
[email protected]bdda54ae22014-05-01 18:03:17287 ['exclude', 'opts_check_x86\\.cpp$'],
[email protected]9d6bc352013-07-23 13:00:10288 ],
[email protected]8e3f8c82013-08-21 15:09:55289
[email protected]9d6bc352013-07-23 13:00:10290 # The main skia_opts target does not currently work on iOS because the
291 # target architecture on iOS is determined at compile time rather than
292 # gyp time (simulator builds are x86, device builds are arm). As a
293 # temporary measure, this is a separate opts target for iOS-only, using
294 # the _none.cpp files to avoid architecture-dependent implementations.
295 'dependencies': [
296 'skia_library_opts.gyp:skia_opts_none',
297 ],
298 'dependencies!': [
299 'skia_library_opts.gyp:skia_opts',
300 ],
301 }],
302 [ 'OS == "mac"', {
[email protected]9d6bc352013-07-23 13:00:10303 'direct_dependent_settings': {
304 'include_dirs': [
305 '../third_party/skia/include/utils/mac',
306 ],
307 },
308 'include_dirs': [
309 '../third_party/skia/include/utils/mac',
310 ],
311 'link_settings': {
312 'libraries': [
313 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
314 ],
315 },
316 'sources': [
317 '../third_party/skia/src/utils/mac/SkStream_mac.cpp',
318 ],
319 }],
320 [ 'OS == "win"', {
321 'sources!': [
322 '../third_party/skia/src/ports/SkOSFile_posix.cpp',
[email protected]9d6bc352013-07-23 13:00:10323 '../third_party/skia/src/ports/SkTime_Unix.cpp',
324 '../third_party/skia/src/ports/SkTLS_pthread.cpp',
325 ],
[email protected]1d93409e2013-08-21 17:13:19326 'include_dirs': [
327 '../third_party/skia/include/utils/win',
328 '../third_party/skia/src/utils/win',
329 ],
[email protected]1d93409e2013-08-21 17:13:19330 },{ # not 'OS == "win"'
331 'sources!': [
[email protected]15c7a712014-06-06 13:33:24332 '../third_party/skia/src/ports/SkFontMgr_win_dw.cpp',
[email protected]6ea5ec082014-03-24 16:18:39333 '../third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp',
[email protected]15c7a712014-06-06 13:33:24334 '../third_party/skia/src/ports/SkScalerContext_win_dw.cpp',
335 '../third_party/skia/src/ports/SkScalerContext_win_dw.h',
336 '../third_party/skia/src/ports/SkTypeface_win_dw.cpp',
337 '../third_party/skia/src/ports/SkTypeface_win_dw.h',
[email protected]1d93409e2013-08-21 17:13:19338
[email protected]6ea5ec082014-03-24 16:18:39339 '../third_party/skia/src/utils/win/SkDWrite.h',
340 '../third_party/skia/src/utils/win/SkDWrite.cpp',
[email protected]1d93409e2013-08-21 17:13:19341 '../third_party/skia/src/utils/win/SkDWriteFontFileStream.cpp',
342 '../third_party/skia/src/utils/win/SkDWriteFontFileStream.h',
343 '../third_party/skia/src/utils/win/SkDWriteGeometrySink.cpp',
344 '../third_party/skia/src/utils/win/SkDWriteGeometrySink.h',
345 '../third_party/skia/src/utils/win/SkHRESULT.cpp',
346 ],
[email protected]9d6bc352013-07-23 13:00:10347 }],
[email protected]9d6bc352013-07-23 13:00:10348 ],
349 'target_conditions': [
350 # Pull in specific Mac files for iOS (which have been filtered out
351 # by file name rules).
352 [ 'OS == "ios"', {
353 'sources/': [
354 ['include', 'SkFontHost_mac\\.cpp$',],
355 ['include', 'SkStream_mac\\.cpp$',],
356 ['include', 'SkCreateCGImageRef\\.cpp$',],
357 ],
358 }],
359 ],
360
[email protected]9d6bc352013-07-23 13:00:10361 'direct_dependent_settings': {
362 'include_dirs': [
363 #temporary until we can hide SkFontHost
364 '../third_party/skia/src/core',
365
[email protected]9d6bc352013-07-23 13:00:10366 '../third_party/skia/include/core',
367 '../third_party/skia/include/effects',
368 '../third_party/skia/include/pdf',
369 '../third_party/skia/include/gpu',
[email protected]9d6bc352013-07-23 13:00:10370 '../third_party/skia/include/lazy',
371 '../third_party/skia/include/pathops',
372 '../third_party/skia/include/pipe',
373 '../third_party/skia/include/ports',
374 '../third_party/skia/include/utils',
375 ],
[email protected]9d6bc352013-07-23 13:00:10376 },
377}