blob: c3f75f5b326e5ec5efe21f03c6acd270adb0ebec [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.com373a6632011-10-19 20:43:20 +0000208 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
bsalomon@google.com74913722011-10-27 20:44:19 +0000209 '../src/gpu/GrGLCreateNullInterface.cpp',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000210 '../src/gpu/GrGLDefaultInterface_none.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000211 '../src/gpu/GrGLDefaultInterface_native.cpp',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000212 '../src/gpu/GrGLIndexBuffer.cpp',
213 '../src/gpu/GrGLIndexBuffer.h',
214 '../src/gpu/GrGLInterface.cpp',
215 '../src/gpu/GrGLIRect.h',
216 '../src/gpu/GrGLProgram.cpp',
217 '../src/gpu/GrGLProgram.h',
218 '../src/gpu/GrGLRenderTarget.cpp',
219 '../src/gpu/GrGLRenderTarget.h',
220 '../src/gpu/GrGLShaderVar.h',
tomhudson@google.com086e5352011-12-08 14:44:10 +0000221 '../src/gpu/GrGLSL.cpp',
222 '../src/gpu/GrGLSL.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000223 '../src/gpu/GrGLStencilBuffer.cpp',
224 '../src/gpu/GrGLStencilBuffer.h',
225 '../src/gpu/GrGLTexture.cpp',
226 '../src/gpu/GrGLTexture.h',
227 '../src/gpu/GrGLUtil.cpp',
228 '../src/gpu/GrGLVertexBuffer.cpp',
229 '../src/gpu/GrGLVertexBuffer.h',
230 '../src/gpu/GrGpu.cpp',
231 '../src/gpu/GrGpu.h',
232 '../src/gpu/GrGpuFactory.cpp',
233 '../src/gpu/GrGpuGL.cpp',
234 '../src/gpu/GrGpuGL.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000235 '../src/gpu/GrGpuGLShaders.cpp',
236 '../src/gpu/GrGpuGLShaders.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000237 '../src/gpu/GrGpuVertex.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000238 '../src/gpu/GrIndexBuffer.h',
239 '../src/gpu/GrInOrderDrawBuffer.cpp',
240 '../src/gpu/GrInOrderDrawBuffer.h',
241 '../src/gpu/GrMatrix.cpp',
242 '../src/gpu/GrMemory.cpp',
243 '../src/gpu/GrPathRendererChain.cpp',
244 '../src/gpu/GrPathRendererChain.h',
245 '../src/gpu/GrPathRenderer.cpp',
246 '../src/gpu/GrPathRenderer.h',
247 '../src/gpu/GrPathUtils.cpp',
248 '../src/gpu/GrPathUtils.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000249 '../src/gpu/GrPlotMgr.h',
250 '../src/gpu/GrRandom.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000251 '../src/gpu/GrRectanizer.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000252 '../src/gpu/GrRectanizer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000253 '../src/gpu/GrRedBlackTree.h',
254 '../src/gpu/GrRenderTarget.cpp',
255 '../src/gpu/GrResource.cpp',
256 '../src/gpu/GrResourceCache.cpp',
257 '../src/gpu/GrResourceCache.h',
258 '../src/gpu/GrStencil.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000259 '../src/gpu/GrStencil.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000260 '../src/gpu/GrStencilBuffer.cpp',
261 '../src/gpu/GrStencilBuffer.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000262 '../src/gpu/GrStringBuilder.h',
263 '../src/gpu/GrTBSearch.h',
264 '../src/gpu/GrTDArray.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000265 '../src/gpu/GrTesselatedPathRenderer.cpp',
266 '../src/gpu/GrTesselatedPathRenderer.h',
267 '../src/gpu/GrTextContext.cpp',
268 '../src/gpu/GrTextStrike.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000269 '../src/gpu/GrTextStrike.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000270 '../src/gpu/GrTextStrike_impl.h',
271 '../src/gpu/GrTexture.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000272 '../src/gpu/GrTHashCache.h',
273 '../src/gpu/GrTLList.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000274 '../src/gpu/GrVertexBuffer.h',
275 '../src/gpu/gr_unittests.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000276
epoger@google.comae85aea2011-05-31 13:50:51 +0000277
bsalomon@google.com373a6632011-10-19 20:43:20 +0000278 '../src/gpu/mac/GrGLCreateNativeInterface_mac.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000279
bsalomon@google.com373a6632011-10-19 20:43:20 +0000280 '../src/gpu/win/GrGLCreateNativeInterface_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000281
bsalomon@google.com373a6632011-10-19 20:43:20 +0000282 '../src/gpu/unix/GrGLCreateNativeInterface_unix.cpp',
283
djsollen@google.com58629292011-11-03 13:08:29 +0000284 '../src/gpu/android/GrGLCreateNativeInterface_android.cpp',
285
bsalomon@google.com373a6632011-10-19 20:43:20 +0000286 '../src/gpu/mesa/GrGLCreateMesaInterface.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000287 ],
288 'defines': [
289 'GR_IMPLEMENTATION=1',
290 ],
291 'conditions': [
bsalomon@google.com9f169a42012-01-12 20:56:52 +0000292 [ 'skia_gpu_disable_osaa', {
293 'defines': [
294 'GR_USE_OFFSCREEN_AA=0',
295 ],
296 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000297 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000298 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000299 '../src/gpu/GrGLDefaultInterface_none.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000300 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000301 ],
302 'link_settings': {
303 'libraries': [
304 '-lGL',
305 '-lX11',
306 ],
307 },
308 }],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000309 [ 'skia_mesa and skia_os == "linux"', {
310 'link_settings': {
311 'libraries': [
312 '-lOSMesa',
313 ],
314 },
315 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000316 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000317 'link_settings': {
318 'libraries': [
319 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
320 ],
321 },
322 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000323 '../src/gpu/GrGLDefaultInterface_none.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000324 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000325 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000326 }],
327 [ 'skia_mesa and skia_os == "mac"', {
328 'link_settings': {
329 'libraries': [
330 '$(SDKROOT)/usr/X11/lib/libOSMesa.dylib',
331 ],
332 },
333 'include_dirs': [
334 '$(SDKROOT)/usr/X11/include/',
335 ],
336 }],
337 [ 'not skia_mesa', {
338 'sources!': [
339 '../src/gpu/mesa/GrGLCreateMesaInterface.cpp',
340 ],
341 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000342 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000343 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000344 '../src/gpu/GrGLDefaultInterface_none.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000345 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000346 ],
347 }],
djsollen@google.com58629292011-11-03 13:08:29 +0000348 [ 'skia_os == "android"', {
349 'sources!': [
350 '../src/gpu/GrGLDefaultInterface_none.cpp',
351 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
352 ],
353 'link_settings': {
354 'libraries': [
355 '-lGLESv2',
356 '-lEGL',
djsollen@google.com58629292011-11-03 13:08:29 +0000357 ],
358 },
359 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000360 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000361 },
362 ],
363}
364
365# Local Variables:
366# tab-width:2
367# indent-tabs-mode:nil
368# End:
369# vim: set expandtab tabstop=2 shiftwidth=2: