blob: f85e8199f02da8642bf40d73b7bee04a38a36d5e [file] [log] [blame]
epoger@google.comae85aea2011-05-31 13:50:51 +00001{
bsalomon@google.com9f169a42012-01-12 20:56:52 +00002 'variables': {
3 'skia_gpu_disable_osaa%': 0,
4 },
5 'skia_gpu_disable_osaa': '<(skia_gpu_disable_osaa)',
6
epoger@google.comae85aea2011-05-31 13:50:51 +00007 'includes': [
epoger@google.com5351b372011-07-01 17:16:26 +00008 'common.gypi',
epoger@google.comae85aea2011-05-31 13:50:51 +00009 ],
bsalomon@google.come2953132011-10-13 13:33:08 +000010 'target_defaults': {
11 'conditions': [
12 ['skia_os != "win"', {
13 'sources/': [ ['exclude', '_win.(h|cpp)$'],
14 ],
15 }],
16 ['skia_os != "mac"', {
17 'sources/': [ ['exclude', '_mac.(h|cpp)$'],
18 ],
19 }],
20 ['skia_os != "linux"', {
21 'sources/': [ ['exclude', '_unix.(h|cpp)$'],
22 ],
23 }],
24 ['skia_os != "ios"', {
25 'sources/': [ ['exclude', '_iOS.(h|cpp)$'],
26 ],
27 }],
28 ['skia_os != "android"', {
29 'sources/': [ ['exclude', '_android.(h|cpp)$'],
30 ],
31 }],
32 [ 'skia_os == "android"', {
33 'defines': [
34 'GR_ANDROID_BUILD=1',
35 ],
36 }],
37 [ 'skia_os == "mac"', {
38 'defines': [
39 'GR_MAC_BUILD=1',
40 ],
41 }],
42 [ 'skia_os == "linux"', {
43 'defines': [
44 'GR_LINUX_BUILD=1',
45 ],
46 }],
47 [ 'skia_os == "ios"', {
48 'defines': [
49 'GR_IOS_BUILD=1',
50 ],
51 }],
52 [ 'skia_os == "win"', {
53 'defines': [
54 'GR_WIN32_BUILD=1',
55 'GR_GL_FUNCTION_TYPE=__stdcall',
56 ],
57 }],
58 ],
59 'direct_dependent_settings': {
60 'conditions': [
61 [ 'skia_os == "android"', {
62 'defines': [
63 'GR_ANDROID_BUILD=1',
64 ],
65 }],
66 [ 'skia_os == "mac"', {
67 'defines': [
68 'GR_MAC_BUILD=1',
69 ],
70 }],
71 [ 'skia_os == "linux"', {
72 'defines': [
73 'GR_LINUX_BUILD=1',
74 ],
75 }],
76 [ 'skia_os == "ios"', {
77 'defines': [
78 'GR_IOS_BUILD=1',
79 ],
80 }],
81 [ 'skia_os == "win"', {
82 'defines': [
83 'GR_WIN32_BUILD=1',
84 'GR_GL_FUNCTION_TYPE=__stdcall',
85 ],
86 }],
87 ],
88 'include_dirs': [
89 '../include/gpu',
90 ],
91 },
92 },
epoger@google.comae85aea2011-05-31 13:50:51 +000093 'targets': [
94 {
95 'target_name': 'skgr',
96 'type': 'static_library',
97 'include_dirs': [
98 '../include/config',
99 '../include/core',
100 '../src/core',
101 '../include/gpu',
epoger@google.comae85aea2011-05-31 13:50:51 +0000102 ],
103 'sources': [
bsalomon@google.com373a6632011-10-19 20:43:20 +0000104 '../include/gpu/SkGLContext.h',
105 '../include/gpu/SkMesaGLContext.h',
106 '../include/gpu/SkNativeGLContext.h',
bsalomon@google.com74913722011-10-27 20:44:19 +0000107 '../include/gpu/SkNullGLContext.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000108 '../include/gpu/SkGpuCanvas.h',
109 '../include/gpu/SkGpuDevice.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000110 '../include/gpu/SkGr.h',
111 '../include/gpu/SkGrTexturePixelRef.h',
112
113 '../src/gpu/GrPrintf_skia.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000114 '../src/gpu/SkGLContext.cpp',
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',
bsalomon@google.com74913722011-10-27 20:44:19 +0000120 '../src/gpu/SkNullGLContext.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000121
djsollen@google.com58629292011-11-03 13:08:29 +0000122 '../src/gpu/android/SkNativeGLContext_android.cpp',
123
bsalomon@google.com373a6632011-10-19 20:43:20 +0000124 '../src/gpu/mac/SkNativeGLContext_mac.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000125
bsalomon@google.com373a6632011-10-19 20:43:20 +0000126 '../src/gpu/win/SkNativeGLContext_win.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000127
bsalomon@google.com373a6632011-10-19 20:43:20 +0000128 '../src/gpu/unix/SkNativeGLContext_unix.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000129
bsalomon@google.com373a6632011-10-19 20:43:20 +0000130 '../src/gpu/mesa/SkMesaGLContext.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000131 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000132 'conditions': [
133 [ 'not skia_mesa', {
134 'sources!': [
135 '../src/gpu/mesa/SkMesaGLContext.cpp',
136 ],
137 }],
138 [ 'skia_mesa and skia_os == "mac"', {
139 'include_dirs': [
140 '$(SDKROOT)/usr/X11/include/',
141 ],
142 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000143 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000144 },
145 {
146 'target_name': 'gr',
147 'type': 'static_library',
148 'include_dirs': [
epoger@google.comae85aea2011-05-31 13:50:51 +0000149 '../include/core',
150 '../include/config',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000151 '../include/gpu',
bsalomon@google.com150d2842012-01-12 20:19:56 +0000152 '../src/core', # SkRasterClip.h
epoger@google.comae85aea2011-05-31 13:50:51 +0000153 ],
154 'dependencies': [
155 'libtess.gyp:libtess',
156 ],
157 'sources': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000158 '../include/gpu/GrClip.h',
159 '../include/gpu/GrClipIterator.h',
160 '../include/gpu/GrColor.h',
161 '../include/gpu/GrConfig.h',
162 '../include/gpu/GrContext.h',
163 '../include/gpu/GrFontScaler.h',
164 '../include/gpu/GrGLConfig.h',
165 '../include/gpu/GrGLConfig_chrome.h',
bsalomon@google.com85b505b2011-11-07 14:56:51 +0000166 '../include/gpu/GrGLDefines.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000167 '../include/gpu/GrGLInterface.h',
168 '../include/gpu/GrGlyph.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000169 '../include/gpu/GrInstanceCounter.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000170 '../include/gpu/GrKey.h',
171 '../include/gpu/GrMatrix.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000172 '../include/gpu/GrNoncopyable.h',
173 '../include/gpu/GrPaint.h',
174 '../include/gpu/GrPath.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000175 '../include/gpu/GrPoint.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000176 '../include/gpu/GrRect.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000177 '../include/gpu/GrRefCnt.h',
178 '../include/gpu/GrRenderTarget.h',
179 '../include/gpu/GrResource.h',
180 '../include/gpu/GrSamplerState.h',
181 '../include/gpu/GrScalar.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000182 '../include/gpu/GrTextContext.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000183 '../include/gpu/GrTexture.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000184 '../include/gpu/GrTypes.h',
185 '../include/gpu/GrUserConfig.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000186
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000187 '../src/gpu/GrAAHairLinePathRenderer.cpp',
188 '../src/gpu/GrAAHairLinePathRenderer.h',
bsalomon@google.com69cc6ad2012-01-17 14:25:10 +0000189 '../src/gpu/GrAAConvexPathRenderer.cpp',
190 '../src/gpu/GrAAConvexPathRenderer.h',
191 '../src/gpu/GrAddPathRenderers_default.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000192 '../src/gpu/GrAllocator.h',
193 '../src/gpu/GrAllocPool.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000194 '../src/gpu/GrAllocPool.cpp',
195 '../src/gpu/GrAtlas.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000196 '../src/gpu/GrAtlas.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000197 '../src/gpu/GrBinHashKey.h',
198 '../src/gpu/GrBufferAllocPool.cpp',
199 '../src/gpu/GrBufferAllocPool.h',
200 '../src/gpu/GrClip.cpp',
201 '../src/gpu/GrContext.cpp',
202 '../src/gpu/GrDefaultPathRenderer.cpp',
203 '../src/gpu/GrDefaultPathRenderer.h',
tomhudson@google.com93813632011-10-27 20:21:16 +0000204 '../src/gpu/GrDrawState.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000205 '../src/gpu/GrDrawTarget.cpp',
206 '../src/gpu/GrDrawTarget.h',
207 '../src/gpu/GrGeometryBuffer.h',
bsalomon@google.com89ec61e2012-02-10 20:05:18 +0000208 '../src/gpu/GrGLContextInfo.cpp',
209 '../src/gpu/GrGLContextInfo.h',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000210 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
bsalomon@google.com74913722011-10-27 20:44:19 +0000211 '../src/gpu/GrGLCreateNullInterface.cpp',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000212 '../src/gpu/GrGLDefaultInterface_none.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000213 '../src/gpu/GrGLDefaultInterface_native.cpp',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000214 '../src/gpu/GrGLIndexBuffer.cpp',
215 '../src/gpu/GrGLIndexBuffer.h',
216 '../src/gpu/GrGLInterface.cpp',
217 '../src/gpu/GrGLIRect.h',
218 '../src/gpu/GrGLProgram.cpp',
219 '../src/gpu/GrGLProgram.h',
220 '../src/gpu/GrGLRenderTarget.cpp',
221 '../src/gpu/GrGLRenderTarget.h',
222 '../src/gpu/GrGLShaderVar.h',
tomhudson@google.com086e5352011-12-08 14:44:10 +0000223 '../src/gpu/GrGLSL.cpp',
224 '../src/gpu/GrGLSL.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000225 '../src/gpu/GrGLStencilBuffer.cpp',
226 '../src/gpu/GrGLStencilBuffer.h',
227 '../src/gpu/GrGLTexture.cpp',
228 '../src/gpu/GrGLTexture.h',
229 '../src/gpu/GrGLUtil.cpp',
230 '../src/gpu/GrGLVertexBuffer.cpp',
231 '../src/gpu/GrGLVertexBuffer.h',
232 '../src/gpu/GrGpu.cpp',
233 '../src/gpu/GrGpu.h',
234 '../src/gpu/GrGpuFactory.cpp',
235 '../src/gpu/GrGpuGL.cpp',
236 '../src/gpu/GrGpuGL.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000237 '../src/gpu/GrGpuGLShaders.cpp',
238 '../src/gpu/GrGpuGLShaders.h',
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',
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',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000267 '../src/gpu/GrTesselatedPathRenderer.cpp',
268 '../src/gpu/GrTesselatedPathRenderer.h',
269 '../src/gpu/GrTextContext.cpp',
270 '../src/gpu/GrTextStrike.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000271 '../src/gpu/GrTextStrike.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000272 '../src/gpu/GrTextStrike_impl.h',
273 '../src/gpu/GrTexture.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000274 '../src/gpu/GrTHashCache.h',
275 '../src/gpu/GrTLList.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000276 '../src/gpu/GrVertexBuffer.h',
277 '../src/gpu/gr_unittests.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000278
epoger@google.comae85aea2011-05-31 13:50:51 +0000279
bsalomon@google.com373a6632011-10-19 20:43:20 +0000280 '../src/gpu/mac/GrGLCreateNativeInterface_mac.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000281
bsalomon@google.com373a6632011-10-19 20:43:20 +0000282 '../src/gpu/win/GrGLCreateNativeInterface_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000283
bsalomon@google.com373a6632011-10-19 20:43:20 +0000284 '../src/gpu/unix/GrGLCreateNativeInterface_unix.cpp',
285
djsollen@google.com58629292011-11-03 13:08:29 +0000286 '../src/gpu/android/GrGLCreateNativeInterface_android.cpp',
287
bsalomon@google.com373a6632011-10-19 20:43:20 +0000288 '../src/gpu/mesa/GrGLCreateMesaInterface.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000289 ],
290 'defines': [
291 'GR_IMPLEMENTATION=1',
292 ],
293 'conditions': [
bsalomon@google.com9f169a42012-01-12 20:56:52 +0000294 [ 'skia_gpu_disable_osaa', {
295 'defines': [
296 'GR_USE_OFFSCREEN_AA=0',
297 ],
298 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000299 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000300 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000301 '../src/gpu/GrGLDefaultInterface_none.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000302 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000303 ],
304 'link_settings': {
305 'libraries': [
306 '-lGL',
307 '-lX11',
308 ],
309 },
310 }],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000311 [ 'skia_mesa and skia_os == "linux"', {
312 'link_settings': {
313 'libraries': [
314 '-lOSMesa',
315 ],
316 },
317 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000318 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000319 'link_settings': {
320 'libraries': [
321 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
322 ],
323 },
324 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000325 '../src/gpu/GrGLDefaultInterface_none.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000326 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000327 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000328 }],
329 [ 'skia_mesa and skia_os == "mac"', {
330 'link_settings': {
331 'libraries': [
332 '$(SDKROOT)/usr/X11/lib/libOSMesa.dylib',
333 ],
334 },
335 'include_dirs': [
336 '$(SDKROOT)/usr/X11/include/',
337 ],
338 }],
339 [ 'not skia_mesa', {
340 'sources!': [
341 '../src/gpu/mesa/GrGLCreateMesaInterface.cpp',
342 ],
343 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000344 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000345 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000346 '../src/gpu/GrGLDefaultInterface_none.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000347 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000348 ],
349 }],
djsollen@google.com58629292011-11-03 13:08:29 +0000350 [ 'skia_os == "android"', {
351 'sources!': [
352 '../src/gpu/GrGLDefaultInterface_none.cpp',
353 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
354 ],
355 'link_settings': {
356 'libraries': [
357 '-lGLESv2',
358 '-lEGL',
djsollen@google.com58629292011-11-03 13:08:29 +0000359 ],
360 },
361 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000362 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000363 },
364 ],
365}
366
367# Local Variables:
368# tab-width:2
369# indent-tabs-mode:nil
370# End:
371# vim: set expandtab tabstop=2 shiftwidth=2: