blob: 1ac07aac8d68071d3f57fd24360021e82efac301 [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',
bungeman@google.com29b63dc2012-03-29 14:28:59 +000089 'dependencies': [
90 'core.gyp:core',
91 'gpu.gyp:gr',
92 'ports.gyp:ports',
93 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000094 'include_dirs': [
epoger@google.comae85aea2011-05-31 13:50:51 +000095 '../src/core',
96 '../include/gpu',
epoger@google.comae85aea2011-05-31 13:50:51 +000097 ],
98 'sources': [
99 '../include/gpu/SkGpuCanvas.h',
100 '../include/gpu/SkGpuDevice.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000101 '../include/gpu/SkGr.h',
102 '../include/gpu/SkGrTexturePixelRef.h',
103
tomhudson@google.com6bf38b52012-02-14 15:11:59 +0000104 '../include/gpu/gl/SkGLContext.h',
105 '../include/gpu/gl/SkMesaGLContext.h',
106 '../include/gpu/gl/SkNativeGLContext.h',
107 '../include/gpu/gl/SkNullGLContext.h',
robertphillips@google.com0da37192012-03-19 14:42:13 +0000108 '../include/gpu/gl/SkDebugGLContext.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000109
epoger@google.comae85aea2011-05-31 13:50:51 +0000110 '../src/gpu/SkGpuCanvas.cpp',
111 '../src/gpu/SkGpuDevice.cpp',
112 '../src/gpu/SkGr.cpp',
113 '../src/gpu/SkGrFontScaler.cpp',
114 '../src/gpu/SkGrTexturePixelRef.cpp',
tomhudson@google.com40725562012-02-10 21:35:06 +0000115
116 '../src/gpu/gl/SkGLContext.cpp',
117 '../src/gpu/gl/SkNullGLContext.cpp',
robertphillips@google.comd91f3702012-03-28 18:22:01 +0000118
119 '../src/gpu/gl/debug/SkDebugGLContext.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000120
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000121 '../src/gpu/gl/mac/SkNativeGLContext_mac.cpp',
122
123 '../src/gpu/gl/win/SkNativeGLContext_win.cpp',
124
125 '../src/gpu/gl/unix/SkNativeGLContext_unix.cpp',
126
127 '../src/gpu/gl/mesa/SkMesaGLContext.cpp',
128
djsollen@google.com58629292011-11-03 13:08:29 +0000129 '../src/gpu/android/SkNativeGLContext_android.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000130 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000131 'conditions': [
132 [ 'not skia_mesa', {
133 'sources!': [
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000134 '../src/gpu/gl/mesa/SkMesaGLContext.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000135 ],
136 }],
137 [ 'skia_mesa and skia_os == "mac"', {
138 'include_dirs': [
139 '$(SDKROOT)/usr/X11/include/',
140 ],
141 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000142 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000143 },
144 {
145 'target_name': 'gr',
146 'type': 'static_library',
147 'include_dirs': [
epoger@google.comae85aea2011-05-31 13:50:51 +0000148 '../include/core',
149 '../include/config',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000150 '../include/gpu',
bsalomon@google.com150d2842012-01-12 20:19:56 +0000151 '../src/core', # SkRasterClip.h
epoger@google.comae85aea2011-05-31 13:50:51 +0000152 ],
153 'dependencies': [
bungeman@google.com29b63dc2012-03-29 14:28:59 +0000154 'core.gyp:core',
epoger@google.comae85aea2011-05-31 13:50:51 +0000155 'libtess.gyp:libtess',
bungeman@google.com29b63dc2012-03-29 14:28:59 +0000156 'ports.gyp:ports',
epoger@google.comae85aea2011-05-31 13:50:51 +0000157 ],
158 'sources': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000159 '../include/gpu/GrClip.h',
160 '../include/gpu/GrClipIterator.h',
161 '../include/gpu/GrColor.h',
162 '../include/gpu/GrConfig.h',
163 '../include/gpu/GrContext.h',
164 '../include/gpu/GrFontScaler.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000165 '../include/gpu/GrGlyph.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000166 '../include/gpu/GrInstanceCounter.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000167 '../include/gpu/GrKey.h',
168 '../include/gpu/GrMatrix.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000169 '../include/gpu/GrNoncopyable.h',
170 '../include/gpu/GrPaint.h',
171 '../include/gpu/GrPath.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000172 '../include/gpu/GrPoint.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000173 '../include/gpu/GrRect.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000174 '../include/gpu/GrRefCnt.h',
175 '../include/gpu/GrRenderTarget.h',
176 '../include/gpu/GrResource.h',
177 '../include/gpu/GrSamplerState.h',
178 '../include/gpu/GrScalar.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000179 '../include/gpu/GrTextContext.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000180 '../include/gpu/GrTexture.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000181 '../include/gpu/GrTypes.h',
182 '../include/gpu/GrUserConfig.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000183
tomhudson@google.com6bf38b52012-02-14 15:11:59 +0000184 '../include/gpu/gl/GrGLConfig.h',
185 '../include/gpu/gl/GrGLConfig_chrome.h',
186 '../include/gpu/gl/GrGLDefines.h',
187 '../include/gpu/gl/GrGLInterface.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000188
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000189 '../src/gpu/GrAAHairLinePathRenderer.cpp',
190 '../src/gpu/GrAAHairLinePathRenderer.h',
bsalomon@google.com69cc6ad2012-01-17 14:25:10 +0000191 '../src/gpu/GrAAConvexPathRenderer.cpp',
192 '../src/gpu/GrAAConvexPathRenderer.h',
193 '../src/gpu/GrAddPathRenderers_default.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000194 '../src/gpu/GrAllocator.h',
195 '../src/gpu/GrAllocPool.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000196 '../src/gpu/GrAllocPool.cpp',
197 '../src/gpu/GrAtlas.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000198 '../src/gpu/GrAtlas.h',
bsalomon@google.comf4a9c822012-03-16 14:02:46 +0000199 '../src/gpu/GrBatchedTextContext.cpp',
200 '../src/gpu/GrBatchedTextContext.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000201 '../src/gpu/GrBinHashKey.h',
202 '../src/gpu/GrBufferAllocPool.cpp',
203 '../src/gpu/GrBufferAllocPool.h',
204 '../src/gpu/GrClip.cpp',
205 '../src/gpu/GrContext.cpp',
206 '../src/gpu/GrDefaultPathRenderer.cpp',
207 '../src/gpu/GrDefaultPathRenderer.h',
bsalomon@google.comf4a9c822012-03-16 14:02:46 +0000208 '../src/gpu/GrDefaultTextContext.cpp',
209 '../src/gpu/GrDefaultTextContext.h',
tomhudson@google.com93813632011-10-27 20:21:16 +0000210 '../src/gpu/GrDrawState.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000211 '../src/gpu/GrDrawTarget.cpp',
212 '../src/gpu/GrDrawTarget.h',
213 '../src/gpu/GrGeometryBuffer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000214 '../src/gpu/GrGpu.cpp',
215 '../src/gpu/GrGpu.h',
216 '../src/gpu/GrGpuFactory.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000217 '../src/gpu/GrGpuVertex.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000218 '../src/gpu/GrIndexBuffer.h',
219 '../src/gpu/GrInOrderDrawBuffer.cpp',
220 '../src/gpu/GrInOrderDrawBuffer.h',
221 '../src/gpu/GrMatrix.cpp',
222 '../src/gpu/GrMemory.cpp',
223 '../src/gpu/GrPathRendererChain.cpp',
224 '../src/gpu/GrPathRendererChain.h',
225 '../src/gpu/GrPathRenderer.cpp',
226 '../src/gpu/GrPathRenderer.h',
227 '../src/gpu/GrPathUtils.cpp',
228 '../src/gpu/GrPathUtils.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000229 '../src/gpu/GrPlotMgr.h',
230 '../src/gpu/GrRandom.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000231 '../src/gpu/GrRectanizer.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000232 '../src/gpu/GrRectanizer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000233 '../src/gpu/GrRedBlackTree.h',
234 '../src/gpu/GrRenderTarget.cpp',
235 '../src/gpu/GrResource.cpp',
236 '../src/gpu/GrResourceCache.cpp',
237 '../src/gpu/GrResourceCache.h',
238 '../src/gpu/GrStencil.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000239 '../src/gpu/GrStencil.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000240 '../src/gpu/GrStencilBuffer.cpp',
241 '../src/gpu/GrStencilBuffer.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000242 '../src/gpu/GrStringBuilder.h',
243 '../src/gpu/GrTBSearch.h',
244 '../src/gpu/GrTDArray.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000245 '../src/gpu/GrTesselatedPathRenderer.cpp',
246 '../src/gpu/GrTesselatedPathRenderer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000247 '../src/gpu/GrTextStrike.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000248 '../src/gpu/GrTextStrike.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000249 '../src/gpu/GrTextStrike_impl.h',
250 '../src/gpu/GrTexture.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000251 '../src/gpu/GrTHashCache.h',
252 '../src/gpu/GrTLList.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000253 '../src/gpu/GrVertexBuffer.h',
254 '../src/gpu/gr_unittests.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000255
bsalomon@google.comf7fa8062012-02-14 14:09:57 +0000256 '../src/gpu/gl/GrGLCaps.cpp',
257 '../src/gpu/gl/GrGLCaps.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000258 '../src/gpu/gl/GrGLContextInfo.cpp',
259 '../src/gpu/gl/GrGLContextInfo.h',
260 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
261 '../src/gpu/gl/GrGLCreateNullInterface.cpp',
262 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
263 '../src/gpu/gl/GrGLDefaultInterface_native.cpp',
264 '../src/gpu/gl/GrGLIndexBuffer.cpp',
265 '../src/gpu/gl/GrGLIndexBuffer.h',
266 '../src/gpu/gl/GrGLInterface.cpp',
267 '../src/gpu/gl/GrGLIRect.h',
268 '../src/gpu/gl/GrGLProgram.cpp',
269 '../src/gpu/gl/GrGLProgram.h',
270 '../src/gpu/gl/GrGLRenderTarget.cpp',
271 '../src/gpu/gl/GrGLRenderTarget.h',
272 '../src/gpu/gl/GrGLShaderVar.h',
273 '../src/gpu/gl/GrGLSL.cpp',
274 '../src/gpu/gl/GrGLSL.h',
275 '../src/gpu/gl/GrGLStencilBuffer.cpp',
276 '../src/gpu/gl/GrGLStencilBuffer.h',
277 '../src/gpu/gl/GrGLTexture.cpp',
278 '../src/gpu/gl/GrGLTexture.h',
279 '../src/gpu/gl/GrGLUtil.cpp',
280 '../src/gpu/gl/GrGLVertexBuffer.cpp',
281 '../src/gpu/gl/GrGLVertexBuffer.h',
282 '../src/gpu/gl/GrGpuGL.cpp',
283 '../src/gpu/gl/GrGpuGL.h',
284 '../src/gpu/gl/GrGpuGLShaders.cpp',
285 '../src/gpu/gl/GrGpuGLShaders.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000286
robertphillips@google.comd91f3702012-03-28 18:22:01 +0000287 '../src/gpu/gl/debug/GrGLCreateDebugInterface.cpp',
288
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000289 '../src/gpu/gl/mac/GrGLCreateNativeInterface_mac.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000290
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000291 '../src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000292
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000293 '../src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp',
294
295 '../src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000296
djsollen@google.com58629292011-11-03 13:08:29 +0000297 '../src/gpu/android/GrGLCreateNativeInterface_android.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000298 ],
299 'defines': [
300 'GR_IMPLEMENTATION=1',
301 ],
302 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000303 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000304 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000305 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
306 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000307 ],
308 'link_settings': {
309 'libraries': [
310 '-lGL',
311 '-lX11',
312 ],
313 },
314 }],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000315 [ 'skia_mesa and skia_os == "linux"', {
316 'link_settings': {
317 'libraries': [
318 '-lOSMesa',
319 ],
320 },
321 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000322 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000323 'link_settings': {
324 'libraries': [
325 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
326 ],
327 },
328 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000329 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
330 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000331 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000332 }],
333 [ 'skia_mesa and skia_os == "mac"', {
334 'link_settings': {
335 'libraries': [
336 '$(SDKROOT)/usr/X11/lib/libOSMesa.dylib',
337 ],
338 },
339 'include_dirs': [
340 '$(SDKROOT)/usr/X11/include/',
341 ],
342 }],
343 [ 'not skia_mesa', {
344 'sources!': [
robertphillips@google.com78ff6b42012-03-28 19:37:51 +0000345 '../src/gpu/gl/mesa/GrGLCreateMesaInterface.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000346 ],
347 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000348 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000349 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000350 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
351 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000352 ],
353 }],
djsollen@google.com58629292011-11-03 13:08:29 +0000354 [ 'skia_os == "android"', {
355 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000356 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
357 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
djsollen@google.com58629292011-11-03 13:08:29 +0000358 ],
359 'link_settings': {
360 'libraries': [
361 '-lGLESv2',
362 '-lEGL',
djsollen@google.com58629292011-11-03 13:08:29 +0000363 ],
364 },
365 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000366 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000367 },
368 ],
369}
370
371# Local Variables:
372# tab-width:2
373# indent-tabs-mode:nil
374# End:
375# vim: set expandtab tabstop=2 shiftwidth=2: