blob: 55819c47215b68eb6e9ebc15ea3239a72393bfc7 [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',
14 '../src/core/SkAdvancedTypefaceMetrics.cpp',
15 '../src/core/SkAlphaRuns.cpp',
16 '../src/core/SkAntiRun.h',
17 '../src/core/SkBitmap.cpp',
18 '../src/core/SkBitmapProcShader.cpp',
19 '../src/core/SkBitmapProcShader.h',
20 '../src/core/SkBitmapProcState.cpp',
21 '../src/core/SkBitmapProcState.h',
22 '../src/core/SkBitmapProcState_matrix.h',
23 '../src/core/SkBitmapProcState_matrixProcs.cpp',
24 '../src/core/SkBitmapProcState_sample.h',
25 '../src/core/SkBitmapSampler.cpp',
26 '../src/core/SkBitmapSampler.h',
27 '../src/core/SkBitmapSamplerTemplate.h',
28 '../src/core/SkBitmapShader16BilerpTemplate.h',
29 '../src/core/SkBitmapShaderTemplate.h',
30 '../src/core/SkBitmap_scroll.cpp',
31 '../src/core/SkBlitBWMaskTemplate.h',
32 '../src/core/SkBlitRow_D16.cpp',
33 '../src/core/SkBlitRow_D32.cpp',
34 '../src/core/SkBlitRow_D4444.cpp',
35 '../src/core/SkBlitter.cpp',
36 '../src/core/SkBlitter_4444.cpp',
37 '../src/core/SkBlitter_A1.cpp',
38 '../src/core/SkBlitter_A8.cpp',
39 '../src/core/SkBlitter_ARGB32.cpp',
40 '../src/core/SkBlitter_RGB16.cpp',
41 '../src/core/SkBlitter_Sprite.cpp',
42 '../src/core/SkBuffer.cpp',
43 '../src/core/SkCanvas.cpp',
44 '../src/core/SkChunkAlloc.cpp',
bsalomon@google.com1217afe2011-04-19 13:44:20 +000045 '../src/core/SkClampRange.cpp',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000046 '../src/core/SkClipStack.cpp',
47 '../src/core/SkColor.cpp',
48 '../src/core/SkColorFilter.cpp',
49 '../src/core/SkColorTable.cpp',
50 '../src/core/SkComposeShader.cpp',
51 '../src/core/SkConcaveToTriangles.cpp',
52 '../src/core/SkConcaveToTriangles.h',
53 '../src/core/SkCordic.cpp',
54 '../src/core/SkCordic.h',
55 '../src/core/SkCoreBlitters.h',
56 '../src/core/SkCubicClipper.cpp',
57 '../src/core/SkCubicClipper.h',
reed@google.com8d0b5772011-06-24 13:07:31 +000058 '../src/core/SkData.cpp',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000059 '../src/core/SkDebug.cpp',
60 '../src/core/SkDeque.cpp',
61 '../src/core/SkDevice.cpp',
62 '../src/core/SkDither.cpp',
63 '../src/core/SkDraw.cpp',
64 '../src/core/SkDrawProcs.h',
65 '../src/core/SkEdgeBuilder.cpp',
66 '../src/core/SkEdgeClipper.cpp',
67 '../src/core/SkEdge.cpp',
68 '../src/core/SkEdge.h',
69 '../src/core/SkFP.h',
70 '../src/core/SkFilterProc.cpp',
71 '../src/core/SkFilterProc.h',
72 '../src/core/SkFlattenable.cpp',
73 '../src/core/SkFloat.cpp',
74 '../src/core/SkFloat.h',
75 '../src/core/SkFloatBits.cpp',
bsalomon@google.comc386b872011-05-19 14:39:57 +000076 '../src/core/SkFontHost.cpp',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000077 '../src/core/SkGeometry.cpp',
78 '../src/core/SkGlobals.cpp',
79 '../src/core/SkGlyphCache.cpp',
80 '../src/core/SkGlyphCache.h',
81 '../src/core/SkGraphics.cpp',
82 '../src/core/SkLineClipper.cpp',
83 '../src/core/SkMallocPixelRef.cpp',
84 '../src/core/SkMask.cpp',
85 '../src/core/SkMaskFilter.cpp',
86 '../src/core/SkMath.cpp',
87 '../src/core/SkMatrix.cpp',
reed@google.com5e3496e2011-03-30 17:10:42 +000088 '../src/core/SkMetaData.cpp',
bsalomon@google.coma9681db2011-03-21 13:34:23 +000089 '../src/core/SkPackBits.cpp',
90 '../src/core/SkPaint.cpp',
91 '../src/core/SkPath.cpp',
92 '../src/core/SkPathEffect.cpp',
93 '../src/core/SkPathHeap.cpp',
94 '../src/core/SkPathHeap.h',
95 '../src/core/SkPathMeasure.cpp',
96 '../src/core/SkPicture.cpp',
97 '../src/core/SkPictureFlat.cpp',
98 '../src/core/SkPictureFlat.h',
99 '../src/core/SkPicturePlayback.cpp',
100 '../src/core/SkPicturePlayback.h',
101 '../src/core/SkPictureRecord.cpp',
102 '../src/core/SkPictureRecord.h',
103 '../src/core/SkPixelRef.cpp',
104 '../src/core/SkPoint.cpp',
105 '../src/core/SkProcSpriteBlitter.cpp',
106 '../src/core/SkPtrRecorder.cpp',
107 '../src/core/SkQuadClipper.cpp',
108 '../src/core/SkQuadClipper.h',
109 '../src/core/SkRasterizer.cpp',
110 '../src/core/SkRect.cpp',
111 '../src/core/SkRefDict.cpp',
112 '../src/core/SkRegion.cpp',
113 '../src/core/SkRegionPriv.h',
114 '../src/core/SkRegion_path.cpp',
115 '../src/core/SkScalar.cpp',
116 '../src/core/SkScalerContext.cpp',
117 '../src/core/SkScan.cpp',
118 '../src/core/SkScanPriv.h',
119 '../src/core/SkScan_AntiPath.cpp',
120 '../src/core/SkScan_Antihair.cpp',
121 '../src/core/SkScan_Hairline.cpp',
122 '../src/core/SkScan_Path.cpp',
123 '../src/core/SkShader.cpp',
124 '../src/core/SkShape.cpp',
125 '../src/core/SkSpriteBlitter_ARGB32.cpp',
126 '../src/core/SkSpriteBlitter_RGB16.cpp',
127 '../src/core/SkSinTable.h',
128 '../src/core/SkSpriteBlitter.h',
129 '../src/core/SkSpriteBlitterTemplate.h',
130 '../src/core/SkStream.cpp',
131 '../src/core/SkString.cpp',
132 '../src/core/SkStroke.cpp',
133 '../src/core/SkStrokerPriv.cpp',
134 '../src/core/SkStrokerPriv.h',
135 '../src/core/SkTextFormatParams.h',
136 '../src/core/SkTSearch.cpp',
137 '../src/core/SkTSort.h',
138 '../src/core/SkTemplatesPriv.h',
139 '../src/core/SkTypeface.cpp',
bsalomon@google.com2b357992011-05-02 20:46:48 +0000140 '../src/core/SkTypefaceCache.cpp',
141 '../src/core/SkTypefaceCache.h',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000142 '../src/core/SkUnPreMultiply.cpp',
tomhudson@google.com278cbb42011-06-30 19:37:01 +0000143 '../src/core/SkUserTrace.h',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000144 '../src/core/SkUtils.cpp',
145 '../src/core/SkWriter32.cpp',
146 '../src/core/SkXfermode.cpp',
147
148 '../src/opts/opts_check_SSE2.cpp',
149
150 '../src/ports/SkDebug_stdio.cpp',
bsalomon@google.com2b357992011-05-02 20:46:48 +0000151 '../src/ports/SkDebug_win.cpp',
152
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000153 '../src/ports/SkFontHost_tables.cpp',
154 '../src/ports/SkGlobals_global.cpp',
155 '../src/ports/SkMemory_malloc.cpp',
156 '../src/ports/SkOSFile_stdio.cpp',
157 '../src/ports/SkTime_Unix.cpp',
bungeman@google.com206c98a2011-05-31 21:21:54 +0000158 '../src/ports/SkTime_win.cpp',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000159 '../src/ports/SkXMLParser_empty.cpp',
160 '../src/ports/sk_predefined_gamma.h',
161
162 '../include/core/Sk64.h',
163 '../include/core/SkAdvancedTypefaceMetrics.h',
164 '../include/core/SkAutoKern.h',
165 '../include/core/SkBitmap.h',
166 '../include/core/SkBlitRow.h',
167 '../include/core/SkBlitter.h',
168 '../include/core/SkBounder.h',
169 '../include/core/SkBuffer.h',
170 '../include/core/SkCanvas.h',
171 '../include/core/SkChunkAlloc.h',
bsalomon@google.com1217afe2011-04-19 13:44:20 +0000172 '../include/core/SkClampRange.h',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000173 '../include/core/SkClipStack.h',
174 '../include/core/SkColor.h',
175 '../include/core/SkColorFilter.h',
176 '../include/core/SkColorPriv.h',
177 '../include/core/SkColorShader.h',
178 '../include/core/SkComposeShader.h',
reed@google.com8d0b5772011-06-24 13:07:31 +0000179 '../include/core/SkData.h',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000180 '../include/core/SkDeque.h',
181 '../include/core/SkDescriptor.h',
182 '../include/core/SkDevice.h',
183 '../include/core/SkDither.h',
184 '../include/core/SkDraw.h',
185 '../include/core/SkDrawFilter.h',
186 '../include/core/SkDrawLooper.h',
187 '../include/core/SkEndian.h',
188 '../include/core/SkFDot6.h',
189 '../include/core/SkFixed.h',
190 '../include/core/SkFlattenable.h',
191 '../include/core/SkFloatBits.h',
192 '../include/core/SkFloatingPoint.h',
193 '../include/core/SkFontHost.h',
194 '../include/core/SkGeometry.h',
195 '../include/core/SkGlobals.h',
196 '../include/core/SkGraphics.h',
197 '../include/core/SkMallocPixelRef.h',
198 '../include/core/SkMask.h',
199 '../include/core/SkMaskFilter.h',
200 '../include/core/SkMath.h',
201 '../include/core/SkMatrix.h',
reed@google.com5e3496e2011-03-30 17:10:42 +0000202 '../include/core/SkMetaData.h',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000203 '../include/core/SkOSFile.h',
204 '../include/core/SkPackBits.h',
205 '../include/core/SkPaint.h',
206 '../include/core/SkPath.h',
207 '../include/core/SkPathEffect.h',
208 '../include/core/SkPathMeasure.h',
209 '../include/core/SkPerspIter.h',
210 '../include/core/SkPicture.h',
211 '../include/core/SkPixelRef.h',
212 '../include/core/SkPoint.h',
213 '../include/core/SkPtrRecorder.h',
214 '../include/core/SkRandom.h',
215 '../include/core/SkRasterizer.h',
216 '../include/core/SkReader32.h',
217 '../include/core/SkRect.h',
218 '../include/core/SkRefCnt.h',
219 '../include/core/SkRefDict.h',
220 '../include/core/SkRegion.h',
221 '../include/core/SkScalar.h',
222 '../include/core/SkScalarCompare.h',
223 '../include/core/SkScalerContext.h',
224 '../include/core/SkScan.h',
225 '../include/core/SkShader.h',
226 '../include/core/SkStream.h',
227 '../include/core/SkString.h',
228 '../include/core/SkStroke.h',
229 '../include/core/SkTDArray.h',
230 '../include/core/SkTDStack.h',
231 '../include/core/SkTDict.h',
232 '../include/core/SkTRegistry.h',
233 '../include/core/SkTScopedPtr.h',
234 '../include/core/SkTSearch.h',
235 '../include/core/SkTemplates.h',
236 '../include/core/SkThread.h',
237 '../include/core/SkThread_platform.h',
238 '../include/core/SkTime.h',
tomhudson@google.com278cbb42011-06-30 19:37:01 +0000239 '../include/core/SkTrace.h',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000240 '../include/core/SkTypeface.h',
241 '../include/core/SkTypes.h',
242 '../include/core/SkUnPreMultiply.h',
243 '../include/core/SkUnitMapper.h',
244 '../include/core/SkUtils.h',
245 '../include/core/SkWriter32.h',
246 '../include/core/SkXfermode.h',
247 ],
248 'include_dirs': [
249 '../include/config',
250 '../include/core',
251 '../include/ports',
252 '../include/xml',
253 '../src/core',
254 ],
255 'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800],
256 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000257 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000258 'cflags': [
259 '-Wno-unused',
260 '-Wno-unused-function',
261 ],
262 'sources': [
263 '../include/core/SkMMapStream.h',
264 '../src/core/SkMMapStream.cpp',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000265 '../src/ports/SkThread_pthread.cpp',
266 '../src/ports/SkTime_Unix.cpp',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000267 '../src/ports/SkFontHost_FreeType.cpp',
268 '../src/ports/SkFontHost_gamma_none.cpp',
269 '../src/ports/SkFontHost_linux.cpp',
270 ],
271 'link_settings': {
272 'libraries': [
273 '-lfreetype',
senorblanco@chromium.org7eb492e2011-03-25 17:41:34 +0000274 '-lpthread',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000275 ],
bsalomon@google.com91826102011-03-21 19:51:57 +0000276 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000277 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000278 [ 'skia_os == "mac"', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000279 'include_dirs': [
280 '../include/utils/mac',
281 ],
282 'sources': [
283 '../include/core/SkMMapStream.h',
284 '../include/utils/mac/SkCGUtils.h',
285
286 '../src/core/SkMMapStream.cpp',
287 '../src/ports/SkFontHost_mac_coretext.cpp',
288
289 '../src/ports/SkThread_pthread.cpp',
290 '../src/ports/SkTime_Unix.cpp',
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000291 ],
epoger@google.com0a030cd2011-06-02 19:52:14 +0000292 'link_settings': {
293 'libraries': [
294 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
yangsu@google.comccb74ea2011-06-21 13:09:32 +0000295 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
epoger@google.com0a030cd2011-06-02 19:52:14 +0000296 ],
297 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000298 }],
epoger@google.comea5dfa82011-07-01 21:01:32 +0000299 [ 'skia_os == "ios"', {
300 'include_dirs': [
301 '../include/utils/ios',
302 ],
303 'sources': [
304 '../include/core/SkMMapStream.h',
305 '../include/utils/mac/SkCGUtils.h',
306
307 '../src/core/SkMMapStream.cpp',
308 '../src/ports/SkFontHost_mac_coretext.cpp',
309
310 '../src/ports/SkThread_pthread.cpp',
311 '../src/ports/SkTime_Unix.cpp',
312 ],
313 'link_settings': {
314 'libraries': [
315 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework',
316 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreGraphics.framework',
317 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreText.framework',
318 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework',
319 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/Foundation.framework',
320 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/QuartzCore.framework',
321 '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/OpenGLES.framework',
322 ],
323 },
324 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000325 [ 'skia_os == "win"', {
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000326 'include_dirs': [
327 'config/win',
328 ],
329 'sources': [
330 '../src/ports/SkFontHost_win.cpp',
331 '../src/ports/SkThread_win.cpp',
332 ],
bsalomon@google.com2b357992011-05-02 20:46:48 +0000333 'sources!': [
334 '../src/ports/SkDebug_stdio.cpp',
335 ],
senorblanco@chromium.orgc1587e02011-05-04 18:59:38 +0000336 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000337 [ 'skia_os != "win"', {
bsalomon@google.com2b357992011-05-02 20:46:48 +0000338 'sources!': [
339 '../src/ports/SkDebug_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 }],
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000343 ],
344 'direct_dependent_settings': {
345 'include_dirs': [
346 'config',
347 '../include/config',
348 '../include/core',
349 'ext',
350 ],
351 },
352 'dependencies': [
epoger@google.comae85aea2011-05-31 13:50:51 +0000353 'opts.gyp:opts'
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000354 ],
355 },
bsalomon@google.coma9681db2011-03-21 13:34:23 +0000356 ],
357}
358
359# Local Variables:
360# tab-width:2
361# indent-tabs-mode:nil
362# End:
363# vim: set expandtab tabstop=2 shiftwidth=2: