blob: b30e5cfd2e9178adce541b5ffab0cd2b6db6ca52 [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': [
bungeman@google.com5a64e582012-03-29 14:51:56 +000090 '../include/config',
91 '../include/core',
epoger@google.comae85aea2011-05-31 13:50:51 +000092 '../src/core',
93 '../include/gpu',
bsalomon@google.com9c1f1ac2012-05-07 17:09:37 +000094 '../src/gpu',
epoger@google.comae85aea2011-05-31 13:50:51 +000095 ],
robertphillips@google.com021bce92012-04-02 20:42:26 +000096 'dependencies': [
97 'libtess.gyp:libtess',
98 'angle.gyp:*',
99 ],
100 'export_dependent_settings': [
101 'angle.gyp:*',
102 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000103 'sources': [
104 '../include/gpu/SkGpuCanvas.h',
105 '../include/gpu/SkGpuDevice.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000106 '../include/gpu/SkGr.h',
107 '../include/gpu/SkGrTexturePixelRef.h',
108
tomhudson@google.com6bf38b52012-02-14 15:11:59 +0000109 '../include/gpu/gl/SkGLContext.h',
110 '../include/gpu/gl/SkMesaGLContext.h',
robertphillips@google.com021bce92012-04-02 20:42:26 +0000111 '../include/gpu/gl/SkANGLEGLContext.h',
tomhudson@google.com6bf38b52012-02-14 15:11:59 +0000112 '../include/gpu/gl/SkNativeGLContext.h',
113 '../include/gpu/gl/SkNullGLContext.h',
robertphillips@google.com0da37192012-03-19 14:42:13 +0000114 '../include/gpu/gl/SkDebugGLContext.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000115
epoger@google.comae85aea2011-05-31 13:50:51 +0000116 '../src/gpu/SkGpuCanvas.cpp',
117 '../src/gpu/SkGpuDevice.cpp',
118 '../src/gpu/SkGr.cpp',
119 '../src/gpu/SkGrFontScaler.cpp',
120 '../src/gpu/SkGrTexturePixelRef.cpp',
tomhudson@google.com40725562012-02-10 21:35:06 +0000121
122 '../src/gpu/gl/SkGLContext.cpp',
123 '../src/gpu/gl/SkNullGLContext.cpp',
robertphillips@google.comd91f3702012-03-28 18:22:01 +0000124
125 '../src/gpu/gl/debug/SkDebugGLContext.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000126
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000127 '../src/gpu/gl/mac/SkNativeGLContext_mac.cpp',
128
129 '../src/gpu/gl/win/SkNativeGLContext_win.cpp',
130
131 '../src/gpu/gl/unix/SkNativeGLContext_unix.cpp',
132
133 '../src/gpu/gl/mesa/SkMesaGLContext.cpp',
robertphillips@google.com021bce92012-04-02 20:42:26 +0000134 '../src/gpu/gl/angle/SkANGLEGLContext.cpp',
135 '../src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp',
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000136
djsollen@google.com58629292011-11-03 13:08:29 +0000137 '../src/gpu/android/SkNativeGLContext_android.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000138 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000139 'conditions': [
140 [ 'not skia_mesa', {
141 'sources!': [
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000142 '../src/gpu/gl/mesa/SkMesaGLContext.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000143 ],
144 }],
145 [ 'skia_mesa and skia_os == "mac"', {
146 'include_dirs': [
147 '$(SDKROOT)/usr/X11/include/',
148 ],
149 }],
robertphillips@google.com021bce92012-04-02 20:42:26 +0000150 [ 'not skia_angle', {
151 'sources!': [
152 '../include/gpu/gl/SkANGLEGLContext.h',
153 '../src/gpu/gl/angle/SkANGLEGLContext.cpp',
154 '../src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp',
155 ],
156 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000157 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000158 },
159 {
160 'target_name': 'gr',
161 'type': 'static_library',
162 'include_dirs': [
epoger@google.comae85aea2011-05-31 13:50:51 +0000163 '../include/core',
164 '../include/config',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000165 '../include/gpu',
bsalomon@google.com150d2842012-01-12 20:19:56 +0000166 '../src/core', # SkRasterClip.h
tomhudson@google.comd8f856c2012-05-10 12:13:36 +0000167 '../src/gpu'
epoger@google.comae85aea2011-05-31 13:50:51 +0000168 ],
169 'dependencies': [
170 'libtess.gyp:libtess',
robertphillips@google.com021bce92012-04-02 20:42:26 +0000171 'angle.gyp:*',
172 ],
173 'export_dependent_settings': [
174 'angle.gyp:*',
epoger@google.comae85aea2011-05-31 13:50:51 +0000175 ],
176 'sources': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000177 '../include/gpu/GrClip.h',
178 '../include/gpu/GrClipIterator.h',
179 '../include/gpu/GrColor.h',
180 '../include/gpu/GrConfig.h',
181 '../include/gpu/GrContext.h',
bsalomon@google.com7361f542012-04-19 19:15:35 +0000182 '../include/gpu/GrContextFactory.h',
tomhudson@google.com07eecdc2012-04-20 18:35:38 +0000183 '../include/gpu/GrCustomStage.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000184 '../include/gpu/GrFontScaler.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000185 '../include/gpu/GrGlyph.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000186 '../include/gpu/GrInstanceCounter.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000187 '../include/gpu/GrKey.h',
188 '../include/gpu/GrMatrix.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000189 '../include/gpu/GrNoncopyable.h',
190 '../include/gpu/GrPaint.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000191 '../include/gpu/GrPoint.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000192 '../include/gpu/GrRect.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000193 '../include/gpu/GrRefCnt.h',
194 '../include/gpu/GrRenderTarget.h',
195 '../include/gpu/GrResource.h',
196 '../include/gpu/GrSamplerState.h',
197 '../include/gpu/GrScalar.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000198 '../include/gpu/GrTextContext.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000199 '../include/gpu/GrTexture.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000200 '../include/gpu/GrTypes.h',
201 '../include/gpu/GrUserConfig.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000202
tomhudson@google.com6bf38b52012-02-14 15:11:59 +0000203 '../include/gpu/gl/GrGLConfig.h',
204 '../include/gpu/gl/GrGLConfig_chrome.h',
bsalomon@google.com637d5e92012-05-07 21:33:56 +0000205 '../include/gpu/gl/GrGLFunctions.h',
tomhudson@google.com6bf38b52012-02-14 15:11:59 +0000206 '../include/gpu/gl/GrGLInterface.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000207
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000208 '../src/gpu/GrAAHairLinePathRenderer.cpp',
209 '../src/gpu/GrAAHairLinePathRenderer.h',
bsalomon@google.com69cc6ad2012-01-17 14:25:10 +0000210 '../src/gpu/GrAAConvexPathRenderer.cpp',
211 '../src/gpu/GrAAConvexPathRenderer.h',
212 '../src/gpu/GrAddPathRenderers_default.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000213 '../src/gpu/GrAllocator.h',
214 '../src/gpu/GrAllocPool.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000215 '../src/gpu/GrAllocPool.cpp',
216 '../src/gpu/GrAtlas.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000217 '../src/gpu/GrAtlas.h',
bsalomon@google.comf4a9c822012-03-16 14:02:46 +0000218 '../src/gpu/GrBatchedTextContext.cpp',
219 '../src/gpu/GrBatchedTextContext.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000220 '../src/gpu/GrBinHashKey.h',
221 '../src/gpu/GrBufferAllocPool.cpp',
222 '../src/gpu/GrBufferAllocPool.h',
223 '../src/gpu/GrClip.cpp',
224 '../src/gpu/GrContext.cpp',
tomhudson@google.com168e6342012-04-18 17:49:20 +0000225 '../src/gpu/GrCustomStage.cpp',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000226 '../src/gpu/GrDefaultPathRenderer.cpp',
227 '../src/gpu/GrDefaultPathRenderer.h',
bsalomon@google.comf4a9c822012-03-16 14:02:46 +0000228 '../src/gpu/GrDefaultTextContext.cpp',
229 '../src/gpu/GrDefaultTextContext.h',
tomhudson@google.com93813632011-10-27 20:21:16 +0000230 '../src/gpu/GrDrawState.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000231 '../src/gpu/GrDrawTarget.cpp',
232 '../src/gpu/GrDrawTarget.h',
233 '../src/gpu/GrGeometryBuffer.h',
robertphillips@google.com1e945b72012-04-16 18:03:03 +0000234 '../src/gpu/GrClipMaskManager.h',
235 '../src/gpu/GrClipMaskManager.cpp',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000236 '../src/gpu/GrGpu.cpp',
237 '../src/gpu/GrGpu.h',
238 '../src/gpu/GrGpuFactory.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000239 '../src/gpu/GrGpuVertex.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000240 '../src/gpu/GrIndexBuffer.h',
241 '../src/gpu/GrInOrderDrawBuffer.cpp',
242 '../src/gpu/GrInOrderDrawBuffer.h',
243 '../src/gpu/GrMatrix.cpp',
244 '../src/gpu/GrMemory.cpp',
245 '../src/gpu/GrPathRendererChain.cpp',
246 '../src/gpu/GrPathRendererChain.h',
247 '../src/gpu/GrPathRenderer.cpp',
248 '../src/gpu/GrPathRenderer.h',
249 '../src/gpu/GrPathUtils.cpp',
250 '../src/gpu/GrPathUtils.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000251 '../src/gpu/GrPlotMgr.h',
tomhudson@google.comd8f856c2012-05-10 12:13:36 +0000252 '../src/gpu/GrProgramStageFactory.cpp',
253 '../src/gpu/GrProgramStageFactory.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000254 '../src/gpu/GrRandom.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000255 '../src/gpu/GrRectanizer.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000256 '../src/gpu/GrRectanizer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000257 '../src/gpu/GrRedBlackTree.h',
258 '../src/gpu/GrRenderTarget.cpp',
259 '../src/gpu/GrResource.cpp',
260 '../src/gpu/GrResourceCache.cpp',
261 '../src/gpu/GrResourceCache.h',
262 '../src/gpu/GrStencil.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000263 '../src/gpu/GrStencil.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000264 '../src/gpu/GrStencilBuffer.cpp',
265 '../src/gpu/GrStencilBuffer.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000266 '../src/gpu/GrStringBuilder.h',
267 '../src/gpu/GrTBSearch.h',
268 '../src/gpu/GrTDArray.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000269 '../src/gpu/GrTesselatedPathRenderer.cpp',
270 '../src/gpu/GrTesselatedPathRenderer.h',
robertphillips@google.com7c2578d2012-05-01 12:19:34 +0000271 '../src/gpu/GrSoftwarePathRenderer.cpp',
272 '../src/gpu/GrSoftwarePathRenderer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000273 '../src/gpu/GrTextStrike.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000274 '../src/gpu/GrTextStrike.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000275 '../src/gpu/GrTextStrike_impl.h',
276 '../src/gpu/GrTexture.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000277 '../src/gpu/GrTHashCache.h',
278 '../src/gpu/GrTLList.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000279 '../src/gpu/GrVertexBuffer.h',
280 '../src/gpu/gr_unittests.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000281
tomhudson@google.comd8f856c2012-05-10 12:13:36 +0000282 '../src/gpu/effects/GrConvolutionEffect.cpp',
283 '../src/gpu/effects/GrConvolutionEffect.h',
284
bsalomon@google.comf7fa8062012-02-14 14:09:57 +0000285 '../src/gpu/gl/GrGLCaps.cpp',
286 '../src/gpu/gl/GrGLCaps.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000287 '../src/gpu/gl/GrGLContextInfo.cpp',
288 '../src/gpu/gl/GrGLContextInfo.h',
289 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
290 '../src/gpu/gl/GrGLCreateNullInterface.cpp',
291 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
292 '../src/gpu/gl/GrGLDefaultInterface_native.cpp',
bsalomon@google.com91bcc942012-05-07 17:28:41 +0000293 '../src/gpu/gl/GrGLDefines.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000294 '../src/gpu/gl/GrGLIndexBuffer.cpp',
295 '../src/gpu/gl/GrGLIndexBuffer.h',
296 '../src/gpu/gl/GrGLInterface.cpp',
297 '../src/gpu/gl/GrGLIRect.h',
298 '../src/gpu/gl/GrGLProgram.cpp',
299 '../src/gpu/gl/GrGLProgram.h',
tomhudson@google.com168e6342012-04-18 17:49:20 +0000300 '../src/gpu/gl/GrGLProgramStage.cpp',
301 '../src/gpu/gl/GrGLProgramStage.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000302 '../src/gpu/gl/GrGLRenderTarget.cpp',
303 '../src/gpu/gl/GrGLRenderTarget.h',
304 '../src/gpu/gl/GrGLShaderVar.h',
305 '../src/gpu/gl/GrGLSL.cpp',
306 '../src/gpu/gl/GrGLSL.h',
307 '../src/gpu/gl/GrGLStencilBuffer.cpp',
308 '../src/gpu/gl/GrGLStencilBuffer.h',
309 '../src/gpu/gl/GrGLTexture.cpp',
310 '../src/gpu/gl/GrGLTexture.h',
311 '../src/gpu/gl/GrGLUtil.cpp',
bsalomon@google.com9c1f1ac2012-05-07 17:09:37 +0000312 '../src/gpu/gl/GrGLUtil.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000313 '../src/gpu/gl/GrGLVertexBuffer.cpp',
314 '../src/gpu/gl/GrGLVertexBuffer.h',
315 '../src/gpu/gl/GrGpuGL.cpp',
316 '../src/gpu/gl/GrGpuGL.h',
317 '../src/gpu/gl/GrGpuGLShaders.cpp',
318 '../src/gpu/gl/GrGpuGLShaders.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000319
robertphillips@google.comd91f3702012-03-28 18:22:01 +0000320 '../src/gpu/gl/debug/GrGLCreateDebugInterface.cpp',
robertphillips@google.comdd743fe2012-04-05 14:40:53 +0000321 '../src/gpu/gl/debug/GrFakeRefObj.h',
robertphillips@google.comdd743fe2012-04-05 14:40:53 +0000322 '../src/gpu/gl/debug/GrBufferObj.h',
323 '../src/gpu/gl/debug/GrBufferObj.cpp',
324 '../src/gpu/gl/debug/GrFBBindableObj.h',
325 '../src/gpu/gl/debug/GrFBBindableObj.cpp',
326 '../src/gpu/gl/debug/GrRenderBufferObj.h',
327 '../src/gpu/gl/debug/GrRenderBufferObj.cpp',
328 '../src/gpu/gl/debug/GrTextureObj.h',
329 '../src/gpu/gl/debug/GrTextureObj.cpp',
330 '../src/gpu/gl/debug/GrTextureUnitObj.h',
331 '../src/gpu/gl/debug/GrTextureUnitObj.cpp',
332 '../src/gpu/gl/debug/GrFrameBufferObj.h',
333 '../src/gpu/gl/debug/GrFrameBufferObj.cpp',
334 '../src/gpu/gl/debug/GrShaderObj.h',
335 '../src/gpu/gl/debug/GrShaderObj.cpp',
336 '../src/gpu/gl/debug/GrProgramObj.h',
337 '../src/gpu/gl/debug/GrProgramObj.cpp',
338 '../src/gpu/gl/debug/GrDebugGL.h',
339 '../src/gpu/gl/debug/GrDebugGL.cpp',
robertphillips@google.comd91f3702012-03-28 18:22:01 +0000340
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000341 '../src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000342
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000343 '../src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000344
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000345 '../src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp',
346
347 '../src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp',
robertphillips@google.com021bce92012-04-02 20:42:26 +0000348 '../src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000349
djsollen@google.com58629292011-11-03 13:08:29 +0000350 '../src/gpu/android/GrGLCreateNativeInterface_android.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000351 ],
352 'defines': [
353 'GR_IMPLEMENTATION=1',
354 ],
355 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000356 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000357 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000358 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
359 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000360 ],
361 'link_settings': {
362 'libraries': [
363 '-lGL',
364 '-lX11',
365 ],
366 },
367 }],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000368 [ 'skia_mesa and skia_os == "linux"', {
369 'link_settings': {
370 'libraries': [
371 '-lOSMesa',
372 ],
373 },
374 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000375 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000376 'link_settings': {
377 'libraries': [
378 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
379 ],
380 },
381 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000382 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
383 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000384 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000385 }],
386 [ 'skia_mesa and skia_os == "mac"', {
387 'link_settings': {
388 'libraries': [
389 '$(SDKROOT)/usr/X11/lib/libOSMesa.dylib',
390 ],
391 },
392 'include_dirs': [
393 '$(SDKROOT)/usr/X11/include/',
394 ],
395 }],
396 [ 'not skia_mesa', {
397 'sources!': [
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000398 '../src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000399 ],
400 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000401 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000402 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000403 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
404 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000405 ],
406 }],
robertphillips@google.com021bce92012-04-02 20:42:26 +0000407 [ 'not skia_angle', {
408 'sources!': [
409 '../include/gpu/gl/SkANGLEGLContext.h',
410
411 '../src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp',
412 '../src/gpu/gl/angle/SkANGLEGLContext.cpp',
413 ],
414 }],
djsollen@google.com58629292011-11-03 13:08:29 +0000415 [ 'skia_os == "android"', {
416 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000417 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
418 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
djsollen@google.com58629292011-11-03 13:08:29 +0000419 ],
420 'link_settings': {
421 'libraries': [
422 '-lGLESv2',
423 '-lEGL',
djsollen@google.com58629292011-11-03 13:08:29 +0000424 ],
425 },
426 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000427 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000428 },
429 ],
430}
431
432# Local Variables:
433# tab-width:2
434# indent-tabs-mode:nil
435# End:
436# vim: set expandtab tabstop=2 shiftwidth=2: