Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: skia/skia_library.gypi

Issue 2332843004: Remove GYP files. (Closed)
Patch Set: Merge Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « skia/skia_common.gypi ('k') | storage/storage_browser.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
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.
9
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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14 {
15 'dependencies': [
16 'skia_library_opts.gyp:skia_opts',
17 '../third_party/zlib/zlib.gyp:zlib',
18 ],
19
20 'includes': [
21 '../third_party/skia/gyp/core.gypi',
22 '../third_party/skia/gyp/effects.gypi',
23 '../third_party/skia/gyp/pdf.gypi',
24 '../third_party/skia/gyp/utils.gypi',
25 ],
26
27 'sources': [
28 '../third_party/skia/src/ports/SkImageEncoder_none.cpp',
29
30 '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp',
31 '../third_party/skia/src/ports/SkFontConfigInterface_direct_factory.cpp',
32 '../third_party/skia/src/ports/SkFontMgr_FontConfigInterface.cpp',
33 '../third_party/skia/src/ports/SkFontMgr_FontConfigInterface_factory.cpp',
34
35 '../third_party/skia/src/fonts/SkFontMgr_indirect.cpp',
36 '../third_party/skia/src/fonts/SkRemotableFontMgr.cpp',
37 '../third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp',
38
39 '../third_party/skia/src/ports/SkImageGenerator_none.cpp',
40
41 '../third_party/skia/src/ports/SkFontHost_FreeType.cpp',
42 '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp',
43 '../third_party/skia/src/ports/SkFontHost_mac.cpp',
44 '../third_party/skia/src/ports/SkFontHost_win.cpp',
45 "../third_party/skia/src/ports/SkFontMgr_android.cpp",
46 "../third_party/skia/src/ports/SkFontMgr_android_factory.cpp",
47 '../third_party/skia/src/ports/SkFontMgr_android_parser.cpp',
48 '../third_party/skia/src/ports/SkFontMgr_win_dw.cpp',
49 '../third_party/skia/src/ports/SkGlobalInitialization_default.cpp',
50 '../third_party/skia/src/ports/SkOSFile_posix.cpp',
51 '../third_party/skia/src/ports/SkOSFile_stdio.cpp',
52 '../third_party/skia/src/ports/SkOSFile_win.cpp',
53 '../third_party/skia/src/ports/SkScalerContext_win_dw.cpp',
54 '../third_party/skia/src/ports/SkTLS_pthread.cpp',
55 '../third_party/skia/src/ports/SkTLS_win.cpp',
56 '../third_party/skia/src/ports/SkTypeface_win_dw.cpp',
57
58 '../third_party/skia/src/sfnt/SkOTTable_name.cpp',
59 '../third_party/skia/src/sfnt/SkOTUtils.cpp',
60 ],
61
62 # Exclude all unused files in skia utils.gypi file
63 'sources!': [
64 '../third_party/skia/src/utils/SkBoundaryPatch.cpp',
65 '../third_party/skia/src/utils/SkFrontBufferedStream.cpp',
66 '../third_party/skia/src/utils/SkCamera.cpp',
67 '../third_party/skia/src/utils/SkDumpCanvas.cpp',
68 '../third_party/skia/src/utils/SkInterpolator.cpp',
69 '../third_party/skia/src/utils/SkLayer.cpp',
70 '../third_party/skia/src/utils/SkMeshUtils.cpp',
71 '../third_party/skia/src/utils/SkOSFile.cpp',
72 '../third_party/skia/src/utils/SkParsePath.cpp',
73
74 #windows
75 '../third_party/skia/src/utils/win/SkAutoCoInitialize.cpp',
76 '../third_party/skia/src/utils/win/SkIStream.cpp',
77 '../third_party/skia/src/utils/win/SkWGL_win.cpp',
78
79 #testing
80 '../third_party/skia/src/fonts/SkGScalerContext.cpp',
81 ],
82
83 'include_dirs': [
84 '../third_party/skia/include/c',
85 '../third_party/skia/include/core',
86 '../third_party/skia/include/client/android',
87 '../third_party/skia/include/effects',
88 '../third_party/skia/include/images',
89 '../third_party/skia/include/lazy',
90 '../third_party/skia/include/pathops',
91 '../third_party/skia/include/pdf',
92 '../third_party/skia/include/pipe',
93 '../third_party/skia/include/ports',
94 '../third_party/skia/include/private',
95 '../third_party/skia/include/utils',
96 '../third_party/skia/src/core',
97 '../third_party/skia/src/opts',
98 '../third_party/skia/src/image',
99 '../third_party/skia/src/pdf',
100 '../third_party/skia/src/ports',
101 '../third_party/skia/src/sfnt',
102 '../third_party/skia/src/utils',
103 '../third_party/skia/src/lazy',
104 ],
105 'conditions': [
106 ['skia_support_gpu != 0', {
107 'includes': [
108 '../third_party/skia/gyp/gpu.gypi',
109 ],
110 'sources': [
111 '<@(skgpu_null_gl_sources)',
112 '<@(skgpu_sources)',
113 ],
114 'include_dirs': [
115 '../third_party/skia/include/gpu',
116 '../third_party/skia/src/gpu',
117 ],
118 }],
119 ['skia_support_pdf == 0', {
120 'sources/': [
121 ['exclude', '../third_party/skia/src/doc/SkDocument_PDF.cpp'],
122 ['exclude', '../third_party/skia/src/pdf/'],
123 ],
124 }],
125 ['skia_support_pdf == 1', {
126 'dependencies': [
127 '../third_party/sfntly/sfntly.gyp:sfntly',
128 ],
129 }],
130
131 [ 'OS == "win"', {
132 'sources!': [
133 # Keeping _win.cpp
134 "../third_party/skia/src/utils/SkThreadUtils_pthread.cpp",
135 ],
136 },{
137 'sources!': [
138 # Keeping _pthread.cpp
139 "../third_party/skia/src/utils/SkThreadUtils_win.cpp",
140 ],
141 }],
142
143 [ 'OS != "mac"', {
144 'sources/': [
145 ['exclude', '/mac/']
146 ],
147 }],
148 [ 'OS == "android" and target_arch == "arm"', {
149 'sources': [
150 '../third_party/skia/src/core/SkUtilsArm.cpp',
151 ],
152 'dependencies': [
153 '../build/android/ndk.gyp:cpu_features',
154 ],
155 }],
156 [ 'desktop_linux == 1 or chromeos == 1', {
157 'dependencies': [
158 '../build/linux/system.gyp:fontconfig',
159 '../build/linux/system.gyp:freetype2',
160 '../third_party/expat/expat.gyp:expat',
161 '../third_party/icu/icu.gyp:icuuc',
162 ],
163 'cflags': [
164 '-Wno-unused',
165 '-Wno-unused-function',
166 ],
167 }],
168 [ 'use_cairo == 1 and use_pango == 1', {
169 'dependencies': [
170 '../build/linux/system.gyp:pangocairo',
171 ],
172 }],
173 [ 'OS=="win" or OS=="mac" or OS=="ios" or OS=="android"', {
174 'sources!': [
175 '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp',
176 '../third_party/skia/src/ports/SkFontConfigInterface_direct_factory.cpp' ,
177 '../third_party/skia/src/ports/SkFontMgr_FontConfigInterface.cpp',
178 '../third_party/skia/src/ports/SkFontMgr_FontConfigInterface_factory.cpp ',
179 ],
180 }],
181 [ 'OS=="win" or OS=="mac" or OS=="ios"', {
182 'sources!': [
183 '../third_party/skia/src/ports/SkFontHost_FreeType.cpp',
184 '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp',
185
186 ],
187 }],
188 [ 'OS == "android"', {
189 'dependencies': [
190 '../third_party/expat/expat.gyp:expat',
191 '../third_party/freetype-android/freetype.gyp:ft2',
192 ],
193 # This exports a hard dependency because it needs to run its
194 # symlink action in order to expose the skia header files.
195 'hard_dependency': 1,
196 'include_dirs': [
197 '../third_party/expat/files/lib',
198 ],
199 },{ # not 'OS == "android"'
200 'sources!': [
201 "../third_party/skia/src/ports/SkFontMgr_android_factory.cpp",
202 '../third_party/skia/src/ports/SkFontMgr_android_parser.cpp',
203 ],
204 }],
205 [ 'OS == "ios"', {
206 'include_dirs': [
207 '../third_party/skia/include/utils/ios',
208 '../third_party/skia/include/utils/mac',
209 ],
210 'link_settings': {
211 'libraries': [
212 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework',
213 ],
214 },
215 'sources': [
216 # This file is used on both iOS and Mac, so it should be removed
217 # from the ios and mac conditions and moved into the main sources
218 # list.
219 '../third_party/skia/src/utils/mac/SkStream_mac.cpp',
220 ],
221
222 # The main skia_opts target does not currently work on iOS because the
223 # target architecture on iOS is determined at compile time rather than
224 # gyp time (simulator builds are x86, device builds are arm). As a
225 # temporary measure, this is a separate opts target for iOS-only, using
226 # the _none.cpp files to avoid architecture-dependent implementations.
227 'dependencies': [
228 'skia_library_opts.gyp:skia_opts_none',
229 ],
230 'dependencies!': [
231 'skia_library_opts.gyp:skia_opts',
232 ],
233 }],
234 [ 'OS == "mac"', {
235 'direct_dependent_settings': {
236 'include_dirs': [
237 '../third_party/skia/include/utils/mac',
238 ],
239 },
240 'include_dirs': [
241 '../third_party/skia/include/utils/mac',
242 ],
243 'link_settings': {
244 'libraries': [
245 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
246 ],
247 },
248 'sources': [
249 '../third_party/skia/src/utils/mac/SkStream_mac.cpp',
250 ],
251 }],
252 [ 'OS == "win"', {
253 'sources!': [
254 '../third_party/skia/src/ports/SkOSFile_posix.cpp',
255 '../third_party/skia/src/ports/SkTLS_pthread.cpp',
256 ],
257 'include_dirs': [
258 '../third_party/skia/include/utils/win',
259 '../third_party/skia/src/utils/win',
260 ],
261 },{ # not 'OS == "win"'
262 'sources!': [
263 '../third_party/skia/src/ports/SkFontMgr_win_dw.cpp',
264 '../third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp',
265 '../third_party/skia/src/ports/SkScalerContext_win_dw.cpp',
266 '../third_party/skia/src/ports/SkTypeface_win_dw.cpp',
267
268 '../third_party/skia/src/utils/win/SkDWrite.cpp',
269 '../third_party/skia/src/utils/win/SkDWriteFontFileStream.cpp',
270 '../third_party/skia/src/utils/win/SkDWriteGeometrySink.cpp',
271 '../third_party/skia/src/utils/win/SkHRESULT.cpp',
272 ],
273 }],
274 ],
275 'target_conditions': [
276 # Pull in specific Mac files for iOS (which have been filtered out
277 # by file name rules).
278 [ 'OS == "ios"', {
279 'sources/': [
280 ['include', 'SkFontHost_mac\\.cpp$',],
281 ['include', 'SkStream_mac\\.cpp$',],
282 ['include', 'SkCreateCGImageRef\\.cpp$',],
283 ],
284 'xcode_settings' : {
285 'WARNING_CFLAGS': [
286 # SkFontHost_mac.cpp uses API deprecated in iOS 7, crbug.com/408571
287 '-Wno-deprecated-declarations',
288 ],
289 },
290 }],
291 # Add the files for the SkFontMgr_Android. This is used to emulate android
292 # fonts on linux. See content/zygote/zygote_main_linux.cc
293 [ 'OS == "linux"', {
294 'sources/': [
295 ['include', 'SkFontMgr_android\\.cpp$',],
296 ['include', 'SkFontMgr_android_parser\\.cpp$',],
297 ],
298 }],
299 ],
300
301 'direct_dependent_settings': {
302 'include_dirs': [
303 '../third_party/skia/include/core',
304 '../third_party/skia/include/effects',
305 '../third_party/skia/include/pdf',
306 '../third_party/skia/include/gpu',
307 '../third_party/skia/include/lazy',
308 '../third_party/skia/include/pathops',
309 '../third_party/skia/include/pipe',
310 '../third_party/skia/include/ports',
311 '../third_party/skia/include/utils',
312 ],
313 },
314 }
OLDNEW
« no previous file with comments | « skia/skia_common.gypi ('k') | storage/storage_browser.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698