blob: 91e7385fdf09276f4bb8a4dfdf661db2f9798f5a [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',
robertphillips@google.com41efe042012-06-29 20:55:14 +0000106 '../include/gpu/SkGrPixelRef.h',
robertphillips@google.come9c04692012-06-29 00:30:13 +0000107 '../include/gpu/SkGrTexturePixelRef.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000108
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',
robertphillips@google.com41efe042012-06-29 20:55:14 +0000120 '../src/gpu/SkGrPixelRef.cpp',
robertphillips@google.come9c04692012-06-29 00:30:13 +0000121 '../src/gpu/SkGrTexturePixelRef.cpp',
tomhudson@google.com40725562012-02-10 21:35:06 +0000122
123 '../src/gpu/gl/SkGLContext.cpp',
124 '../src/gpu/gl/SkNullGLContext.cpp',
robertphillips@google.comd91f3702012-03-28 18:22:01 +0000125
126 '../src/gpu/gl/debug/SkDebugGLContext.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000127
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000128 '../src/gpu/gl/mac/SkNativeGLContext_mac.cpp',
129
130 '../src/gpu/gl/win/SkNativeGLContext_win.cpp',
131
132 '../src/gpu/gl/unix/SkNativeGLContext_unix.cpp',
133
134 '../src/gpu/gl/mesa/SkMesaGLContext.cpp',
robertphillips@google.com021bce92012-04-02 20:42:26 +0000135 '../src/gpu/gl/angle/SkANGLEGLContext.cpp',
136 '../src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp',
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000137
djsollen@google.com58629292011-11-03 13:08:29 +0000138 '../src/gpu/android/SkNativeGLContext_android.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000139 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000140 'conditions': [
141 [ 'not skia_mesa', {
142 'sources!': [
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000143 '../src/gpu/gl/mesa/SkMesaGLContext.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000144 ],
145 }],
146 [ 'skia_mesa and skia_os == "mac"', {
147 'include_dirs': [
148 '$(SDKROOT)/usr/X11/include/',
149 ],
150 }],
robertphillips@google.com021bce92012-04-02 20:42:26 +0000151 [ 'not skia_angle', {
152 'sources!': [
153 '../include/gpu/gl/SkANGLEGLContext.h',
154 '../src/gpu/gl/angle/SkANGLEGLContext.cpp',
155 '../src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp',
156 ],
157 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000158 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000159 },
160 {
161 'target_name': 'gr',
162 'type': 'static_library',
163 'include_dirs': [
epoger@google.comae85aea2011-05-31 13:50:51 +0000164 '../include/core',
165 '../include/config',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000166 '../include/gpu',
bsalomon@google.com150d2842012-01-12 20:19:56 +0000167 '../src/core', # SkRasterClip.h
tomhudson@google.comd8f856c2012-05-10 12:13:36 +0000168 '../src/gpu'
epoger@google.comae85aea2011-05-31 13:50:51 +0000169 ],
170 'dependencies': [
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': [
robertphillips@google.comf6747b02012-06-12 00:32:28 +0000177 '../include/gpu/GrAARectRenderer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000178 '../include/gpu/GrClip.h',
179 '../include/gpu/GrClipIterator.h',
180 '../include/gpu/GrColor.h',
181 '../include/gpu/GrConfig.h',
182 '../include/gpu/GrContext.h',
bsalomon@google.com7361f542012-04-19 19:15:35 +0000183 '../include/gpu/GrContextFactory.h',
tomhudson@google.com07eecdc2012-04-20 18:35:38 +0000184 '../include/gpu/GrCustomStage.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000185 '../include/gpu/GrFontScaler.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000186 '../include/gpu/GrGlyph.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000187 '../include/gpu/GrInstanceCounter.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000188 '../include/gpu/GrKey.h',
189 '../include/gpu/GrMatrix.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000190 '../include/gpu/GrNoncopyable.h',
191 '../include/gpu/GrPaint.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000192 '../include/gpu/GrPoint.h',
bsalomon@google.comae4f96a2012-05-18 19:54:48 +0000193 '../include/gpu/GrProgramStageFactory.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000194 '../include/gpu/GrRect.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000195 '../include/gpu/GrRefCnt.h',
196 '../include/gpu/GrRenderTarget.h',
197 '../include/gpu/GrResource.h',
198 '../include/gpu/GrSamplerState.h',
199 '../include/gpu/GrScalar.h',
robertphillips@google.com7d501ab2012-06-21 21:09:06 +0000200 '../include/gpu/GrSurface.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000201 '../include/gpu/GrTextContext.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000202 '../include/gpu/GrTexture.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000203 '../include/gpu/GrTypes.h',
204 '../include/gpu/GrUserConfig.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000205
tomhudson@google.com6bf38b52012-02-14 15:11:59 +0000206 '../include/gpu/gl/GrGLConfig.h',
207 '../include/gpu/gl/GrGLConfig_chrome.h',
bsalomon@google.com637d5e92012-05-07 21:33:56 +0000208 '../include/gpu/gl/GrGLFunctions.h',
tomhudson@google.com6bf38b52012-02-14 15:11:59 +0000209 '../include/gpu/gl/GrGLInterface.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000210
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000211 '../src/gpu/GrAAHairLinePathRenderer.cpp',
212 '../src/gpu/GrAAHairLinePathRenderer.h',
bsalomon@google.com69cc6ad2012-01-17 14:25:10 +0000213 '../src/gpu/GrAAConvexPathRenderer.cpp',
214 '../src/gpu/GrAAConvexPathRenderer.h',
robertphillips@google.comf6747b02012-06-12 00:32:28 +0000215 '../src/gpu/GrAARectRenderer.cpp',
bsalomon@google.com69cc6ad2012-01-17 14:25:10 +0000216 '../src/gpu/GrAddPathRenderers_default.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000217 '../src/gpu/GrAllocator.h',
218 '../src/gpu/GrAllocPool.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000219 '../src/gpu/GrAllocPool.cpp',
220 '../src/gpu/GrAtlas.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000221 '../src/gpu/GrAtlas.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000222 '../src/gpu/GrBinHashKey.h',
223 '../src/gpu/GrBufferAllocPool.cpp',
224 '../src/gpu/GrBufferAllocPool.h',
225 '../src/gpu/GrClip.cpp',
226 '../src/gpu/GrContext.cpp',
tomhudson@google.com168e6342012-04-18 17:49:20 +0000227 '../src/gpu/GrCustomStage.cpp',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000228 '../src/gpu/GrDefaultPathRenderer.cpp',
229 '../src/gpu/GrDefaultPathRenderer.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',
bsalomon@google.com4da34e32012-06-19 15:40:27 +0000245 '../src/gpu/GrMemoryPool.cpp',
246 '../src/gpu/GrMemoryPool.h',
bsalomon@google.com64aef2b2012-06-11 15:36:13 +0000247 '../src/gpu/GrPath.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000248 '../src/gpu/GrPathRendererChain.cpp',
249 '../src/gpu/GrPathRendererChain.h',
250 '../src/gpu/GrPathRenderer.cpp',
251 '../src/gpu/GrPathRenderer.h',
252 '../src/gpu/GrPathUtils.cpp',
253 '../src/gpu/GrPathUtils.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000254 '../src/gpu/GrPlotMgr.h',
255 '../src/gpu/GrRandom.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000256 '../src/gpu/GrRectanizer.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000257 '../src/gpu/GrRectanizer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000258 '../src/gpu/GrRedBlackTree.h',
259 '../src/gpu/GrRenderTarget.cpp',
260 '../src/gpu/GrResource.cpp',
261 '../src/gpu/GrResourceCache.cpp',
262 '../src/gpu/GrResourceCache.h',
263 '../src/gpu/GrStencil.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000264 '../src/gpu/GrStencil.h',
bsalomon@google.comded4f4b2012-06-28 18:48:06 +0000265 '../src/gpu/GrStencilAndCoverPathRenderer.cpp',
266 '../src/gpu/GrStencilAndCoverPathRenderer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000267 '../src/gpu/GrStencilBuffer.cpp',
268 '../src/gpu/GrStencilBuffer.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000269 '../src/gpu/GrTBSearch.h',
270 '../src/gpu/GrTDArray.h',
robertphillips@google.com58b20212012-06-27 20:44:52 +0000271 '../src/gpu/GrSWMaskHelper.cpp',
272 '../src/gpu/GrSWMaskHelper.h',
robertphillips@google.com7c2578d2012-05-01 12:19:34 +0000273 '../src/gpu/GrSoftwarePathRenderer.cpp',
274 '../src/gpu/GrSoftwarePathRenderer.h',
robertphillips@google.com7d501ab2012-06-21 21:09:06 +0000275 '../src/gpu/GrSurface.cpp',
bsalomon@google.com5e241292012-06-22 12:34:22 +0000276 '../src/gpu/GrTemplates.h',
tomhudson@google.com375ff852012-06-29 18:37:57 +0000277 '../src/gpu/GrTextContext.cpp',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000278 '../src/gpu/GrTextStrike.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000279 '../src/gpu/GrTextStrike.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000280 '../src/gpu/GrTextStrike_impl.h',
281 '../src/gpu/GrTexture.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000282 '../src/gpu/GrTHashCache.h',
283 '../src/gpu/GrTLList.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000284 '../src/gpu/GrVertexBuffer.h',
285 '../src/gpu/gr_unittests.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000286
bsalomon@google.comb505a122012-05-31 18:40:36 +0000287 '../src/gpu/effects/Gr1DKernelEffect.h',
tomhudson@google.comd8f856c2012-05-10 12:13:36 +0000288 '../src/gpu/effects/GrConvolutionEffect.cpp',
289 '../src/gpu/effects/GrConvolutionEffect.h',
tomhudson@google.com7fab52d2012-05-31 19:40:13 +0000290 '../src/gpu/effects/GrGradientEffects.cpp',
291 '../src/gpu/effects/GrGradientEffects.h',
bsalomon@google.comb505a122012-05-31 18:40:36 +0000292 '../src/gpu/effects/GrMorphologyEffect.cpp',
293 '../src/gpu/effects/GrMorphologyEffect.h',
tomhudson@google.comd8f856c2012-05-10 12:13:36 +0000294
bsalomon@google.comf7fa8062012-02-14 14:09:57 +0000295 '../src/gpu/gl/GrGLCaps.cpp',
296 '../src/gpu/gl/GrGLCaps.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000297 '../src/gpu/gl/GrGLContextInfo.cpp',
298 '../src/gpu/gl/GrGLContextInfo.h',
299 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
300 '../src/gpu/gl/GrGLCreateNullInterface.cpp',
301 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
302 '../src/gpu/gl/GrGLDefaultInterface_native.cpp',
bsalomon@google.com91bcc942012-05-07 17:28:41 +0000303 '../src/gpu/gl/GrGLDefines.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000304 '../src/gpu/gl/GrGLIndexBuffer.cpp',
305 '../src/gpu/gl/GrGLIndexBuffer.h',
306 '../src/gpu/gl/GrGLInterface.cpp',
307 '../src/gpu/gl/GrGLIRect.h',
bsalomon@google.com64aef2b2012-06-11 15:36:13 +0000308 '../src/gpu/gl/GrGLPath.cpp',
309 '../src/gpu/gl/GrGLPath.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000310 '../src/gpu/gl/GrGLProgram.cpp',
311 '../src/gpu/gl/GrGLProgram.h',
tomhudson@google.com168e6342012-04-18 17:49:20 +0000312 '../src/gpu/gl/GrGLProgramStage.cpp',
313 '../src/gpu/gl/GrGLProgramStage.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000314 '../src/gpu/gl/GrGLRenderTarget.cpp',
315 '../src/gpu/gl/GrGLRenderTarget.h',
tomhudson@google.comf9ad8862012-05-11 20:38:48 +0000316 '../src/gpu/gl/GrGLShaderBuilder.cpp',
317 '../src/gpu/gl/GrGLShaderBuilder.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000318 '../src/gpu/gl/GrGLShaderVar.h',
319 '../src/gpu/gl/GrGLSL.cpp',
320 '../src/gpu/gl/GrGLSL.h',
321 '../src/gpu/gl/GrGLStencilBuffer.cpp',
322 '../src/gpu/gl/GrGLStencilBuffer.h',
323 '../src/gpu/gl/GrGLTexture.cpp',
324 '../src/gpu/gl/GrGLTexture.h',
325 '../src/gpu/gl/GrGLUtil.cpp',
bsalomon@google.com9c1f1ac2012-05-07 17:09:37 +0000326 '../src/gpu/gl/GrGLUtil.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000327 '../src/gpu/gl/GrGLVertexBuffer.cpp',
328 '../src/gpu/gl/GrGLVertexBuffer.h',
329 '../src/gpu/gl/GrGpuGL.cpp',
330 '../src/gpu/gl/GrGpuGL.h',
bsalomon@google.com5739d2c2012-05-31 15:07:19 +0000331 '../src/gpu/gl/GrGpuGL_program.cpp',
bsalomon@google.com7e5c6242012-06-01 19:28:26 +0000332 '../src/gpu/gl/GrGpuGL_unittest.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000333
robertphillips@google.comd91f3702012-03-28 18:22:01 +0000334 '../src/gpu/gl/debug/GrGLCreateDebugInterface.cpp',
robertphillips@google.comdd743fe2012-04-05 14:40:53 +0000335 '../src/gpu/gl/debug/GrFakeRefObj.h',
robertphillips@google.comdd743fe2012-04-05 14:40:53 +0000336 '../src/gpu/gl/debug/GrBufferObj.h',
337 '../src/gpu/gl/debug/GrBufferObj.cpp',
338 '../src/gpu/gl/debug/GrFBBindableObj.h',
robertphillips@google.comdd743fe2012-04-05 14:40:53 +0000339 '../src/gpu/gl/debug/GrRenderBufferObj.h',
robertphillips@google.comdd743fe2012-04-05 14:40:53 +0000340 '../src/gpu/gl/debug/GrTextureObj.h',
341 '../src/gpu/gl/debug/GrTextureObj.cpp',
342 '../src/gpu/gl/debug/GrTextureUnitObj.h',
343 '../src/gpu/gl/debug/GrTextureUnitObj.cpp',
344 '../src/gpu/gl/debug/GrFrameBufferObj.h',
345 '../src/gpu/gl/debug/GrFrameBufferObj.cpp',
346 '../src/gpu/gl/debug/GrShaderObj.h',
347 '../src/gpu/gl/debug/GrShaderObj.cpp',
348 '../src/gpu/gl/debug/GrProgramObj.h',
349 '../src/gpu/gl/debug/GrProgramObj.cpp',
350 '../src/gpu/gl/debug/GrDebugGL.h',
351 '../src/gpu/gl/debug/GrDebugGL.cpp',
robertphillips@google.comd91f3702012-03-28 18:22:01 +0000352
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000353 '../src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000354
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000355 '../src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000356
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000357 '../src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp',
358
359 '../src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp',
robertphillips@google.com021bce92012-04-02 20:42:26 +0000360 '../src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000361
djsollen@google.com58629292011-11-03 13:08:29 +0000362 '../src/gpu/android/GrGLCreateNativeInterface_android.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000363 ],
364 'defines': [
365 'GR_IMPLEMENTATION=1',
366 ],
367 'conditions': [
bsalomon@google.comded4f4b2012-06-28 18:48:06 +0000368 [ 'skia_nv_path_rendering', {
369 'defines': [
370 'GR_GL_USE_NV_PATH_RENDERING=1',
371 ],
372 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000373 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000374 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000375 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
376 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000377 ],
378 'link_settings': {
379 'libraries': [
380 '-lGL',
381 '-lX11',
382 ],
383 },
384 }],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000385 [ 'skia_mesa and skia_os == "linux"', {
386 'link_settings': {
387 'libraries': [
388 '-lOSMesa',
389 ],
390 },
391 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000392 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000393 'link_settings': {
394 'libraries': [
395 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
396 ],
397 },
398 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000399 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
400 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000401 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000402 }],
403 [ 'skia_mesa and skia_os == "mac"', {
404 'link_settings': {
405 'libraries': [
406 '$(SDKROOT)/usr/X11/lib/libOSMesa.dylib',
407 ],
408 },
409 'include_dirs': [
410 '$(SDKROOT)/usr/X11/include/',
411 ],
412 }],
413 [ 'not skia_mesa', {
414 'sources!': [
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000415 '../src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000416 ],
417 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000418 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000419 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000420 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
421 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000422 ],
423 }],
robertphillips@google.com021bce92012-04-02 20:42:26 +0000424 [ 'not skia_angle', {
425 'sources!': [
426 '../include/gpu/gl/SkANGLEGLContext.h',
427
428 '../src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp',
429 '../src/gpu/gl/angle/SkANGLEGLContext.cpp',
430 ],
431 }],
djsollen@google.com58629292011-11-03 13:08:29 +0000432 [ 'skia_os == "android"', {
433 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000434 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
435 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
djsollen@google.com58629292011-11-03 13:08:29 +0000436 ],
437 'link_settings': {
438 'libraries': [
439 '-lGLESv2',
440 '-lEGL',
djsollen@google.com58629292011-11-03 13:08:29 +0000441 ],
442 },
443 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000444 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000445 },
446 ],
447}
448
449# Local Variables:
450# tab-width:2
451# indent-tabs-mode:nil
452# End:
453# vim: set expandtab tabstop=2 shiftwidth=2: