blob: a4d7c18db51df49a3a6a4b8e85dbbdcba410c3c6 [file] [log] [blame]
epoger@google.comae85aea2011-05-31 13:50:51 +00001{
bsalomon@google.come2953132011-10-13 13:33:08 +00002 'target_defaults': {
3 'conditions': [
4 ['skia_os != "win"', {
5 'sources/': [ ['exclude', '_win.(h|cpp)$'],
6 ],
7 }],
8 ['skia_os != "mac"', {
9 'sources/': [ ['exclude', '_mac.(h|cpp)$'],
10 ],
11 }],
12 ['skia_os != "linux"', {
13 'sources/': [ ['exclude', '_unix.(h|cpp)$'],
14 ],
15 }],
16 ['skia_os != "ios"', {
17 'sources/': [ ['exclude', '_iOS.(h|cpp)$'],
18 ],
19 }],
20 ['skia_os != "android"', {
21 'sources/': [ ['exclude', '_android.(h|cpp)$'],
22 ],
23 }],
24 [ 'skia_os == "android"', {
25 'defines': [
26 'GR_ANDROID_BUILD=1',
27 ],
28 }],
29 [ 'skia_os == "mac"', {
30 'defines': [
31 'GR_MAC_BUILD=1',
32 ],
33 }],
34 [ 'skia_os == "linux"', {
35 'defines': [
36 'GR_LINUX_BUILD=1',
37 ],
38 }],
39 [ 'skia_os == "ios"', {
40 'defines': [
41 'GR_IOS_BUILD=1',
42 ],
43 }],
44 [ 'skia_os == "win"', {
45 'defines': [
46 'GR_WIN32_BUILD=1',
47 'GR_GL_FUNCTION_TYPE=__stdcall',
48 ],
49 }],
50 ],
51 'direct_dependent_settings': {
52 'conditions': [
53 [ 'skia_os == "android"', {
54 'defines': [
55 'GR_ANDROID_BUILD=1',
56 ],
57 }],
58 [ 'skia_os == "mac"', {
59 'defines': [
60 'GR_MAC_BUILD=1',
61 ],
62 }],
63 [ 'skia_os == "linux"', {
64 'defines': [
65 'GR_LINUX_BUILD=1',
66 ],
67 }],
68 [ 'skia_os == "ios"', {
69 'defines': [
70 'GR_IOS_BUILD=1',
71 ],
72 }],
73 [ 'skia_os == "win"', {
74 'defines': [
75 'GR_WIN32_BUILD=1',
76 'GR_GL_FUNCTION_TYPE=__stdcall',
77 ],
78 }],
79 ],
80 'include_dirs': [
81 '../include/gpu',
82 ],
83 },
84 },
epoger@google.comae85aea2011-05-31 13:50:51 +000085 'targets': [
86 {
87 'target_name': 'skgr',
88 'type': 'static_library',
89 'include_dirs': [
90 '../include/config',
91 '../include/core',
92 '../src/core',
93 '../include/gpu',
epoger@google.comae85aea2011-05-31 13:50:51 +000094 ],
95 'sources': [
96 '../include/gpu/SkGpuCanvas.h',
97 '../include/gpu/SkGpuDevice.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000098 '../include/gpu/SkGr.h',
99 '../include/gpu/SkGrTexturePixelRef.h',
100
tomhudson@google.com6bf38b52012-02-14 15:11:59 +0000101 '../include/gpu/gl/SkGLContext.h',
102 '../include/gpu/gl/SkMesaGLContext.h',
103 '../include/gpu/gl/SkNativeGLContext.h',
104 '../include/gpu/gl/SkNullGLContext.h',
robertphillips@google.com0da37192012-03-19 14:42:13 +0000105 '../include/gpu/gl/SkDebugGLContext.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000106
epoger@google.comae85aea2011-05-31 13:50:51 +0000107 '../src/gpu/GrPrintf_skia.cpp',
108 '../src/gpu/SkGpuCanvas.cpp',
109 '../src/gpu/SkGpuDevice.cpp',
110 '../src/gpu/SkGr.cpp',
111 '../src/gpu/SkGrFontScaler.cpp',
112 '../src/gpu/SkGrTexturePixelRef.cpp',
tomhudson@google.com40725562012-02-10 21:35:06 +0000113
114 '../src/gpu/gl/SkGLContext.cpp',
115 '../src/gpu/gl/SkNullGLContext.cpp',
robertphillips@google.com0da37192012-03-19 14:42:13 +0000116 '../src/gpu/gl/SkDebugGLContext.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000117
djsollen@google.com58629292011-11-03 13:08:29 +0000118 '../src/gpu/android/SkNativeGLContext_android.cpp',
119
bsalomon@google.com373a6632011-10-19 20:43:20 +0000120 '../src/gpu/mac/SkNativeGLContext_mac.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000121
bsalomon@google.com373a6632011-10-19 20:43:20 +0000122 '../src/gpu/win/SkNativeGLContext_win.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000123
bsalomon@google.com373a6632011-10-19 20:43:20 +0000124 '../src/gpu/unix/SkNativeGLContext_unix.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000125
bsalomon@google.com373a6632011-10-19 20:43:20 +0000126 '../src/gpu/mesa/SkMesaGLContext.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000127 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000128 'conditions': [
129 [ 'not skia_mesa', {
130 'sources!': [
131 '../src/gpu/mesa/SkMesaGLContext.cpp',
132 ],
133 }],
134 [ 'skia_mesa and skia_os == "mac"', {
135 'include_dirs': [
136 '$(SDKROOT)/usr/X11/include/',
137 ],
138 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000139 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000140 },
141 {
142 'target_name': 'gr',
143 'type': 'static_library',
144 'include_dirs': [
epoger@google.comae85aea2011-05-31 13:50:51 +0000145 '../include/core',
146 '../include/config',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000147 '../include/gpu',
bsalomon@google.com150d2842012-01-12 20:19:56 +0000148 '../src/core', # SkRasterClip.h
epoger@google.comae85aea2011-05-31 13:50:51 +0000149 ],
150 'dependencies': [
151 'libtess.gyp:libtess',
152 ],
153 'sources': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000154 '../include/gpu/GrClip.h',
155 '../include/gpu/GrClipIterator.h',
156 '../include/gpu/GrColor.h',
157 '../include/gpu/GrConfig.h',
158 '../include/gpu/GrContext.h',
159 '../include/gpu/GrFontScaler.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000160 '../include/gpu/GrGlyph.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000161 '../include/gpu/GrInstanceCounter.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000162 '../include/gpu/GrKey.h',
163 '../include/gpu/GrMatrix.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000164 '../include/gpu/GrNoncopyable.h',
165 '../include/gpu/GrPaint.h',
166 '../include/gpu/GrPath.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000167 '../include/gpu/GrPoint.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000168 '../include/gpu/GrRect.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000169 '../include/gpu/GrRefCnt.h',
170 '../include/gpu/GrRenderTarget.h',
171 '../include/gpu/GrResource.h',
172 '../include/gpu/GrSamplerState.h',
173 '../include/gpu/GrScalar.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000174 '../include/gpu/GrTextContext.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000175 '../include/gpu/GrTexture.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000176 '../include/gpu/GrTypes.h',
177 '../include/gpu/GrUserConfig.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000178
tomhudson@google.com6bf38b52012-02-14 15:11:59 +0000179 '../include/gpu/gl/GrGLConfig.h',
180 '../include/gpu/gl/GrGLConfig_chrome.h',
181 '../include/gpu/gl/GrGLDefines.h',
182 '../include/gpu/gl/GrGLInterface.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000183
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000184 '../src/gpu/GrAAHairLinePathRenderer.cpp',
185 '../src/gpu/GrAAHairLinePathRenderer.h',
bsalomon@google.com69cc6ad2012-01-17 14:25:10 +0000186 '../src/gpu/GrAAConvexPathRenderer.cpp',
187 '../src/gpu/GrAAConvexPathRenderer.h',
188 '../src/gpu/GrAddPathRenderers_default.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000189 '../src/gpu/GrAllocator.h',
190 '../src/gpu/GrAllocPool.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000191 '../src/gpu/GrAllocPool.cpp',
192 '../src/gpu/GrAtlas.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000193 '../src/gpu/GrAtlas.h',
bsalomon@google.comf4a9c822012-03-16 14:02:46 +0000194 '../src/gpu/GrBatchedTextContext.cpp',
195 '../src/gpu/GrBatchedTextContext.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000196 '../src/gpu/GrBinHashKey.h',
197 '../src/gpu/GrBufferAllocPool.cpp',
198 '../src/gpu/GrBufferAllocPool.h',
199 '../src/gpu/GrClip.cpp',
200 '../src/gpu/GrContext.cpp',
201 '../src/gpu/GrDefaultPathRenderer.cpp',
202 '../src/gpu/GrDefaultPathRenderer.h',
bsalomon@google.comf4a9c822012-03-16 14:02:46 +0000203 '../src/gpu/GrDefaultTextContext.cpp',
204 '../src/gpu/GrDefaultTextContext.h',
tomhudson@google.com93813632011-10-27 20:21:16 +0000205 '../src/gpu/GrDrawState.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000206 '../src/gpu/GrDrawTarget.cpp',
207 '../src/gpu/GrDrawTarget.h',
208 '../src/gpu/GrGeometryBuffer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000209 '../src/gpu/GrGpu.cpp',
210 '../src/gpu/GrGpu.h',
211 '../src/gpu/GrGpuFactory.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000212 '../src/gpu/GrGpuVertex.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000213 '../src/gpu/GrIndexBuffer.h',
214 '../src/gpu/GrInOrderDrawBuffer.cpp',
215 '../src/gpu/GrInOrderDrawBuffer.h',
216 '../src/gpu/GrMatrix.cpp',
217 '../src/gpu/GrMemory.cpp',
218 '../src/gpu/GrPathRendererChain.cpp',
219 '../src/gpu/GrPathRendererChain.h',
220 '../src/gpu/GrPathRenderer.cpp',
221 '../src/gpu/GrPathRenderer.h',
222 '../src/gpu/GrPathUtils.cpp',
223 '../src/gpu/GrPathUtils.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000224 '../src/gpu/GrPlotMgr.h',
225 '../src/gpu/GrRandom.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000226 '../src/gpu/GrRectanizer.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000227 '../src/gpu/GrRectanizer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000228 '../src/gpu/GrRedBlackTree.h',
229 '../src/gpu/GrRenderTarget.cpp',
230 '../src/gpu/GrResource.cpp',
231 '../src/gpu/GrResourceCache.cpp',
232 '../src/gpu/GrResourceCache.h',
233 '../src/gpu/GrStencil.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000234 '../src/gpu/GrStencil.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000235 '../src/gpu/GrStencilBuffer.cpp',
236 '../src/gpu/GrStencilBuffer.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000237 '../src/gpu/GrStringBuilder.h',
238 '../src/gpu/GrTBSearch.h',
239 '../src/gpu/GrTDArray.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000240 '../src/gpu/GrTesselatedPathRenderer.cpp',
241 '../src/gpu/GrTesselatedPathRenderer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000242 '../src/gpu/GrTextStrike.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000243 '../src/gpu/GrTextStrike.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000244 '../src/gpu/GrTextStrike_impl.h',
245 '../src/gpu/GrTexture.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000246 '../src/gpu/GrTHashCache.h',
247 '../src/gpu/GrTLList.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000248 '../src/gpu/GrVertexBuffer.h',
249 '../src/gpu/gr_unittests.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000250
bsalomon@google.comf7fa8062012-02-14 14:09:57 +0000251 '../src/gpu/gl/GrGLCaps.cpp',
252 '../src/gpu/gl/GrGLCaps.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000253 '../src/gpu/gl/GrGLContextInfo.cpp',
254 '../src/gpu/gl/GrGLContextInfo.h',
255 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
256 '../src/gpu/gl/GrGLCreateNullInterface.cpp',
robertphillips@google.com0da37192012-03-19 14:42:13 +0000257 '../src/gpu/gl/GrGLCreateDebugInterface.cpp',
tomhudson@google.com40725562012-02-10 21:35:06 +0000258 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
259 '../src/gpu/gl/GrGLDefaultInterface_native.cpp',
260 '../src/gpu/gl/GrGLIndexBuffer.cpp',
261 '../src/gpu/gl/GrGLIndexBuffer.h',
262 '../src/gpu/gl/GrGLInterface.cpp',
263 '../src/gpu/gl/GrGLIRect.h',
264 '../src/gpu/gl/GrGLProgram.cpp',
265 '../src/gpu/gl/GrGLProgram.h',
266 '../src/gpu/gl/GrGLRenderTarget.cpp',
267 '../src/gpu/gl/GrGLRenderTarget.h',
268 '../src/gpu/gl/GrGLShaderVar.h',
269 '../src/gpu/gl/GrGLSL.cpp',
270 '../src/gpu/gl/GrGLSL.h',
271 '../src/gpu/gl/GrGLStencilBuffer.cpp',
272 '../src/gpu/gl/GrGLStencilBuffer.h',
273 '../src/gpu/gl/GrGLTexture.cpp',
274 '../src/gpu/gl/GrGLTexture.h',
275 '../src/gpu/gl/GrGLUtil.cpp',
276 '../src/gpu/gl/GrGLVertexBuffer.cpp',
277 '../src/gpu/gl/GrGLVertexBuffer.h',
278 '../src/gpu/gl/GrGpuGL.cpp',
279 '../src/gpu/gl/GrGpuGL.h',
280 '../src/gpu/gl/GrGpuGLShaders.cpp',
281 '../src/gpu/gl/GrGpuGLShaders.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000282
bsalomon@google.com373a6632011-10-19 20:43:20 +0000283 '../src/gpu/mac/GrGLCreateNativeInterface_mac.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000284
bsalomon@google.com373a6632011-10-19 20:43:20 +0000285 '../src/gpu/win/GrGLCreateNativeInterface_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000286
bsalomon@google.com373a6632011-10-19 20:43:20 +0000287 '../src/gpu/unix/GrGLCreateNativeInterface_unix.cpp',
288
djsollen@google.com58629292011-11-03 13:08:29 +0000289 '../src/gpu/android/GrGLCreateNativeInterface_android.cpp',
290
bsalomon@google.com373a6632011-10-19 20:43:20 +0000291 '../src/gpu/mesa/GrGLCreateMesaInterface.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000292 ],
293 'defines': [
294 'GR_IMPLEMENTATION=1',
295 ],
296 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000297 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000298 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000299 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
300 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000301 ],
302 'link_settings': {
303 'libraries': [
304 '-lGL',
305 '-lX11',
306 ],
307 },
308 }],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000309 [ 'skia_mesa and skia_os == "linux"', {
310 'link_settings': {
311 'libraries': [
312 '-lOSMesa',
313 ],
314 },
315 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000316 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000317 'link_settings': {
318 'libraries': [
319 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
320 ],
321 },
322 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000323 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
324 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000325 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000326 }],
327 [ 'skia_mesa and skia_os == "mac"', {
328 'link_settings': {
329 'libraries': [
330 '$(SDKROOT)/usr/X11/lib/libOSMesa.dylib',
331 ],
332 },
333 'include_dirs': [
334 '$(SDKROOT)/usr/X11/include/',
335 ],
336 }],
337 [ 'not skia_mesa', {
338 'sources!': [
339 '../src/gpu/mesa/GrGLCreateMesaInterface.cpp',
340 ],
341 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000342 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000343 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000344 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
345 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000346 ],
347 }],
djsollen@google.com58629292011-11-03 13:08:29 +0000348 [ 'skia_os == "android"', {
349 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000350 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
351 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
djsollen@google.com58629292011-11-03 13:08:29 +0000352 ],
353 'link_settings': {
354 'libraries': [
355 '-lGLESv2',
356 '-lEGL',
djsollen@google.com58629292011-11-03 13:08:29 +0000357 ],
358 },
359 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000360 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000361 },
362 ],
363}
364
365# Local Variables:
366# tab-width:2
367# indent-tabs-mode:nil
368# End:
369# vim: set expandtab tabstop=2 shiftwidth=2: