blob: cff89d3676aa622ef99ad9d729048ff005e7c706 [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',
bsalomon@google.come2953132011-10-13 13:33:08 +000047 ],
48 }],
49 ],
50 'direct_dependent_settings': {
51 'conditions': [
52 [ 'skia_os == "android"', {
53 'defines': [
54 'GR_ANDROID_BUILD=1',
55 ],
56 }],
57 [ 'skia_os == "mac"', {
58 'defines': [
59 'GR_MAC_BUILD=1',
60 ],
61 }],
62 [ 'skia_os == "linux"', {
63 'defines': [
64 'GR_LINUX_BUILD=1',
65 ],
66 }],
67 [ 'skia_os == "ios"', {
68 'defines': [
69 'GR_IOS_BUILD=1',
70 ],
71 }],
72 [ 'skia_os == "win"', {
73 'defines': [
74 'GR_WIN32_BUILD=1',
75 'GR_GL_FUNCTION_TYPE=__stdcall',
76 ],
77 }],
78 ],
79 'include_dirs': [
80 '../include/gpu',
81 ],
82 },
83 },
epoger@google.comae85aea2011-05-31 13:50:51 +000084 'targets': [
85 {
86 'target_name': 'skgr',
87 'type': 'static_library',
88 'include_dirs': [
bungeman@google.com5a64e582012-03-29 14:51:56 +000089 '../include/config',
90 '../include/core',
epoger@google.comae85aea2011-05-31 13:50:51 +000091 '../src/core',
92 '../include/gpu',
bsalomon@google.com9c1f1ac2012-05-07 17:09:37 +000093 '../src/gpu',
epoger@google.comae85aea2011-05-31 13:50:51 +000094 ],
robertphillips@google.com021bce92012-04-02 20:42:26 +000095 'dependencies': [
robertphillips@google.com021bce92012-04-02 20:42:26 +000096 'angle.gyp:*',
97 ],
98 'export_dependent_settings': [
99 'angle.gyp:*',
100 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000101 'sources': [
102 '../include/gpu/SkGpuCanvas.h',
103 '../include/gpu/SkGpuDevice.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000104 '../include/gpu/SkGr.h',
robertphillips@google.com41efe042012-06-29 20:55:14 +0000105 '../include/gpu/SkGrPixelRef.h',
robertphillips@google.come9c04692012-06-29 00:30:13 +0000106 '../include/gpu/SkGrTexturePixelRef.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000107
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',
robertphillips@google.com41efe042012-06-29 20:55:14 +0000119 '../src/gpu/SkGrPixelRef.cpp',
robertphillips@google.come9c04692012-06-29 00:30:13 +0000120 '../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',
senorblanco@chromium.org894790d2012-07-11 16:01:22 +0000165 '../include/effects', # This is only to get Sk effects into
166 # GrGpuGL_unittest.cpp, not for general
167 # consumption in src/gpu.
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000168 '../include/gpu',
bsalomon@google.com150d2842012-01-12 20:19:56 +0000169 '../src/core', # SkRasterClip.h
tomhudson@google.comd8f856c2012-05-10 12:13:36 +0000170 '../src/gpu'
epoger@google.comae85aea2011-05-31 13:50:51 +0000171 ],
172 'dependencies': [
robertphillips@google.com021bce92012-04-02 20:42:26 +0000173 'angle.gyp:*',
174 ],
175 'export_dependent_settings': [
176 'angle.gyp:*',
epoger@google.comae85aea2011-05-31 13:50:51 +0000177 ],
178 'sources': [
robertphillips@google.comf6747b02012-06-12 00:32:28 +0000179 '../include/gpu/GrAARectRenderer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000180 '../include/gpu/GrClip.h',
181 '../include/gpu/GrClipIterator.h',
182 '../include/gpu/GrColor.h',
183 '../include/gpu/GrConfig.h',
184 '../include/gpu/GrContext.h',
bsalomon@google.com7361f542012-04-19 19:15:35 +0000185 '../include/gpu/GrContextFactory.h',
tomhudson@google.com07eecdc2012-04-20 18:35:38 +0000186 '../include/gpu/GrCustomStage.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000187 '../include/gpu/GrFontScaler.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000188 '../include/gpu/GrGlyph.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000189 '../include/gpu/GrInstanceCounter.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000190 '../include/gpu/GrKey.h',
191 '../include/gpu/GrMatrix.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000192 '../include/gpu/GrNoncopyable.h',
193 '../include/gpu/GrPaint.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000194 '../include/gpu/GrPoint.h',
bsalomon@google.comae4f96a2012-05-18 19:54:48 +0000195 '../include/gpu/GrProgramStageFactory.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000196 '../include/gpu/GrRect.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000197 '../include/gpu/GrRefCnt.h',
198 '../include/gpu/GrRenderTarget.h',
199 '../include/gpu/GrResource.h',
200 '../include/gpu/GrSamplerState.h',
201 '../include/gpu/GrScalar.h',
robertphillips@google.com7d501ab2012-06-21 21:09:06 +0000202 '../include/gpu/GrSurface.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000203 '../include/gpu/GrTextContext.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000204 '../include/gpu/GrTexture.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000205 '../include/gpu/GrTypes.h',
206 '../include/gpu/GrUserConfig.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000207
tomhudson@google.com6bf38b52012-02-14 15:11:59 +0000208 '../include/gpu/gl/GrGLConfig.h',
209 '../include/gpu/gl/GrGLConfig_chrome.h',
bsalomon@google.com637d5e92012-05-07 21:33:56 +0000210 '../include/gpu/gl/GrGLFunctions.h',
tomhudson@google.com6bf38b52012-02-14 15:11:59 +0000211 '../include/gpu/gl/GrGLInterface.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000212
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000213 '../src/gpu/GrAAHairLinePathRenderer.cpp',
214 '../src/gpu/GrAAHairLinePathRenderer.h',
bsalomon@google.com69cc6ad2012-01-17 14:25:10 +0000215 '../src/gpu/GrAAConvexPathRenderer.cpp',
216 '../src/gpu/GrAAConvexPathRenderer.h',
robertphillips@google.comf6747b02012-06-12 00:32:28 +0000217 '../src/gpu/GrAARectRenderer.cpp',
bsalomon@google.com69cc6ad2012-01-17 14:25:10 +0000218 '../src/gpu/GrAddPathRenderers_default.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000219 '../src/gpu/GrAllocator.h',
220 '../src/gpu/GrAllocPool.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000221 '../src/gpu/GrAllocPool.cpp',
222 '../src/gpu/GrAtlas.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000223 '../src/gpu/GrAtlas.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000224 '../src/gpu/GrBinHashKey.h',
225 '../src/gpu/GrBufferAllocPool.cpp',
226 '../src/gpu/GrBufferAllocPool.h',
227 '../src/gpu/GrClip.cpp',
228 '../src/gpu/GrContext.cpp',
tomhudson@google.com168e6342012-04-18 17:49:20 +0000229 '../src/gpu/GrCustomStage.cpp',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000230 '../src/gpu/GrDefaultPathRenderer.cpp',
231 '../src/gpu/GrDefaultPathRenderer.h',
tomhudson@google.com93813632011-10-27 20:21:16 +0000232 '../src/gpu/GrDrawState.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000233 '../src/gpu/GrDrawTarget.cpp',
234 '../src/gpu/GrDrawTarget.h',
235 '../src/gpu/GrGeometryBuffer.h',
robertphillips@google.com1e945b72012-04-16 18:03:03 +0000236 '../src/gpu/GrClipMaskManager.h',
237 '../src/gpu/GrClipMaskManager.cpp',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000238 '../src/gpu/GrGpu.cpp',
239 '../src/gpu/GrGpu.h',
240 '../src/gpu/GrGpuFactory.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000241 '../src/gpu/GrGpuVertex.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000242 '../src/gpu/GrIndexBuffer.h',
243 '../src/gpu/GrInOrderDrawBuffer.cpp',
244 '../src/gpu/GrInOrderDrawBuffer.h',
245 '../src/gpu/GrMatrix.cpp',
246 '../src/gpu/GrMemory.cpp',
bsalomon@google.com4da34e32012-06-19 15:40:27 +0000247 '../src/gpu/GrMemoryPool.cpp',
248 '../src/gpu/GrMemoryPool.h',
bsalomon@google.com64aef2b2012-06-11 15:36:13 +0000249 '../src/gpu/GrPath.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000250 '../src/gpu/GrPathRendererChain.cpp',
251 '../src/gpu/GrPathRendererChain.h',
252 '../src/gpu/GrPathRenderer.cpp',
253 '../src/gpu/GrPathRenderer.h',
254 '../src/gpu/GrPathUtils.cpp',
255 '../src/gpu/GrPathUtils.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000256 '../src/gpu/GrPlotMgr.h',
257 '../src/gpu/GrRandom.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000258 '../src/gpu/GrRectanizer.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000259 '../src/gpu/GrRectanizer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000260 '../src/gpu/GrRedBlackTree.h',
261 '../src/gpu/GrRenderTarget.cpp',
262 '../src/gpu/GrResource.cpp',
263 '../src/gpu/GrResourceCache.cpp',
264 '../src/gpu/GrResourceCache.h',
265 '../src/gpu/GrStencil.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000266 '../src/gpu/GrStencil.h',
bsalomon@google.comded4f4b2012-06-28 18:48:06 +0000267 '../src/gpu/GrStencilAndCoverPathRenderer.cpp',
268 '../src/gpu/GrStencilAndCoverPathRenderer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000269 '../src/gpu/GrStencilBuffer.cpp',
270 '../src/gpu/GrStencilBuffer.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000271 '../src/gpu/GrTBSearch.h',
272 '../src/gpu/GrTDArray.h',
robertphillips@google.com58b20212012-06-27 20:44:52 +0000273 '../src/gpu/GrSWMaskHelper.cpp',
274 '../src/gpu/GrSWMaskHelper.h',
robertphillips@google.com7c2578d2012-05-01 12:19:34 +0000275 '../src/gpu/GrSoftwarePathRenderer.cpp',
276 '../src/gpu/GrSoftwarePathRenderer.h',
robertphillips@google.com7d501ab2012-06-21 21:09:06 +0000277 '../src/gpu/GrSurface.cpp',
bsalomon@google.com5e241292012-06-22 12:34:22 +0000278 '../src/gpu/GrTemplates.h',
tomhudson@google.com375ff852012-06-29 18:37:57 +0000279 '../src/gpu/GrTextContext.cpp',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000280 '../src/gpu/GrTextStrike.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000281 '../src/gpu/GrTextStrike.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000282 '../src/gpu/GrTextStrike_impl.h',
283 '../src/gpu/GrTexture.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000284 '../src/gpu/GrTHashCache.h',
285 '../src/gpu/GrTLList.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000286 '../src/gpu/GrVertexBuffer.h',
287 '../src/gpu/gr_unittests.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000288
bsalomon@google.comb505a122012-05-31 18:40:36 +0000289 '../src/gpu/effects/Gr1DKernelEffect.h',
twiz@google.com58071162012-07-18 21:41:50 +0000290 '../src/gpu/effects/GrColorTableEffect.cpp',
291 '../src/gpu/effects/GrColorTableEffect.h',
tomhudson@google.comd8f856c2012-05-10 12:13:36 +0000292 '../src/gpu/effects/GrConvolutionEffect.cpp',
293 '../src/gpu/effects/GrConvolutionEffect.h',
tomhudson@google.com7fab52d2012-05-31 19:40:13 +0000294 '../src/gpu/effects/GrGradientEffects.cpp',
295 '../src/gpu/effects/GrGradientEffects.h',
bsalomon@google.comb505a122012-05-31 18:40:36 +0000296 '../src/gpu/effects/GrMorphologyEffect.cpp',
297 '../src/gpu/effects/GrMorphologyEffect.h',
tomhudson@google.comd0c1a062012-07-12 17:23:52 +0000298 '../src/gpu/effects/GrSingleTextureEffect.cpp',
299 '../src/gpu/effects/GrSingleTextureEffect.h',
tomhudson@google.com2f68e762012-07-17 18:43:21 +0000300 '../src/gpu/effects/GrTextureDomainEffect.cpp',
301 '../src/gpu/effects/GrTextureDomainEffect.h',
tomhudson@google.comd8f856c2012-05-10 12:13:36 +0000302
bsalomon@google.comf7fa8062012-02-14 14:09:57 +0000303 '../src/gpu/gl/GrGLCaps.cpp',
304 '../src/gpu/gl/GrGLCaps.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000305 '../src/gpu/gl/GrGLContextInfo.cpp',
306 '../src/gpu/gl/GrGLContextInfo.h',
307 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
308 '../src/gpu/gl/GrGLCreateNullInterface.cpp',
309 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
310 '../src/gpu/gl/GrGLDefaultInterface_native.cpp',
bsalomon@google.com91bcc942012-05-07 17:28:41 +0000311 '../src/gpu/gl/GrGLDefines.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000312 '../src/gpu/gl/GrGLIndexBuffer.cpp',
313 '../src/gpu/gl/GrGLIndexBuffer.h',
314 '../src/gpu/gl/GrGLInterface.cpp',
315 '../src/gpu/gl/GrGLIRect.h',
bsalomon@google.com64aef2b2012-06-11 15:36:13 +0000316 '../src/gpu/gl/GrGLPath.cpp',
317 '../src/gpu/gl/GrGLPath.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000318 '../src/gpu/gl/GrGLProgram.cpp',
319 '../src/gpu/gl/GrGLProgram.h',
tomhudson@google.com168e6342012-04-18 17:49:20 +0000320 '../src/gpu/gl/GrGLProgramStage.cpp',
321 '../src/gpu/gl/GrGLProgramStage.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000322 '../src/gpu/gl/GrGLRenderTarget.cpp',
323 '../src/gpu/gl/GrGLRenderTarget.h',
tomhudson@google.comf9ad8862012-05-11 20:38:48 +0000324 '../src/gpu/gl/GrGLShaderBuilder.cpp',
325 '../src/gpu/gl/GrGLShaderBuilder.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000326 '../src/gpu/gl/GrGLShaderVar.h',
327 '../src/gpu/gl/GrGLSL.cpp',
328 '../src/gpu/gl/GrGLSL.h',
329 '../src/gpu/gl/GrGLStencilBuffer.cpp',
330 '../src/gpu/gl/GrGLStencilBuffer.h',
331 '../src/gpu/gl/GrGLTexture.cpp',
332 '../src/gpu/gl/GrGLTexture.h',
333 '../src/gpu/gl/GrGLUtil.cpp',
bsalomon@google.com9c1f1ac2012-05-07 17:09:37 +0000334 '../src/gpu/gl/GrGLUtil.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000335 '../src/gpu/gl/GrGLVertexBuffer.cpp',
336 '../src/gpu/gl/GrGLVertexBuffer.h',
337 '../src/gpu/gl/GrGpuGL.cpp',
338 '../src/gpu/gl/GrGpuGL.h',
bsalomon@google.com5739d2c2012-05-31 15:07:19 +0000339 '../src/gpu/gl/GrGpuGL_program.cpp',
bsalomon@google.com7e5c6242012-06-01 19:28:26 +0000340 '../src/gpu/gl/GrGpuGL_unittest.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000341
robertphillips@google.comd91f3702012-03-28 18:22:01 +0000342 '../src/gpu/gl/debug/GrGLCreateDebugInterface.cpp',
robertphillips@google.comdd743fe2012-04-05 14:40:53 +0000343 '../src/gpu/gl/debug/GrFakeRefObj.h',
robertphillips@google.comdd743fe2012-04-05 14:40:53 +0000344 '../src/gpu/gl/debug/GrBufferObj.h',
345 '../src/gpu/gl/debug/GrBufferObj.cpp',
346 '../src/gpu/gl/debug/GrFBBindableObj.h',
robertphillips@google.comdd743fe2012-04-05 14:40:53 +0000347 '../src/gpu/gl/debug/GrRenderBufferObj.h',
robertphillips@google.comdd743fe2012-04-05 14:40:53 +0000348 '../src/gpu/gl/debug/GrTextureObj.h',
349 '../src/gpu/gl/debug/GrTextureObj.cpp',
350 '../src/gpu/gl/debug/GrTextureUnitObj.h',
351 '../src/gpu/gl/debug/GrTextureUnitObj.cpp',
352 '../src/gpu/gl/debug/GrFrameBufferObj.h',
353 '../src/gpu/gl/debug/GrFrameBufferObj.cpp',
354 '../src/gpu/gl/debug/GrShaderObj.h',
355 '../src/gpu/gl/debug/GrShaderObj.cpp',
356 '../src/gpu/gl/debug/GrProgramObj.h',
357 '../src/gpu/gl/debug/GrProgramObj.cpp',
358 '../src/gpu/gl/debug/GrDebugGL.h',
359 '../src/gpu/gl/debug/GrDebugGL.cpp',
robertphillips@google.comd91f3702012-03-28 18:22:01 +0000360
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000361 '../src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000362
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000363 '../src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000364
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000365 '../src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp',
366
367 '../src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp',
robertphillips@google.com021bce92012-04-02 20:42:26 +0000368 '../src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000369
djsollen@google.com58629292011-11-03 13:08:29 +0000370 '../src/gpu/android/GrGLCreateNativeInterface_android.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000371 ],
372 'defines': [
373 'GR_IMPLEMENTATION=1',
374 ],
375 'conditions': [
bsalomon@google.comded4f4b2012-06-28 18:48:06 +0000376 [ 'skia_nv_path_rendering', {
377 'defines': [
378 'GR_GL_USE_NV_PATH_RENDERING=1',
379 ],
380 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000381 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000382 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000383 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
384 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000385 ],
386 'link_settings': {
387 'libraries': [
388 '-lGL',
389 '-lX11',
390 ],
391 },
392 }],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000393 [ 'skia_mesa and skia_os == "linux"', {
394 'link_settings': {
395 'libraries': [
396 '-lOSMesa',
397 ],
398 },
399 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000400 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000401 'link_settings': {
402 'libraries': [
403 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
404 ],
405 },
406 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000407 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
408 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000409 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000410 }],
411 [ 'skia_mesa and skia_os == "mac"', {
412 'link_settings': {
413 'libraries': [
414 '$(SDKROOT)/usr/X11/lib/libOSMesa.dylib',
415 ],
416 },
417 'include_dirs': [
418 '$(SDKROOT)/usr/X11/include/',
419 ],
420 }],
421 [ 'not skia_mesa', {
422 'sources!': [
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000423 '../src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000424 ],
425 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000426 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000427 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000428 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
429 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000430 ],
431 }],
robertphillips@google.com021bce92012-04-02 20:42:26 +0000432 [ 'not skia_angle', {
433 'sources!': [
434 '../include/gpu/gl/SkANGLEGLContext.h',
435
436 '../src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp',
437 '../src/gpu/gl/angle/SkANGLEGLContext.cpp',
438 ],
439 }],
djsollen@google.com58629292011-11-03 13:08:29 +0000440 [ 'skia_os == "android"', {
441 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000442 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
443 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
djsollen@google.com58629292011-11-03 13:08:29 +0000444 ],
445 'link_settings': {
446 'libraries': [
447 '-lGLESv2',
448 '-lEGL',
djsollen@google.com58629292011-11-03 13:08:29 +0000449 ],
450 },
451 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000452 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000453 },
454 ],
455}
456
457# Local Variables:
458# tab-width:2
459# indent-tabs-mode:nil
460# End:
461# vim: set expandtab tabstop=2 shiftwidth=2: