blob: 275a792c28e9731fdb2ffd6ec63c2e09130faf16 [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': [
104 '../include/gpu/SkGpuCanvas.h',
105 '../include/gpu/SkGpuDevice.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000106 '../include/gpu/SkGr.h',
107 '../include/gpu/SkGrTexturePixelRef.h',
108
tomhudson@google.com40725562012-02-10 21:35:06 +0000109 '../include/gpu/SkGLContext.h',
110 '../include/gpu/SkMesaGLContext.h',
111 '../include/gpu/SkNativeGLContext.h',
112 '../include/gpu/SkNullGLContext.h',
113
epoger@google.comae85aea2011-05-31 13:50:51 +0000114 '../src/gpu/GrPrintf_skia.cpp',
115 '../src/gpu/SkGpuCanvas.cpp',
116 '../src/gpu/SkGpuDevice.cpp',
117 '../src/gpu/SkGr.cpp',
118 '../src/gpu/SkGrFontScaler.cpp',
119 '../src/gpu/SkGrTexturePixelRef.cpp',
tomhudson@google.com40725562012-02-10 21:35:06 +0000120
121 '../src/gpu/gl/SkGLContext.cpp',
122 '../src/gpu/gl/SkNullGLContext.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000123
djsollen@google.com58629292011-11-03 13:08:29 +0000124 '../src/gpu/android/SkNativeGLContext_android.cpp',
125
bsalomon@google.com373a6632011-10-19 20:43:20 +0000126 '../src/gpu/mac/SkNativeGLContext_mac.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000127
bsalomon@google.com373a6632011-10-19 20:43:20 +0000128 '../src/gpu/win/SkNativeGLContext_win.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000129
bsalomon@google.com373a6632011-10-19 20:43:20 +0000130 '../src/gpu/unix/SkNativeGLContext_unix.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000131
bsalomon@google.com373a6632011-10-19 20:43:20 +0000132 '../src/gpu/mesa/SkMesaGLContext.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000133 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000134 'conditions': [
135 [ 'not skia_mesa', {
136 'sources!': [
137 '../src/gpu/mesa/SkMesaGLContext.cpp',
138 ],
139 }],
140 [ 'skia_mesa and skia_os == "mac"', {
141 'include_dirs': [
142 '$(SDKROOT)/usr/X11/include/',
143 ],
144 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000145 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000146 },
147 {
148 'target_name': 'gr',
149 'type': 'static_library',
150 'include_dirs': [
epoger@google.comae85aea2011-05-31 13:50:51 +0000151 '../include/core',
152 '../include/config',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000153 '../include/gpu',
bsalomon@google.com150d2842012-01-12 20:19:56 +0000154 '../src/core', # SkRasterClip.h
epoger@google.comae85aea2011-05-31 13:50:51 +0000155 ],
156 'dependencies': [
157 'libtess.gyp:libtess',
158 ],
159 'sources': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000160 '../include/gpu/GrClip.h',
161 '../include/gpu/GrClipIterator.h',
162 '../include/gpu/GrColor.h',
163 '../include/gpu/GrConfig.h',
164 '../include/gpu/GrContext.h',
165 '../include/gpu/GrFontScaler.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000166 '../include/gpu/GrGlyph.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000167 '../include/gpu/GrInstanceCounter.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000168 '../include/gpu/GrKey.h',
169 '../include/gpu/GrMatrix.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000170 '../include/gpu/GrNoncopyable.h',
171 '../include/gpu/GrPaint.h',
172 '../include/gpu/GrPath.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000173 '../include/gpu/GrPoint.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000174 '../include/gpu/GrRect.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000175 '../include/gpu/GrRefCnt.h',
176 '../include/gpu/GrRenderTarget.h',
177 '../include/gpu/GrResource.h',
178 '../include/gpu/GrSamplerState.h',
179 '../include/gpu/GrScalar.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000180 '../include/gpu/GrTextContext.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000181 '../include/gpu/GrTexture.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000182 '../include/gpu/GrTypes.h',
183 '../include/gpu/GrUserConfig.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000184
tomhudson@google.com40725562012-02-10 21:35:06 +0000185 '../include/gpu/GrGLConfig.h',
186 '../include/gpu/GrGLConfig_chrome.h',
187 '../include/gpu/GrGLDefines.h',
188 '../include/gpu/GrGLInterface.h',
189
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000190 '../src/gpu/GrAAHairLinePathRenderer.cpp',
191 '../src/gpu/GrAAHairLinePathRenderer.h',
bsalomon@google.com69cc6ad2012-01-17 14:25:10 +0000192 '../src/gpu/GrAAConvexPathRenderer.cpp',
193 '../src/gpu/GrAAConvexPathRenderer.h',
194 '../src/gpu/GrAddPathRenderers_default.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000195 '../src/gpu/GrAllocator.h',
196 '../src/gpu/GrAllocPool.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000197 '../src/gpu/GrAllocPool.cpp',
198 '../src/gpu/GrAtlas.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000199 '../src/gpu/GrAtlas.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000200 '../src/gpu/GrBinHashKey.h',
201 '../src/gpu/GrBufferAllocPool.cpp',
202 '../src/gpu/GrBufferAllocPool.h',
203 '../src/gpu/GrClip.cpp',
204 '../src/gpu/GrContext.cpp',
205 '../src/gpu/GrDefaultPathRenderer.cpp',
206 '../src/gpu/GrDefaultPathRenderer.h',
tomhudson@google.com93813632011-10-27 20:21:16 +0000207 '../src/gpu/GrDrawState.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000208 '../src/gpu/GrDrawTarget.cpp',
209 '../src/gpu/GrDrawTarget.h',
210 '../src/gpu/GrGeometryBuffer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000211 '../src/gpu/GrGpu.cpp',
212 '../src/gpu/GrGpu.h',
213 '../src/gpu/GrGpuFactory.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000214 '../src/gpu/GrGpuVertex.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000215 '../src/gpu/GrIndexBuffer.h',
216 '../src/gpu/GrInOrderDrawBuffer.cpp',
217 '../src/gpu/GrInOrderDrawBuffer.h',
218 '../src/gpu/GrMatrix.cpp',
219 '../src/gpu/GrMemory.cpp',
220 '../src/gpu/GrPathRendererChain.cpp',
221 '../src/gpu/GrPathRendererChain.h',
222 '../src/gpu/GrPathRenderer.cpp',
223 '../src/gpu/GrPathRenderer.h',
224 '../src/gpu/GrPathUtils.cpp',
225 '../src/gpu/GrPathUtils.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000226 '../src/gpu/GrPlotMgr.h',
227 '../src/gpu/GrRandom.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000228 '../src/gpu/GrRectanizer.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000229 '../src/gpu/GrRectanizer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000230 '../src/gpu/GrRedBlackTree.h',
231 '../src/gpu/GrRenderTarget.cpp',
232 '../src/gpu/GrResource.cpp',
233 '../src/gpu/GrResourceCache.cpp',
234 '../src/gpu/GrResourceCache.h',
235 '../src/gpu/GrStencil.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000236 '../src/gpu/GrStencil.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000237 '../src/gpu/GrStencilBuffer.cpp',
238 '../src/gpu/GrStencilBuffer.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000239 '../src/gpu/GrStringBuilder.h',
240 '../src/gpu/GrTBSearch.h',
241 '../src/gpu/GrTDArray.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000242 '../src/gpu/GrTesselatedPathRenderer.cpp',
243 '../src/gpu/GrTesselatedPathRenderer.h',
244 '../src/gpu/GrTextContext.cpp',
245 '../src/gpu/GrTextStrike.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000246 '../src/gpu/GrTextStrike.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000247 '../src/gpu/GrTextStrike_impl.h',
248 '../src/gpu/GrTexture.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000249 '../src/gpu/GrTHashCache.h',
250 '../src/gpu/GrTLList.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000251 '../src/gpu/GrVertexBuffer.h',
252 '../src/gpu/gr_unittests.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000253
tomhudson@google.com40725562012-02-10 21:35:06 +0000254 '../src/gpu/gl/GrGLContextInfo.cpp',
255 '../src/gpu/gl/GrGLContextInfo.h',
256 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
257 '../src/gpu/gl/GrGLCreateNullInterface.cpp',
258 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
259 '../src/gpu/gl/GrGLDefaultInterface_native.cpp',
260 '../src/gpu/gl/GrGLIndexBuffer.cpp',
261 '../src/gpu/gl/GrGLIndexBuffer.h',
262 '../src/gpu/gl/GrGLInterface.cpp',
263 '../src/gpu/gl/GrGLIRect.h',
264 '../src/gpu/gl/GrGLProgram.cpp',
265 '../src/gpu/gl/GrGLProgram.h',
266 '../src/gpu/gl/GrGLRenderTarget.cpp',
267 '../src/gpu/gl/GrGLRenderTarget.h',
268 '../src/gpu/gl/GrGLShaderVar.h',
269 '../src/gpu/gl/GrGLSL.cpp',
270 '../src/gpu/gl/GrGLSL.h',
271 '../src/gpu/gl/GrGLStencilBuffer.cpp',
272 '../src/gpu/gl/GrGLStencilBuffer.h',
273 '../src/gpu/gl/GrGLTexture.cpp',
274 '../src/gpu/gl/GrGLTexture.h',
275 '../src/gpu/gl/GrGLUtil.cpp',
276 '../src/gpu/gl/GrGLVertexBuffer.cpp',
277 '../src/gpu/gl/GrGLVertexBuffer.h',
278 '../src/gpu/gl/GrGpuGL.cpp',
279 '../src/gpu/gl/GrGpuGL.h',
280 '../src/gpu/gl/GrGpuGLShaders.cpp',
281 '../src/gpu/gl/GrGpuGLShaders.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000282
bsalomon@google.com373a6632011-10-19 20:43:20 +0000283 '../src/gpu/mac/GrGLCreateNativeInterface_mac.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000284
bsalomon@google.com373a6632011-10-19 20:43:20 +0000285 '../src/gpu/win/GrGLCreateNativeInterface_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000286
bsalomon@google.com373a6632011-10-19 20:43:20 +0000287 '../src/gpu/unix/GrGLCreateNativeInterface_unix.cpp',
288
djsollen@google.com58629292011-11-03 13:08:29 +0000289 '../src/gpu/android/GrGLCreateNativeInterface_android.cpp',
290
bsalomon@google.com373a6632011-10-19 20:43:20 +0000291 '../src/gpu/mesa/GrGLCreateMesaInterface.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000292 ],
293 'defines': [
294 'GR_IMPLEMENTATION=1',
295 ],
296 'conditions': [
bsalomon@google.com9f169a42012-01-12 20:56:52 +0000297 [ 'skia_gpu_disable_osaa', {
298 'defines': [
299 'GR_USE_OFFSCREEN_AA=0',
300 ],
301 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000302 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000303 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000304 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
305 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000306 ],
307 'link_settings': {
308 'libraries': [
309 '-lGL',
310 '-lX11',
311 ],
312 },
313 }],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000314 [ 'skia_mesa and skia_os == "linux"', {
315 'link_settings': {
316 'libraries': [
317 '-lOSMesa',
318 ],
319 },
320 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000321 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000322 'link_settings': {
323 'libraries': [
324 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
325 ],
326 },
327 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000328 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
329 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000330 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000331 }],
332 [ 'skia_mesa and skia_os == "mac"', {
333 'link_settings': {
334 'libraries': [
335 '$(SDKROOT)/usr/X11/lib/libOSMesa.dylib',
336 ],
337 },
338 'include_dirs': [
339 '$(SDKROOT)/usr/X11/include/',
340 ],
341 }],
342 [ 'not skia_mesa', {
343 'sources!': [
344 '../src/gpu/mesa/GrGLCreateMesaInterface.cpp',
345 ],
346 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000347 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000348 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000349 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
350 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000351 ],
352 }],
djsollen@google.com58629292011-11-03 13:08:29 +0000353 [ 'skia_os == "android"', {
354 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000355 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
356 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
djsollen@google.com58629292011-11-03 13:08:29 +0000357 ],
358 'link_settings': {
359 'libraries': [
360 '-lGLESv2',
361 '-lEGL',
djsollen@google.com58629292011-11-03 13:08:29 +0000362 ],
363 },
364 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000365 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000366 },
367 ],
368}
369
370# Local Variables:
371# tab-width:2
372# indent-tabs-mode:nil
373# End:
374# vim: set expandtab tabstop=2 shiftwidth=2: