blob: b880be571d99f4ed82546655fdd4427f6b0e609a [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
reed767108b2015-01-08 01:52:2846 '../third_party/skia/src/ports/SkImageGenerator_none.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]196e7ca2014-07-24 18:41:1854 "../third_party/skia/src/ports/SkFontMgr_android.cpp",
[email protected]15c7a712014-06-06 13:33:2455 '../third_party/skia/src/ports/SkFontMgr_win_dw.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]15c7a712014-06-06 13:33:2460 '../third_party/skia/src/ports/SkScalerContext_win_dw.cpp',
61 '../third_party/skia/src/ports/SkScalerContext_win_dw.h',
[email protected]9d6bc352013-07-23 13:00:1062 '../third_party/skia/src/ports/SkTime_Unix.cpp',
63 '../third_party/skia/src/ports/SkTLS_pthread.cpp',
64 '../third_party/skia/src/ports/SkTLS_win.cpp',
[email protected]15c7a712014-06-06 13:33:2465 '../third_party/skia/src/ports/SkTypeface_win_dw.cpp',
66 '../third_party/skia/src/ports/SkTypeface_win_dw.h',
[email protected]9d6bc352013-07-23 13:00:1067
[email protected]596de2e2013-08-07 14:41:0468 '../third_party/skia/src/sfnt/SkOTTable_name.cpp',
69 '../third_party/skia/src/sfnt/SkOTTable_name.h',
[email protected]9d6bc352013-07-23 13:00:1070 '../third_party/skia/src/sfnt/SkOTUtils.cpp',
71 '../third_party/skia/src/sfnt/SkOTUtils.h',
72
[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',
[email protected]9d6bc352013-07-23 13:00:1079
[email protected]9d6bc352013-07-23 13:00:1080 '../third_party/skia/include/images/SkMovie.h',
81 '../third_party/skia/include/images/SkPageFlipper.h',
82
[email protected]6ea5ec082014-03-24 16:18:3983 '../third_party/skia/include/ports/SkFontConfigInterface.h',
84 '../third_party/skia/include/ports/SkFontMgr.h',
85 '../third_party/skia/include/ports/SkFontMgr_indirect.h',
86 '../third_party/skia/include/ports/SkFontStyle.h',
87 '../third_party/skia/include/ports/SkRemotableFontMgr.h',
88 '../third_party/skia/include/ports/SkTypeface_win.h',
[email protected]9d6bc352013-07-23 13:00:1089 ],
[email protected]7110c54c2014-06-10 22:52:0490
91 # Exclude all unused files in skia utils.gypi file
92 'sources!': [
[email protected]7110c54c2014-06-10 22:52:0493 '../third_party/skia/include/utils/SkBoundaryPatch.h',
94 '../third_party/skia/include/utils/SkFrontBufferedStream.h',
95 '../third_party/skia/include/utils/SkCamera.h',
96 '../third_party/skia/include/utils/SkCanvasStateUtils.h',
97 '../third_party/skia/include/utils/SkCubicInterval.h',
98 '../third_party/skia/include/utils/SkCullPoints.h',
99 '../third_party/skia/include/utils/SkDebugUtils.h',
100 '../third_party/skia/include/utils/SkDumpCanvas.h',
101 '../third_party/skia/include/utils/SkEventTracer.h',
102 '../third_party/skia/include/utils/SkInterpolator.h',
103 '../third_party/skia/include/utils/SkLayer.h',
104 '../third_party/skia/include/utils/SkMeshUtils.h',
105 '../third_party/skia/include/utils/SkNinePatch.h',
106 '../third_party/skia/include/utils/SkParse.h',
107 '../third_party/skia/include/utils/SkParsePaint.h',
108 '../third_party/skia/include/utils/SkParsePath.h',
109 '../third_party/skia/include/utils/SkRandom.h',
[email protected]7110c54c2014-06-10 22:52:04110
111 '../third_party/skia/src/utils/SkBitmapHasher.cpp',
112 '../third_party/skia/src/utils/SkBitmapHasher.h',
113 '../third_party/skia/src/utils/SkBoundaryPatch.cpp',
114 '../third_party/skia/src/utils/SkFrontBufferedStream.cpp',
115 '../third_party/skia/src/utils/SkCamera.cpp',
116 '../third_party/skia/src/utils/SkCanvasStack.h',
117 '../third_party/skia/src/utils/SkCubicInterval.cpp',
118 '../third_party/skia/src/utils/SkCullPoints.cpp',
119 '../third_party/skia/src/utils/SkDumpCanvas.cpp',
120 '../third_party/skia/src/utils/SkFloatUtils.h',
121 '../third_party/skia/src/utils/SkGatherPixelRefsAndRects.cpp',
122 '../third_party/skia/src/utils/SkGatherPixelRefsAndRects.h',
123 '../third_party/skia/src/utils/SkInterpolator.cpp',
124 '../third_party/skia/src/utils/SkLayer.cpp',
125 '../third_party/skia/src/utils/SkMD5.cpp',
126 '../third_party/skia/src/utils/SkMD5.h',
127 '../third_party/skia/src/utils/SkMeshUtils.cpp',
128 '../third_party/skia/src/utils/SkNinePatch.cpp',
129 '../third_party/skia/src/utils/SkOSFile.cpp',
130 '../third_party/skia/src/utils/SkParse.cpp',
131 '../third_party/skia/src/utils/SkParseColor.cpp',
132 '../third_party/skia/src/utils/SkParsePath.cpp',
133 '../third_party/skia/src/utils/SkPathUtils.cpp',
134 '../third_party/skia/src/utils/SkSHA1.cpp',
135 '../third_party/skia/src/utils/SkSHA1.h',
[email protected]7110c54c2014-06-10 22:52:04136 '../third_party/skia/src/utils/SkTFitsIn.h',
137 '../third_party/skia/src/utils/SkTLogic.h',
138
mtkleinf922e95f2014-10-30 16:58:01139 # We don't currently need to change thread affinity, so leave out this complexity for now.
140 "../third_party/skia/src/utils/SkThreadUtils_pthread_mach.cpp",
141 "../third_party/skia/src/utils/SkThreadUtils_pthread_linux.cpp",
142
[email protected]7110c54c2014-06-10 22:52:04143#windows
144 '../third_party/skia/include/utils/win/SkAutoCoInitialize.h',
145 '../third_party/skia/include/utils/win/SkHRESULT.h',
146 '../third_party/skia/include/utils/win/SkIStream.h',
147 '../third_party/skia/include/utils/win/SkTScopedComPtr.h',
148 '../third_party/skia/src/utils/win/SkAutoCoInitialize.cpp',
149 '../third_party/skia/src/utils/win/SkIStream.cpp',
150 '../third_party/skia/src/utils/win/SkWGL_win.cpp',
151
152#testing
153 '../third_party/skia/src/fonts/SkGScalerContext.cpp',
154 '../third_party/skia/src/fonts/SkGScalerContext.h',
155 ],
156
[email protected]9d6bc352013-07-23 13:00:10157 'include_dirs': [
reedb5f89982014-10-24 19:58:15158 '../third_party/skia/include/c',
[email protected]9d6bc352013-07-23 13:00:10159 '../third_party/skia/include/core',
160 '../third_party/skia/include/effects',
161 '../third_party/skia/include/images',
162 '../third_party/skia/include/lazy',
163 '../third_party/skia/include/pathops',
164 '../third_party/skia/include/pdf',
165 '../third_party/skia/include/pipe',
166 '../third_party/skia/include/ports',
[email protected]bc912d62014-04-30 14:53:44167 '../third_party/skia/include/record',
[email protected]9d6bc352013-07-23 13:00:10168 '../third_party/skia/include/utils',
169 '../third_party/skia/src/core',
[email protected]36b39bb42013-10-18 13:40:22170 '../third_party/skia/src/opts',
[email protected]9d6bc352013-07-23 13:00:10171 '../third_party/skia/src/image',
halcanary7b3ebdb2015-01-06 20:17:37172 '../third_party/skia/src/pdf',
[email protected]2b889f882013-08-01 14:19:39173 '../third_party/skia/src/ports',
[email protected]9d6bc352013-07-23 13:00:10174 '../third_party/skia/src/sfnt',
175 '../third_party/skia/src/utils',
176 '../third_party/skia/src/lazy',
177 ],
178 'conditions': [
179 ['skia_support_gpu != 0', {
180 'includes': [
181 '../third_party/skia/gyp/gpu.gypi',
182 ],
183 'sources': [
[email protected]54dd8ab2014-01-16 23:40:00184 '<@(skgpu_null_gl_sources)',
[email protected]9d6bc352013-07-23 13:00:10185 '<@(skgpu_sources)',
186 ],
187 'include_dirs': [
188 '../third_party/skia/include/gpu',
[email protected]9d6bc352013-07-23 13:00:10189 '../third_party/skia/src/gpu',
190 ],
191 }],
192 ['skia_support_pdf == 0', {
193 'sources/': [
dnicoara96ecc9252014-11-18 22:32:35194 ['exclude', '../third_party/skia/src/doc/SkDocument_PDF.cpp'],
195 ['exclude', '../third_party/skia/src/pdf/'],
[email protected]9d6bc352013-07-23 13:00:10196 ],
197 }],
198 ['skia_support_pdf == 1', {
199 'dependencies': [
200 '../third_party/sfntly/sfntly.gyp:sfntly',
201 ],
202 }],
203
mtkleinf922e95f2014-10-30 16:58:01204 [ 'OS == "win"', {
205 'sources!': [
206 # Keeping _win.cpp
207 "../third_party/skia/src/utils/SkThreadUtils_pthread.cpp",
208 "../third_party/skia/src/utils/SkThreadUtils_pthread_other.cpp",
209 ],
210 },{
211 'sources!': [
212 # Keeping _pthread.cpp and _pthread_other.cpp
213 "../third_party/skia/src/utils/SkThreadUtils_win.cpp",
214 ],
215 }],
216
[email protected]9d6bc352013-07-23 13:00:10217 [ 'OS != "mac"', {
218 'sources/': [
219 ['exclude', '/mac/']
220 ],
221 }],
[email protected]9d6bc352013-07-23 13:00:10222 [ 'OS == "android" and target_arch == "arm"', {
223 'sources': [
224 '../third_party/skia/src/core/SkUtilsArm.cpp',
225 ],
226 'includes': [
227 '../build/android/cpufeatures.gypi',
228 ],
229 }],
[email protected]2e42a35d2014-03-21 11:30:36230 [ 'target_arch == "arm" or target_arch == "arm64" or \
[email protected]d56118e2014-08-06 17:25:22231 target_arch == "mipsel" or target_arch == "mips64el"', {
[email protected]9d6bc352013-07-23 13:00:10232 'sources!': [
[email protected]bdda54ae22014-05-01 18:03:17233 '../third_party/skia/src/opts/opts_check_x86.cpp'
[email protected]9d6bc352013-07-23 13:00:10234 ],
235 }],
[email protected]b098e1d82013-11-08 06:24:58236 [ 'desktop_linux == 1 or chromeos == 1', {
[email protected]9d6bc352013-07-23 13:00:10237 'dependencies': [
238 '../build/linux/system.gyp:fontconfig',
239 '../build/linux/system.gyp:freetype2',
[email protected]9d6bc352013-07-23 13:00:10240 '../third_party/icu/icu.gyp:icuuc',
241 ],
242 'cflags': [
243 '-Wno-unused',
244 '-Wno-unused-function',
245 ],
246 }],
[email protected]928362a2013-11-19 20:17:16247 [ 'use_cairo == 1', {
248 'dependencies': [
249 '../build/linux/system.gyp:pangocairo',
250 ],
251 }],
[email protected]b098e1d82013-11-08 06:24:58252 [ 'OS=="win" or OS=="mac" or OS=="ios" or OS=="android"', {
[email protected]9d6bc352013-07-23 13:00:10253 'sources!': [
254 '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp',
[email protected]2dc1e102014-08-14 14:04:34255 '../third_party/skia/src/ports/SkFontHost_fontconfig.cpp',
[email protected]9d6bc352013-07-23 13:00:10256 '../third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp',
257 ],
258 }],
[email protected]b098e1d82013-11-08 06:24:58259 [ 'OS=="win" or OS=="mac" or OS=="ios"', {
[email protected]9d6bc352013-07-23 13:00:10260 'sources!': [
261 '../third_party/skia/src/ports/SkFontHost_FreeType.cpp',
262 '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp',
[email protected]9d6bc352013-07-23 13:00:10263
264 ],
265 }],
266 [ 'OS == "android"', {
267 'dependencies': [
268 '../third_party/expat/expat.gyp:expat',
269 '../third_party/freetype/freetype.gyp:ft2',
270 ],
271 # This exports a hard dependency because it needs to run its
272 # symlink action in order to expose the skia header files.
273 'hard_dependency': 1,
274 'include_dirs': [
275 '../third_party/expat/files/lib',
276 ],
277 }],
278 [ 'OS == "ios"', {
[email protected]9d6bc352013-07-23 13:00:10279 'include_dirs': [
280 '../third_party/skia/include/utils/ios',
281 '../third_party/skia/include/utils/mac',
282 ],
283 'link_settings': {
284 'libraries': [
285 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
286 ],
287 },
288 'sources': [
289 # This file is used on both iOS and Mac, so it should be removed
290 # from the ios and mac conditions and moved into the main sources
291 # list.
292 '../third_party/skia/src/utils/mac/SkStream_mac.cpp',
293 ],
294 'sources/': [
[email protected]bdda54ae22014-05-01 18:03:17295 ['exclude', 'opts_check_x86\\.cpp$'],
[email protected]9d6bc352013-07-23 13:00:10296 ],
[email protected]8e3f8c82013-08-21 15:09:55297
[email protected]9d6bc352013-07-23 13:00:10298 # The main skia_opts target does not currently work on iOS because the
299 # target architecture on iOS is determined at compile time rather than
300 # gyp time (simulator builds are x86, device builds are arm). As a
301 # temporary measure, this is a separate opts target for iOS-only, using
302 # the _none.cpp files to avoid architecture-dependent implementations.
303 'dependencies': [
304 'skia_library_opts.gyp:skia_opts_none',
305 ],
306 'dependencies!': [
307 'skia_library_opts.gyp:skia_opts',
308 ],
309 }],
310 [ 'OS == "mac"', {
[email protected]9d6bc352013-07-23 13:00:10311 'direct_dependent_settings': {
312 'include_dirs': [
313 '../third_party/skia/include/utils/mac',
314 ],
315 },
316 'include_dirs': [
317 '../third_party/skia/include/utils/mac',
318 ],
319 'link_settings': {
320 'libraries': [
321 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
322 ],
323 },
324 'sources': [
325 '../third_party/skia/src/utils/mac/SkStream_mac.cpp',
326 ],
327 }],
328 [ 'OS == "win"', {
329 'sources!': [
330 '../third_party/skia/src/ports/SkOSFile_posix.cpp',
[email protected]9d6bc352013-07-23 13:00:10331 '../third_party/skia/src/ports/SkTime_Unix.cpp',
332 '../third_party/skia/src/ports/SkTLS_pthread.cpp',
333 ],
[email protected]1d93409e2013-08-21 17:13:19334 'include_dirs': [
335 '../third_party/skia/include/utils/win',
336 '../third_party/skia/src/utils/win',
337 ],
[email protected]1d93409e2013-08-21 17:13:19338 },{ # not 'OS == "win"'
339 'sources!': [
[email protected]15c7a712014-06-06 13:33:24340 '../third_party/skia/src/ports/SkFontMgr_win_dw.cpp',
[email protected]6ea5ec082014-03-24 16:18:39341 '../third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp',
[email protected]15c7a712014-06-06 13:33:24342 '../third_party/skia/src/ports/SkScalerContext_win_dw.cpp',
343 '../third_party/skia/src/ports/SkScalerContext_win_dw.h',
344 '../third_party/skia/src/ports/SkTypeface_win_dw.cpp',
345 '../third_party/skia/src/ports/SkTypeface_win_dw.h',
[email protected]1d93409e2013-08-21 17:13:19346
[email protected]6ea5ec082014-03-24 16:18:39347 '../third_party/skia/src/utils/win/SkDWrite.h',
348 '../third_party/skia/src/utils/win/SkDWrite.cpp',
[email protected]1d93409e2013-08-21 17:13:19349 '../third_party/skia/src/utils/win/SkDWriteFontFileStream.cpp',
350 '../third_party/skia/src/utils/win/SkDWriteFontFileStream.h',
351 '../third_party/skia/src/utils/win/SkDWriteGeometrySink.cpp',
352 '../third_party/skia/src/utils/win/SkDWriteGeometrySink.h',
353 '../third_party/skia/src/utils/win/SkHRESULT.cpp',
354 ],
[email protected]9d6bc352013-07-23 13:00:10355 }],
[email protected]9d6bc352013-07-23 13:00:10356 ],
357 'target_conditions': [
358 # Pull in specific Mac files for iOS (which have been filtered out
359 # by file name rules).
360 [ 'OS == "ios"', {
361 'sources/': [
362 ['include', 'SkFontHost_mac\\.cpp$',],
363 ['include', 'SkStream_mac\\.cpp$',],
364 ['include', 'SkCreateCGImageRef\\.cpp$',],
365 ],
lliabraa7ecee0c2014-11-19 14:32:34366 'xcode_settings' : {
367 'WARNING_CFLAGS': [
368 # SkFontHost_mac.cpp uses API deprecated in iOS 7.
369 # crbug.com/408571
370 '-Wno-deprecated-declarations',
371 ],
372 },
[email protected]9d6bc352013-07-23 13:00:10373 }],
374 ],
375
[email protected]9d6bc352013-07-23 13:00:10376 'direct_dependent_settings': {
377 'include_dirs': [
378 #temporary until we can hide SkFontHost
379 '../third_party/skia/src/core',
380
[email protected]9d6bc352013-07-23 13:00:10381 '../third_party/skia/include/core',
382 '../third_party/skia/include/effects',
383 '../third_party/skia/include/pdf',
384 '../third_party/skia/include/gpu',
[email protected]9d6bc352013-07-23 13:00:10385 '../third_party/skia/include/lazy',
386 '../third_party/skia/include/pathops',
387 '../third_party/skia/include/pipe',
388 '../third_party/skia/include/ports',
389 '../third_party/skia/include/utils',
390 ],
[email protected]9d6bc352013-07-23 13:00:10391 },
392}