blob: a79af6b73e573f8a99f1e0d0d7029f329844a26c [file] [log] [blame]
epoger@google.com51c078b2011-05-31 19:02:37 +00001# Core Skia library code.
bsalomon@google.coma9681db2011-03-21 13:34:23 +00002{
epoger@google.comae85aea2011-05-31 13:50:51 +00003 'includes': [
epoger@google.com5351b372011-07-01 17:16:26 +00004 'common.gypi',
epoger@google.comae85aea2011-05-31 13:50:51 +00005 ],
bsalomon@google.coma9681db2011-03-21 13:34:23 +00006 'targets': [
7 {
epoger@google.com51c078b2011-05-31 19:02:37 +00008 'target_name': 'core',
bsalomon@google.coma9681db2011-03-21 13:34:23 +00009 'type': 'static_library',
10 'msvs_guid': 'B7760B5E-BFA8-486B-ACFD-49E3A6DE8E76',
11 'sources': [
12 '../src/core/ARGB32_Clamp_Bilinear_BitmapShader.h',
13 '../src/core/Sk64.cpp',
reed@google.com719fd042011-10-10 16:04:26 +000014 '../src/core/SkAAClip.cpp',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000015 '../src/core/SkAdvancedTypefaceMetrics.cpp',
16 '../src/core/SkAlphaRuns.cpp',
17 '../src/core/SkAntiRun.h',
18 '../src/core/SkBitmap.cpp',
19 '../src/core/SkBitmapProcShader.cpp',
20 '../src/core/SkBitmapProcShader.h',
21 '../src/core/SkBitmapProcState.cpp',
22 '../src/core/SkBitmapProcState.h',
23 '../src/core/SkBitmapProcState_matrix.h',
24 '../src/core/SkBitmapProcState_matrixProcs.cpp',
25 '../src/core/SkBitmapProcState_sample.h',
26 '../src/core/SkBitmapSampler.cpp',
27 '../src/core/SkBitmapSampler.h',
28 '../src/core/SkBitmapSamplerTemplate.h',
29 '../src/core/SkBitmapShader16BilerpTemplate.h',
30 '../src/core/SkBitmapShaderTemplate.h',
31 '../src/core/SkBitmap_scroll.cpp',
32 '../src/core/SkBlitBWMaskTemplate.h',
reed@google.comedb606c2011-10-18 13:56:50 +000033 '../src/core/SkBlitMask_D32.cpp',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000034 '../src/core/SkBlitRow_D16.cpp',
35 '../src/core/SkBlitRow_D32.cpp',
36 '../src/core/SkBlitRow_D4444.cpp',
37 '../src/core/SkBlitter.cpp',
38 '../src/core/SkBlitter_4444.cpp',
39 '../src/core/SkBlitter_A1.cpp',
40 '../src/core/SkBlitter_A8.cpp',
41 '../src/core/SkBlitter_ARGB32.cpp',
42 '../src/core/SkBlitter_RGB16.cpp',
43 '../src/core/SkBlitter_Sprite.cpp',
44 '../src/core/SkBuffer.cpp',
45 '../src/core/SkCanvas.cpp',
46 '../src/core/SkChunkAlloc.cpp',
bsalomon@google.com1217afe2011-04-19 13:44:20 +000047 '../src/core/SkClampRange.cpp',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000048 '../src/core/SkClipStack.cpp',
49 '../src/core/SkColor.cpp',
50 '../src/core/SkColorFilter.cpp',
51 '../src/core/SkColorTable.cpp',
52 '../src/core/SkComposeShader.cpp',
53 '../src/core/SkConcaveToTriangles.cpp',
54 '../src/core/SkConcaveToTriangles.h',
55 '../src/core/SkCordic.cpp',
56 '../src/core/SkCordic.h',
57 '../src/core/SkCoreBlitters.h',
58 '../src/core/SkCubicClipper.cpp',
59 '../src/core/SkCubicClipper.h',
reed@google.com8d0b5772011-06-24 13:07:31 +000060 '../src/core/SkData.cpp',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000061 '../src/core/SkDebug.cpp',
62 '../src/core/SkDeque.cpp',
63 '../src/core/SkDevice.cpp',
64 '../src/core/SkDither.cpp',
65 '../src/core/SkDraw.cpp',
66 '../src/core/SkDrawProcs.h',
67 '../src/core/SkEdgeBuilder.cpp',
68 '../src/core/SkEdgeClipper.cpp',
69 '../src/core/SkEdge.cpp',
70 '../src/core/SkEdge.h',
71 '../src/core/SkFP.h',
72 '../src/core/SkFilterProc.cpp',
73 '../src/core/SkFilterProc.h',
74 '../src/core/SkFlattenable.cpp',
75 '../src/core/SkFloat.cpp',
76 '../src/core/SkFloat.h',
77 '../src/core/SkFloatBits.cpp',
bsalomon@google.comc386b872011-05-19 14:39:57 +000078 '../src/core/SkFontHost.cpp',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000079 '../src/core/SkGeometry.cpp',
80 '../src/core/SkGlobals.cpp',
81 '../src/core/SkGlyphCache.cpp',
82 '../src/core/SkGlyphCache.h',
83 '../src/core/SkGraphics.cpp',
84 '../src/core/SkLineClipper.cpp',
85 '../src/core/SkMallocPixelRef.cpp',
86 '../src/core/SkMask.cpp',
87 '../src/core/SkMaskFilter.cpp',
88 '../src/core/SkMath.cpp',
89 '../src/core/SkMatrix.cpp',
reed@google.com5e3496e2011-03-30 17:10:42 +000090 '../src/core/SkMetaData.cpp',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000091 '../src/core/SkPackBits.cpp',
92 '../src/core/SkPaint.cpp',
93 '../src/core/SkPath.cpp',
94 '../src/core/SkPathEffect.cpp',
95 '../src/core/SkPathHeap.cpp',
96 '../src/core/SkPathHeap.h',
97 '../src/core/SkPathMeasure.cpp',
98 '../src/core/SkPicture.cpp',
99 '../src/core/SkPictureFlat.cpp',
100 '../src/core/SkPictureFlat.h',
101 '../src/core/SkPicturePlayback.cpp',
102 '../src/core/SkPicturePlayback.h',
103 '../src/core/SkPictureRecord.cpp',
104 '../src/core/SkPictureRecord.h',
105 '../src/core/SkPixelRef.cpp',
106 '../src/core/SkPoint.cpp',
107 '../src/core/SkProcSpriteBlitter.cpp',
108 '../src/core/SkPtrRecorder.cpp',
109 '../src/core/SkQuadClipper.cpp',
110 '../src/core/SkQuadClipper.h',
reed@google.comc2188cf2011-10-11 18:00:20 +0000111 '../src/core/SkRasterClip.cpp',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000112 '../src/core/SkRasterizer.cpp',
113 '../src/core/SkRect.cpp',
114 '../src/core/SkRefDict.cpp',
115 '../src/core/SkRegion.cpp',
116 '../src/core/SkRegionPriv.h',
117 '../src/core/SkRegion_path.cpp',
118 '../src/core/SkScalar.cpp',
119 '../src/core/SkScalerContext.cpp',
120 '../src/core/SkScan.cpp',
121 '../src/core/SkScanPriv.h',
122 '../src/core/SkScan_AntiPath.cpp',
123 '../src/core/SkScan_Antihair.cpp',
124 '../src/core/SkScan_Hairline.cpp',
125 '../src/core/SkScan_Path.cpp',
126 '../src/core/SkShader.cpp',
127 '../src/core/SkShape.cpp',
128 '../src/core/SkSpriteBlitter_ARGB32.cpp',
129 '../src/core/SkSpriteBlitter_RGB16.cpp',
130 '../src/core/SkSinTable.h',
131 '../src/core/SkSpriteBlitter.h',
132 '../src/core/SkSpriteBlitterTemplate.h',
133 '../src/core/SkStream.cpp',
134 '../src/core/SkString.cpp',
135 '../src/core/SkStroke.cpp',
136 '../src/core/SkStrokerPriv.cpp',
137 '../src/core/SkStrokerPriv.h',
138 '../src/core/SkTextFormatParams.h',
139 '../src/core/SkTSearch.cpp',
140 '../src/core/SkTSort.h',
141 '../src/core/SkTemplatesPriv.h',
142 '../src/core/SkTypeface.cpp',
bsalomon@google.com2b357992011-05-02 20:46:48 +0000143 '../src/core/SkTypefaceCache.cpp',
144 '../src/core/SkTypefaceCache.h',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000145 '../src/core/SkUnPreMultiply.cpp',
146 '../src/core/SkUtils.cpp',
147 '../src/core/SkWriter32.cpp',
148 '../src/core/SkXfermode.cpp',
149
150 '../src/opts/opts_check_SSE2.cpp',
151
152 '../src/ports/SkDebug_stdio.cpp',
bsalomon@google.com2b357992011-05-02 20:46:48 +0000153 '../src/ports/SkDebug_win.cpp',
bsalomon@google.com58357222011-07-08 16:10:53 +0000154 '../src/ports/SkFontHost_win.cpp',
155 '../src/ports/SkThread_win.cpp',
bsalomon@google.com2b357992011-05-02 20:46:48 +0000156
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000157 '../src/ports/SkFontHost_tables.cpp',
158 '../src/ports/SkGlobals_global.cpp',
159 '../src/ports/SkMemory_malloc.cpp',
160 '../src/ports/SkOSFile_stdio.cpp',
161 '../src/ports/SkTime_Unix.cpp',
bungeman@google.com206c98a2011-05-31 21:21:54 +0000162 '../src/ports/SkTime_win.cpp',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000163 '../src/ports/SkXMLParser_empty.cpp',
164 '../src/ports/sk_predefined_gamma.h',
165
166 '../include/core/Sk64.h',
167 '../include/core/SkAdvancedTypefaceMetrics.h',
168 '../include/core/SkAutoKern.h',
169 '../include/core/SkBitmap.h',
170 '../include/core/SkBlitRow.h',
171 '../include/core/SkBlitter.h',
172 '../include/core/SkBounder.h',
173 '../include/core/SkBuffer.h',
174 '../include/core/SkCanvas.h',
175 '../include/core/SkChunkAlloc.h',
bsalomon@google.com1217afe2011-04-19 13:44:20 +0000176 '../include/core/SkClampRange.h',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000177 '../include/core/SkClipStack.h',
178 '../include/core/SkColor.h',
179 '../include/core/SkColorFilter.h',
180 '../include/core/SkColorPriv.h',
181 '../include/core/SkColorShader.h',
182 '../include/core/SkComposeShader.h',
reed@google.com8d0b5772011-06-24 13:07:31 +0000183 '../include/core/SkData.h',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000184 '../include/core/SkDeque.h',
185 '../include/core/SkDescriptor.h',
186 '../include/core/SkDevice.h',
187 '../include/core/SkDither.h',
188 '../include/core/SkDraw.h',
189 '../include/core/SkDrawFilter.h',
190 '../include/core/SkDrawLooper.h',
191 '../include/core/SkEndian.h',
192 '../include/core/SkFDot6.h',
193 '../include/core/SkFixed.h',
194 '../include/core/SkFlattenable.h',
195 '../include/core/SkFloatBits.h',
196 '../include/core/SkFloatingPoint.h',
197 '../include/core/SkFontHost.h',
198 '../include/core/SkGeometry.h',
199 '../include/core/SkGlobals.h',
200 '../include/core/SkGraphics.h',
201 '../include/core/SkMallocPixelRef.h',
202 '../include/core/SkMask.h',
203 '../include/core/SkMaskFilter.h',
204 '../include/core/SkMath.h',
205 '../include/core/SkMatrix.h',
reed@google.com5e3496e2011-03-30 17:10:42 +0000206 '../include/core/SkMetaData.h',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000207 '../include/core/SkOSFile.h',
208 '../include/core/SkPackBits.h',
209 '../include/core/SkPaint.h',
210 '../include/core/SkPath.h',
211 '../include/core/SkPathEffect.h',
212 '../include/core/SkPathMeasure.h',
213 '../include/core/SkPerspIter.h',
214 '../include/core/SkPicture.h',
215 '../include/core/SkPixelRef.h',
216 '../include/core/SkPoint.h',
217 '../include/core/SkPtrRecorder.h',
218 '../include/core/SkRandom.h',
219 '../include/core/SkRasterizer.h',
220 '../include/core/SkReader32.h',
221 '../include/core/SkRect.h',
222 '../include/core/SkRefCnt.h',
223 '../include/core/SkRefDict.h',
224 '../include/core/SkRegion.h',
225 '../include/core/SkScalar.h',
226 '../include/core/SkScalarCompare.h',
227 '../include/core/SkScalerContext.h',
228 '../include/core/SkScan.h',
229 '../include/core/SkShader.h',
230 '../include/core/SkStream.h',
231 '../include/core/SkString.h',
232 '../include/core/SkStroke.h',
bsalomon@google.com21fa0672011-09-19 19:43:36 +0000233 '../include/core/SkTArray.h',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000234 '../include/core/SkTDArray.h',
235 '../include/core/SkTDStack.h',
236 '../include/core/SkTDict.h',
237 '../include/core/SkTRegistry.h',
238 '../include/core/SkTScopedPtr.h',
239 '../include/core/SkTSearch.h',
240 '../include/core/SkTemplates.h',
241 '../include/core/SkThread.h',
242 '../include/core/SkThread_platform.h',
243 '../include/core/SkTime.h',
bungeman@google.comb81be7a2011-07-28 16:51:20 +0000244 '../include/core/SkTLazy.h',
tomhudson@google.com278cbb42011-06-30 19:37:01 +0000245 '../include/core/SkTrace.h',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000246 '../include/core/SkTypeface.h',
247 '../include/core/SkTypes.h',
248 '../include/core/SkUnPreMultiply.h',
249 '../include/core/SkUnitMapper.h',
250 '../include/core/SkUtils.h',
251 '../include/core/SkWriter32.h',
252 '../include/core/SkXfermode.h',
253 ],
254 'include_dirs': [
255 '../include/config',
256 '../include/core',
257 '../include/ports',
258 '../include/xml',
259 '../src/core',
260 ],
261 'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800],
262 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000263 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000264 'cflags': [
265 '-Wno-unused',
266 '-Wno-unused-function',
267 ],
268 'sources': [
269 '../include/core/SkMMapStream.h',
270 '../src/core/SkMMapStream.cpp',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000271 '../src/ports/SkThread_pthread.cpp',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000272 '../src/ports/SkFontHost_FreeType.cpp',
273 '../src/ports/SkFontHost_gamma_none.cpp',
274 '../src/ports/SkFontHost_linux.cpp',
275 ],
276 'link_settings': {
277 'libraries': [
278 '-lfreetype',
senorblanco@chromium.org7eb492e2011-03-25 17:41:34 +0000279 '-lpthread',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000280 ],
bsalomon@google.com91826102011-03-21 19:51:57 +0000281 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000282 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000283 [ 'skia_os == "mac"', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000284 'include_dirs': [
285 '../include/utils/mac',
286 ],
287 'sources': [
288 '../include/core/SkMMapStream.h',
289 '../include/utils/mac/SkCGUtils.h',
290
291 '../src/core/SkMMapStream.cpp',
292 '../src/ports/SkFontHost_mac_coretext.cpp',
293
294 '../src/ports/SkThread_pthread.cpp',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000295 ],
epoger@google.com0a030cd2011-06-02 19:52:14 +0000296 'link_settings': {
297 'libraries': [
yangsu@google.comccb74ea2011-06-21 13:09:32 +0000298 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
epoger@google.com0a030cd2011-06-02 19:52:14 +0000299 ],
300 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000301 }],
epoger@google.comea5dfa82011-07-01 21:01:32 +0000302 [ 'skia_os == "ios"', {
303 'include_dirs': [
304 '../include/utils/ios',
305 ],
306 'sources': [
307 '../include/core/SkMMapStream.h',
308 '../include/utils/mac/SkCGUtils.h',
309
310 '../src/core/SkMMapStream.cpp',
311 '../src/ports/SkFontHost_mac_coretext.cpp',
312
313 '../src/ports/SkThread_pthread.cpp',
epoger@google.comea5dfa82011-07-01 21:01:32 +0000314 ],
315 'link_settings': {
316 'libraries': [
317 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework',
318 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreGraphics.framework',
319 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreText.framework',
320 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework',
321 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/Foundation.framework',
322 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/QuartzCore.framework',
323 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/OpenGLES.framework',
324 ],
325 },
326 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000327 [ 'skia_os == "win"', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000328 'include_dirs': [
329 'config/win',
330 ],
bsalomon@google.com58357222011-07-08 16:10:53 +0000331 'sources!': [ # these are used everywhere but windows
bsalomon@google.com2b357992011-05-02 20:46:48 +0000332 '../src/ports/SkDebug_stdio.cpp',
bsalomon@google.com58357222011-07-08 16:10:53 +0000333 '../src/ports/SkTime_Unix.cpp',
bsalomon@google.com2b357992011-05-02 20:46:48 +0000334 ],
bsalomon@google.com58357222011-07-08 16:10:53 +0000335 }, { # else !win
bsalomon@google.com2b357992011-05-02 20:46:48 +0000336 'sources!': [
337 '../src/ports/SkDebug_win.cpp',
bsalomon@google.com58357222011-07-08 16:10:53 +0000338 '../src/ports/SkFontHost_win.cpp',
339 '../src/ports/SkThread_win.cpp',
bungeman@google.com206c98a2011-05-31 21:21:54 +0000340 '../src/ports/SkTime_win.cpp',
bsalomon@google.com2b357992011-05-02 20:46:48 +0000341 ],
senorblanco@chromium.orgc1587e02011-05-04 18:59:38 +0000342 }],
djsollen@google.com58629292011-11-03 13:08:29 +0000343 [ 'skia_os == "android"', {
344 'sources!': [
345 '../src/opts/opts_check_SSE2.cpp',
346 ],
347 'sources': [
348 '../include/core/SkMMapStream.h',
349 '../src/core/SkMMapStream.cpp',
350 '../src/ports/SkThread_pthread.cpp',
351 '../src/ports/SkFontHost_android.cpp',
352 '../src/ports/SkFontHost_gamma.cpp',
353 '../src/ports/SkFontHost_FreeType.cpp',
354 '../src/ports/FontHostConfiguration_android.cpp',
355 ],
356 'dependencies': [
357 'android_system.gyp:ft2',
358 'android_system.gyp:expat',
359 ],
360 }],
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000361 ],
362 'direct_dependent_settings': {
363 'include_dirs': [
364 'config',
365 '../include/config',
366 '../include/core',
367 'ext',
368 ],
369 },
370 'dependencies': [
epoger@google.comae85aea2011-05-31 13:50:51 +0000371 'opts.gyp:opts'
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000372 ],
373 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000374 ],
375}
376
377# Local Variables:
378# tab-width:2
379# indent-tabs-mode:nil
380# End:
381# vim: set expandtab tabstop=2 shiftwidth=2: