blob: 5f375e839367cc38bd83b55b3cbd6dabed8f7594 [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': [
robertphillips@google.com021bce92012-04-02 20:42:26 +000097 'angle.gyp:*',
98 ],
99 'export_dependent_settings': [
100 'angle.gyp:*',
101 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000102 'sources': [
103 '../include/gpu/SkGpuCanvas.h',
104 '../include/gpu/SkGpuDevice.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000105 '../include/gpu/SkGr.h',
106 '../include/gpu/SkGrTexturePixelRef.h',
107
tomhudson@google.com6bf38b52012-02-14 15:11:59 +0000108 '../include/gpu/gl/SkGLContext.h',
109 '../include/gpu/gl/SkMesaGLContext.h',
robertphillips@google.com021bce92012-04-02 20:42:26 +0000110 '../include/gpu/gl/SkANGLEGLContext.h',
tomhudson@google.com6bf38b52012-02-14 15:11:59 +0000111 '../include/gpu/gl/SkNativeGLContext.h',
112 '../include/gpu/gl/SkNullGLContext.h',
robertphillips@google.com0da37192012-03-19 14:42:13 +0000113 '../include/gpu/gl/SkDebugGLContext.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000114
epoger@google.comae85aea2011-05-31 13:50:51 +0000115 '../src/gpu/SkGpuCanvas.cpp',
116 '../src/gpu/SkGpuDevice.cpp',
117 '../src/gpu/SkGr.cpp',
118 '../src/gpu/SkGrFontScaler.cpp',
119 '../src/gpu/SkGrTexturePixelRef.cpp',
tomhudson@google.com40725562012-02-10 21:35:06 +0000120
121 '../src/gpu/gl/SkGLContext.cpp',
122 '../src/gpu/gl/SkNullGLContext.cpp',
robertphillips@google.comd91f3702012-03-28 18:22:01 +0000123
124 '../src/gpu/gl/debug/SkDebugGLContext.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000125
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000126 '../src/gpu/gl/mac/SkNativeGLContext_mac.cpp',
127
128 '../src/gpu/gl/win/SkNativeGLContext_win.cpp',
129
130 '../src/gpu/gl/unix/SkNativeGLContext_unix.cpp',
131
132 '../src/gpu/gl/mesa/SkMesaGLContext.cpp',
robertphillips@google.com021bce92012-04-02 20:42:26 +0000133 '../src/gpu/gl/angle/SkANGLEGLContext.cpp',
134 '../src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp',
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000135
djsollen@google.com58629292011-11-03 13:08:29 +0000136 '../src/gpu/android/SkNativeGLContext_android.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000137 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000138 'conditions': [
139 [ 'not skia_mesa', {
140 'sources!': [
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000141 '../src/gpu/gl/mesa/SkMesaGLContext.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000142 ],
143 }],
144 [ 'skia_mesa and skia_os == "mac"', {
145 'include_dirs': [
146 '$(SDKROOT)/usr/X11/include/',
147 ],
148 }],
robertphillips@google.com021bce92012-04-02 20:42:26 +0000149 [ 'not skia_angle', {
150 'sources!': [
151 '../include/gpu/gl/SkANGLEGLContext.h',
152 '../src/gpu/gl/angle/SkANGLEGLContext.cpp',
153 '../src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp',
154 ],
155 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000156 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000157 },
158 {
159 'target_name': 'gr',
160 'type': 'static_library',
161 'include_dirs': [
epoger@google.comae85aea2011-05-31 13:50:51 +0000162 '../include/core',
163 '../include/config',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000164 '../include/gpu',
bsalomon@google.com150d2842012-01-12 20:19:56 +0000165 '../src/core', # SkRasterClip.h
tomhudson@google.comd8f856c2012-05-10 12:13:36 +0000166 '../src/gpu'
epoger@google.comae85aea2011-05-31 13:50:51 +0000167 ],
168 'dependencies': [
robertphillips@google.com021bce92012-04-02 20:42:26 +0000169 'angle.gyp:*',
170 ],
171 'export_dependent_settings': [
172 'angle.gyp:*',
epoger@google.comae85aea2011-05-31 13:50:51 +0000173 ],
174 'sources': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000175 '../include/gpu/GrClip.h',
176 '../include/gpu/GrClipIterator.h',
177 '../include/gpu/GrColor.h',
178 '../include/gpu/GrConfig.h',
179 '../include/gpu/GrContext.h',
bsalomon@google.com7361f542012-04-19 19:15:35 +0000180 '../include/gpu/GrContextFactory.h',
tomhudson@google.com07eecdc2012-04-20 18:35:38 +0000181 '../include/gpu/GrCustomStage.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000182 '../include/gpu/GrFontScaler.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000183 '../include/gpu/GrGlyph.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000184 '../include/gpu/GrInstanceCounter.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000185 '../include/gpu/GrKey.h',
186 '../include/gpu/GrMatrix.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000187 '../include/gpu/GrNoncopyable.h',
188 '../include/gpu/GrPaint.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000189 '../include/gpu/GrPoint.h',
bsalomon@google.comae4f96a2012-05-18 19:54:48 +0000190 '../include/gpu/GrProgramStageFactory.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000191 '../include/gpu/GrRect.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000192 '../include/gpu/GrRefCnt.h',
193 '../include/gpu/GrRenderTarget.h',
194 '../include/gpu/GrResource.h',
195 '../include/gpu/GrSamplerState.h',
196 '../include/gpu/GrScalar.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000197 '../include/gpu/GrTextContext.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000198 '../include/gpu/GrTexture.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000199 '../include/gpu/GrTypes.h',
200 '../include/gpu/GrUserConfig.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000201
tomhudson@google.com6bf38b52012-02-14 15:11:59 +0000202 '../include/gpu/gl/GrGLConfig.h',
203 '../include/gpu/gl/GrGLConfig_chrome.h',
bsalomon@google.com637d5e92012-05-07 21:33:56 +0000204 '../include/gpu/gl/GrGLFunctions.h',
tomhudson@google.com6bf38b52012-02-14 15:11:59 +0000205 '../include/gpu/gl/GrGLInterface.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000206
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000207 '../src/gpu/GrAAHairLinePathRenderer.cpp',
208 '../src/gpu/GrAAHairLinePathRenderer.h',
bsalomon@google.com69cc6ad2012-01-17 14:25:10 +0000209 '../src/gpu/GrAAConvexPathRenderer.cpp',
210 '../src/gpu/GrAAConvexPathRenderer.h',
211 '../src/gpu/GrAddPathRenderers_default.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000212 '../src/gpu/GrAllocator.h',
213 '../src/gpu/GrAllocPool.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000214 '../src/gpu/GrAllocPool.cpp',
215 '../src/gpu/GrAtlas.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000216 '../src/gpu/GrAtlas.h',
bsalomon@google.comf4a9c822012-03-16 14:02:46 +0000217 '../src/gpu/GrBatchedTextContext.cpp',
218 '../src/gpu/GrBatchedTextContext.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000219 '../src/gpu/GrBinHashKey.h',
220 '../src/gpu/GrBufferAllocPool.cpp',
221 '../src/gpu/GrBufferAllocPool.h',
222 '../src/gpu/GrClip.cpp',
223 '../src/gpu/GrContext.cpp',
tomhudson@google.com168e6342012-04-18 17:49:20 +0000224 '../src/gpu/GrCustomStage.cpp',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000225 '../src/gpu/GrDefaultPathRenderer.cpp',
226 '../src/gpu/GrDefaultPathRenderer.h',
bsalomon@google.comf4a9c822012-03-16 14:02:46 +0000227 '../src/gpu/GrDefaultTextContext.cpp',
228 '../src/gpu/GrDefaultTextContext.h',
tomhudson@google.com93813632011-10-27 20:21:16 +0000229 '../src/gpu/GrDrawState.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000230 '../src/gpu/GrDrawTarget.cpp',
231 '../src/gpu/GrDrawTarget.h',
232 '../src/gpu/GrGeometryBuffer.h',
robertphillips@google.com1e945b72012-04-16 18:03:03 +0000233 '../src/gpu/GrClipMaskManager.h',
234 '../src/gpu/GrClipMaskManager.cpp',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000235 '../src/gpu/GrGpu.cpp',
236 '../src/gpu/GrGpu.h',
237 '../src/gpu/GrGpuFactory.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000238 '../src/gpu/GrGpuVertex.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000239 '../src/gpu/GrIndexBuffer.h',
240 '../src/gpu/GrInOrderDrawBuffer.cpp',
241 '../src/gpu/GrInOrderDrawBuffer.h',
242 '../src/gpu/GrMatrix.cpp',
243 '../src/gpu/GrMemory.cpp',
bsalomon@google.com64aef2b2012-06-11 15:36:13 +0000244 '../src/gpu/GrPath.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000245 '../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',
252 '../src/gpu/GrRandom.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000253 '../src/gpu/GrRectanizer.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000254 '../src/gpu/GrRectanizer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000255 '../src/gpu/GrRedBlackTree.h',
256 '../src/gpu/GrRenderTarget.cpp',
257 '../src/gpu/GrResource.cpp',
258 '../src/gpu/GrResourceCache.cpp',
259 '../src/gpu/GrResourceCache.h',
260 '../src/gpu/GrStencil.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000261 '../src/gpu/GrStencil.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000262 '../src/gpu/GrStencilBuffer.cpp',
263 '../src/gpu/GrStencilBuffer.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000264 '../src/gpu/GrStringBuilder.h',
265 '../src/gpu/GrTBSearch.h',
266 '../src/gpu/GrTDArray.h',
robertphillips@google.com7c2578d2012-05-01 12:19:34 +0000267 '../src/gpu/GrSoftwarePathRenderer.cpp',
268 '../src/gpu/GrSoftwarePathRenderer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000269 '../src/gpu/GrTextStrike.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000270 '../src/gpu/GrTextStrike.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000271 '../src/gpu/GrTextStrike_impl.h',
272 '../src/gpu/GrTexture.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000273 '../src/gpu/GrTHashCache.h',
274 '../src/gpu/GrTLList.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000275 '../src/gpu/GrVertexBuffer.h',
276 '../src/gpu/gr_unittests.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000277
bsalomon@google.comb505a122012-05-31 18:40:36 +0000278 '../src/gpu/effects/Gr1DKernelEffect.h',
tomhudson@google.comd8f856c2012-05-10 12:13:36 +0000279 '../src/gpu/effects/GrConvolutionEffect.cpp',
280 '../src/gpu/effects/GrConvolutionEffect.h',
tomhudson@google.com7fab52d2012-05-31 19:40:13 +0000281 '../src/gpu/effects/GrGradientEffects.cpp',
282 '../src/gpu/effects/GrGradientEffects.h',
bsalomon@google.comb505a122012-05-31 18:40:36 +0000283 '../src/gpu/effects/GrMorphologyEffect.cpp',
284 '../src/gpu/effects/GrMorphologyEffect.h',
tomhudson@google.comd8f856c2012-05-10 12:13:36 +0000285
bsalomon@google.comf7fa8062012-02-14 14:09:57 +0000286 '../src/gpu/gl/GrGLCaps.cpp',
287 '../src/gpu/gl/GrGLCaps.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000288 '../src/gpu/gl/GrGLContextInfo.cpp',
289 '../src/gpu/gl/GrGLContextInfo.h',
290 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
291 '../src/gpu/gl/GrGLCreateNullInterface.cpp',
292 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
293 '../src/gpu/gl/GrGLDefaultInterface_native.cpp',
bsalomon@google.com91bcc942012-05-07 17:28:41 +0000294 '../src/gpu/gl/GrGLDefines.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000295 '../src/gpu/gl/GrGLIndexBuffer.cpp',
296 '../src/gpu/gl/GrGLIndexBuffer.h',
297 '../src/gpu/gl/GrGLInterface.cpp',
298 '../src/gpu/gl/GrGLIRect.h',
bsalomon@google.com64aef2b2012-06-11 15:36:13 +0000299 '../src/gpu/gl/GrGLPath.cpp',
300 '../src/gpu/gl/GrGLPath.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000301 '../src/gpu/gl/GrGLProgram.cpp',
302 '../src/gpu/gl/GrGLProgram.h',
tomhudson@google.com168e6342012-04-18 17:49:20 +0000303 '../src/gpu/gl/GrGLProgramStage.cpp',
304 '../src/gpu/gl/GrGLProgramStage.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000305 '../src/gpu/gl/GrGLRenderTarget.cpp',
306 '../src/gpu/gl/GrGLRenderTarget.h',
tomhudson@google.comf9ad8862012-05-11 20:38:48 +0000307 '../src/gpu/gl/GrGLShaderBuilder.cpp',
308 '../src/gpu/gl/GrGLShaderBuilder.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000309 '../src/gpu/gl/GrGLShaderVar.h',
310 '../src/gpu/gl/GrGLSL.cpp',
311 '../src/gpu/gl/GrGLSL.h',
312 '../src/gpu/gl/GrGLStencilBuffer.cpp',
313 '../src/gpu/gl/GrGLStencilBuffer.h',
314 '../src/gpu/gl/GrGLTexture.cpp',
315 '../src/gpu/gl/GrGLTexture.h',
316 '../src/gpu/gl/GrGLUtil.cpp',
bsalomon@google.com9c1f1ac2012-05-07 17:09:37 +0000317 '../src/gpu/gl/GrGLUtil.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000318 '../src/gpu/gl/GrGLVertexBuffer.cpp',
319 '../src/gpu/gl/GrGLVertexBuffer.h',
320 '../src/gpu/gl/GrGpuGL.cpp',
321 '../src/gpu/gl/GrGpuGL.h',
bsalomon@google.com5739d2c2012-05-31 15:07:19 +0000322 '../src/gpu/gl/GrGpuGL_program.cpp',
bsalomon@google.com7e5c6242012-06-01 19:28:26 +0000323 '../src/gpu/gl/GrGpuGL_unittest.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000324
robertphillips@google.comd91f3702012-03-28 18:22:01 +0000325 '../src/gpu/gl/debug/GrGLCreateDebugInterface.cpp',
robertphillips@google.comdd743fe2012-04-05 14:40:53 +0000326 '../src/gpu/gl/debug/GrFakeRefObj.h',
robertphillips@google.comdd743fe2012-04-05 14:40:53 +0000327 '../src/gpu/gl/debug/GrBufferObj.h',
328 '../src/gpu/gl/debug/GrBufferObj.cpp',
329 '../src/gpu/gl/debug/GrFBBindableObj.h',
robertphillips@google.comdd743fe2012-04-05 14:40:53 +0000330 '../src/gpu/gl/debug/GrRenderBufferObj.h',
robertphillips@google.comdd743fe2012-04-05 14:40:53 +0000331 '../src/gpu/gl/debug/GrTextureObj.h',
332 '../src/gpu/gl/debug/GrTextureObj.cpp',
333 '../src/gpu/gl/debug/GrTextureUnitObj.h',
334 '../src/gpu/gl/debug/GrTextureUnitObj.cpp',
335 '../src/gpu/gl/debug/GrFrameBufferObj.h',
336 '../src/gpu/gl/debug/GrFrameBufferObj.cpp',
337 '../src/gpu/gl/debug/GrShaderObj.h',
338 '../src/gpu/gl/debug/GrShaderObj.cpp',
339 '../src/gpu/gl/debug/GrProgramObj.h',
340 '../src/gpu/gl/debug/GrProgramObj.cpp',
341 '../src/gpu/gl/debug/GrDebugGL.h',
342 '../src/gpu/gl/debug/GrDebugGL.cpp',
robertphillips@google.comd91f3702012-03-28 18:22:01 +0000343
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000344 '../src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000345
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000346 '../src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000347
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000348 '../src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp',
349
350 '../src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp',
robertphillips@google.com021bce92012-04-02 20:42:26 +0000351 '../src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000352
djsollen@google.com58629292011-11-03 13:08:29 +0000353 '../src/gpu/android/GrGLCreateNativeInterface_android.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000354 ],
355 'defines': [
356 'GR_IMPLEMENTATION=1',
357 ],
358 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000359 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000360 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000361 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
362 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000363 ],
364 'link_settings': {
365 'libraries': [
366 '-lGL',
367 '-lX11',
368 ],
369 },
370 }],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000371 [ 'skia_mesa and skia_os == "linux"', {
372 'link_settings': {
373 'libraries': [
374 '-lOSMesa',
375 ],
376 },
377 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000378 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000379 'link_settings': {
380 'libraries': [
381 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
382 ],
383 },
384 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000385 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
386 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000387 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000388 }],
389 [ 'skia_mesa and skia_os == "mac"', {
390 'link_settings': {
391 'libraries': [
392 '$(SDKROOT)/usr/X11/lib/libOSMesa.dylib',
393 ],
394 },
395 'include_dirs': [
396 '$(SDKROOT)/usr/X11/include/',
397 ],
398 }],
399 [ 'not skia_mesa', {
400 'sources!': [
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000401 '../src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000402 ],
403 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000404 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000405 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000406 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
407 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000408 ],
409 }],
robertphillips@google.com021bce92012-04-02 20:42:26 +0000410 [ 'not skia_angle', {
411 'sources!': [
412 '../include/gpu/gl/SkANGLEGLContext.h',
413
414 '../src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp',
415 '../src/gpu/gl/angle/SkANGLEGLContext.cpp',
416 ],
417 }],
djsollen@google.com58629292011-11-03 13:08:29 +0000418 [ 'skia_os == "android"', {
419 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000420 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
421 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
djsollen@google.com58629292011-11-03 13:08:29 +0000422 ],
423 'link_settings': {
424 'libraries': [
425 '-lGLESv2',
426 '-lEGL',
djsollen@google.com58629292011-11-03 13:08:29 +0000427 ],
428 },
429 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000430 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000431 },
432 ],
433}
434
435# Local Variables:
436# tab-width:2
437# indent-tabs-mode:nil
438# End:
439# vim: set expandtab tabstop=2 shiftwidth=2: