blob: 8b30a1259bb1bdbd3f76194f0975b9b7b93dcd26 [file] [log] [blame]
epoger@google.comae85aea2011-05-31 13:50:51 +00001{
2 'includes': [
epoger@google.com5351b372011-07-01 17:16:26 +00003 'common.gypi',
epoger@google.comae85aea2011-05-31 13:50:51 +00004 ],
bsalomon@google.come2953132011-10-13 13:33:08 +00005 'target_defaults': {
6 'conditions': [
7 ['skia_os != "win"', {
8 'sources/': [ ['exclude', '_win.(h|cpp)$'],
9 ],
10 }],
11 ['skia_os != "mac"', {
12 'sources/': [ ['exclude', '_mac.(h|cpp)$'],
13 ],
14 }],
15 ['skia_os != "linux"', {
16 'sources/': [ ['exclude', '_unix.(h|cpp)$'],
17 ],
18 }],
19 ['skia_os != "ios"', {
20 'sources/': [ ['exclude', '_iOS.(h|cpp)$'],
21 ],
22 }],
23 ['skia_os != "android"', {
24 'sources/': [ ['exclude', '_android.(h|cpp)$'],
25 ],
26 }],
27 [ 'skia_os == "android"', {
28 'defines': [
29 'GR_ANDROID_BUILD=1',
30 ],
31 }],
32 [ 'skia_os == "mac"', {
33 'defines': [
34 'GR_MAC_BUILD=1',
35 ],
36 }],
37 [ 'skia_os == "linux"', {
38 'defines': [
39 'GR_LINUX_BUILD=1',
40 ],
41 }],
42 [ 'skia_os == "ios"', {
43 'defines': [
44 'GR_IOS_BUILD=1',
45 ],
46 }],
47 [ 'skia_os == "win"', {
48 'defines': [
49 'GR_WIN32_BUILD=1',
50 'GR_GL_FUNCTION_TYPE=__stdcall',
51 ],
52 }],
53 ],
54 'direct_dependent_settings': {
55 'conditions': [
56 [ 'skia_os == "android"', {
57 'defines': [
58 'GR_ANDROID_BUILD=1',
59 ],
60 }],
61 [ 'skia_os == "mac"', {
62 'defines': [
63 'GR_MAC_BUILD=1',
64 ],
65 }],
66 [ 'skia_os == "linux"', {
67 'defines': [
68 'GR_LINUX_BUILD=1',
69 ],
70 }],
71 [ 'skia_os == "ios"', {
72 'defines': [
73 'GR_IOS_BUILD=1',
74 ],
75 }],
76 [ 'skia_os == "win"', {
77 'defines': [
78 'GR_WIN32_BUILD=1',
79 'GR_GL_FUNCTION_TYPE=__stdcall',
80 ],
81 }],
82 ],
83 'include_dirs': [
84 '../include/gpu',
85 ],
86 },
87 },
epoger@google.comae85aea2011-05-31 13:50:51 +000088 'targets': [
89 {
90 'target_name': 'skgr',
91 'type': 'static_library',
92 'include_dirs': [
93 '../include/config',
94 '../include/core',
95 '../src/core',
96 '../include/gpu',
epoger@google.comae85aea2011-05-31 13:50:51 +000097 ],
98 'sources': [
bsalomon@google.com373a6632011-10-19 20:43:20 +000099 '../include/gpu/SkGLContext.h',
100 '../include/gpu/SkMesaGLContext.h',
101 '../include/gpu/SkNativeGLContext.h',
bsalomon@google.com74913722011-10-27 20:44:19 +0000102 '../include/gpu/SkNullGLContext.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000103 '../include/gpu/SkGpuCanvas.h',
104 '../include/gpu/SkGpuDevice.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000105 '../include/gpu/SkGr.h',
106 '../include/gpu/SkGrTexturePixelRef.h',
107
108 '../src/gpu/GrPrintf_skia.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000109 '../src/gpu/SkGLContext.cpp',
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',
bsalomon@google.com74913722011-10-27 20:44:19 +0000115 '../src/gpu/SkNullGLContext.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000116
djsollen@google.com58629292011-11-03 13:08:29 +0000117 '../src/gpu/android/SkNativeGLContext_android.cpp',
118
bsalomon@google.com373a6632011-10-19 20:43:20 +0000119 '../src/gpu/mac/SkNativeGLContext_mac.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000120
bsalomon@google.com373a6632011-10-19 20:43:20 +0000121 '../src/gpu/win/SkNativeGLContext_win.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000122
bsalomon@google.com373a6632011-10-19 20:43:20 +0000123 '../src/gpu/unix/SkNativeGLContext_unix.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000124
bsalomon@google.com373a6632011-10-19 20:43:20 +0000125 '../src/gpu/mesa/SkMesaGLContext.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000126 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000127 'conditions': [
128 [ 'not skia_mesa', {
129 'sources!': [
130 '../src/gpu/mesa/SkMesaGLContext.cpp',
131 ],
132 }],
133 [ 'skia_mesa and skia_os == "mac"', {
134 'include_dirs': [
135 '$(SDKROOT)/usr/X11/include/',
136 ],
137 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000138 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000139 },
140 {
141 'target_name': 'gr',
142 'type': 'static_library',
143 'include_dirs': [
epoger@google.comae85aea2011-05-31 13:50:51 +0000144 '../include/core',
145 '../include/config',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000146 '../include/gpu',
epoger@google.comae85aea2011-05-31 13:50:51 +0000147 ],
148 'dependencies': [
149 'libtess.gyp:libtess',
150 ],
151 'sources': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000152 '../include/gpu/GrClip.h',
153 '../include/gpu/GrClipIterator.h',
154 '../include/gpu/GrColor.h',
155 '../include/gpu/GrConfig.h',
156 '../include/gpu/GrContext.h',
157 '../include/gpu/GrFontScaler.h',
158 '../include/gpu/GrGLConfig.h',
159 '../include/gpu/GrGLConfig_chrome.h',
160 '../include/gpu/GrGLInterface.h',
161 '../include/gpu/GrGlyph.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000162 '../include/gpu/GrInstanceCounter.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000163 '../include/gpu/GrKey.h',
164 '../include/gpu/GrMatrix.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000165 '../include/gpu/GrNoncopyable.h',
166 '../include/gpu/GrPaint.h',
167 '../include/gpu/GrPath.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000168 '../include/gpu/GrPoint.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000169 '../include/gpu/GrRect.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000170 '../include/gpu/GrRefCnt.h',
171 '../include/gpu/GrRenderTarget.h',
172 '../include/gpu/GrResource.h',
173 '../include/gpu/GrSamplerState.h',
174 '../include/gpu/GrScalar.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000175 '../include/gpu/GrTextContext.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000176 '../include/gpu/GrTexture.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000177 '../include/gpu/GrTypes.h',
178 '../include/gpu/GrUserConfig.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000179
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000180 '../src/gpu/GrAAHairLinePathRenderer.cpp',
181 '../src/gpu/GrAAHairLinePathRenderer.h',
182 '../src/gpu/GrAddPathRenderers_aahairline.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000183 '../src/gpu/GrAllocator.h',
184 '../src/gpu/GrAllocPool.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000185 '../src/gpu/GrAllocPool.cpp',
186 '../src/gpu/GrAtlas.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000187 '../src/gpu/GrAtlas.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000188 '../src/gpu/GrBinHashKey.h',
189 '../src/gpu/GrBufferAllocPool.cpp',
190 '../src/gpu/GrBufferAllocPool.h',
191 '../src/gpu/GrClip.cpp',
192 '../src/gpu/GrContext.cpp',
193 '../src/gpu/GrDefaultPathRenderer.cpp',
194 '../src/gpu/GrDefaultPathRenderer.h',
tomhudson@google.com93813632011-10-27 20:21:16 +0000195 '../src/gpu/GrDrawState.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000196 '../src/gpu/GrDrawTarget.cpp',
197 '../src/gpu/GrDrawTarget.h',
198 '../src/gpu/GrGeometryBuffer.h',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000199 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
bsalomon@google.com74913722011-10-27 20:44:19 +0000200 '../src/gpu/GrGLCreateNullInterface.cpp',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000201 '../src/gpu/GrGLDefaultInterface_none.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000202 '../src/gpu/GrGLDefaultInterface_native.cpp',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000203 '../src/gpu/GrGLIndexBuffer.cpp',
204 '../src/gpu/GrGLIndexBuffer.h',
205 '../src/gpu/GrGLInterface.cpp',
206 '../src/gpu/GrGLIRect.h',
207 '../src/gpu/GrGLProgram.cpp',
208 '../src/gpu/GrGLProgram.h',
209 '../src/gpu/GrGLRenderTarget.cpp',
210 '../src/gpu/GrGLRenderTarget.h',
211 '../src/gpu/GrGLShaderVar.h',
212 '../src/gpu/GrGLStencilBuffer.cpp',
213 '../src/gpu/GrGLStencilBuffer.h',
214 '../src/gpu/GrGLTexture.cpp',
215 '../src/gpu/GrGLTexture.h',
216 '../src/gpu/GrGLUtil.cpp',
217 '../src/gpu/GrGLVertexBuffer.cpp',
218 '../src/gpu/GrGLVertexBuffer.h',
219 '../src/gpu/GrGpu.cpp',
220 '../src/gpu/GrGpu.h',
221 '../src/gpu/GrGpuFactory.cpp',
222 '../src/gpu/GrGpuGL.cpp',
223 '../src/gpu/GrGpuGL.h',
224 '../src/gpu/GrGpuGLFixed.cpp',
225 '../src/gpu/GrGpuGLFixed.h',
226 '../src/gpu/GrGpuGLShaders.cpp',
227 '../src/gpu/GrGpuGLShaders.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000228 '../src/gpu/GrGpuVertex.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000229 '../src/gpu/GrIndexBuffer.h',
230 '../src/gpu/GrInOrderDrawBuffer.cpp',
231 '../src/gpu/GrInOrderDrawBuffer.h',
232 '../src/gpu/GrMatrix.cpp',
233 '../src/gpu/GrMemory.cpp',
234 '../src/gpu/GrPathRendererChain.cpp',
235 '../src/gpu/GrPathRendererChain.h',
236 '../src/gpu/GrPathRenderer.cpp',
237 '../src/gpu/GrPathRenderer.h',
238 '../src/gpu/GrPathUtils.cpp',
239 '../src/gpu/GrPathUtils.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000240 '../src/gpu/GrPlotMgr.h',
241 '../src/gpu/GrRandom.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000242 '../src/gpu/GrRectanizer.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000243 '../src/gpu/GrRectanizer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000244 '../src/gpu/GrRedBlackTree.h',
245 '../src/gpu/GrRenderTarget.cpp',
246 '../src/gpu/GrResource.cpp',
247 '../src/gpu/GrResourceCache.cpp',
248 '../src/gpu/GrResourceCache.h',
249 '../src/gpu/GrStencil.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000250 '../src/gpu/GrStencil.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000251 '../src/gpu/GrStencilBuffer.cpp',
252 '../src/gpu/GrStencilBuffer.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000253 '../src/gpu/GrStringBuilder.h',
254 '../src/gpu/GrTBSearch.h',
255 '../src/gpu/GrTDArray.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000256 '../src/gpu/GrTesselatedPathRenderer.cpp',
257 '../src/gpu/GrTesselatedPathRenderer.h',
258 '../src/gpu/GrTextContext.cpp',
259 '../src/gpu/GrTextStrike.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000260 '../src/gpu/GrTextStrike.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000261 '../src/gpu/GrTextStrike_impl.h',
262 '../src/gpu/GrTexture.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000263 '../src/gpu/GrTHashCache.h',
264 '../src/gpu/GrTLList.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000265 '../src/gpu/GrVertexBuffer.h',
266 '../src/gpu/gr_unittests.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000267
epoger@google.comae85aea2011-05-31 13:50:51 +0000268
bsalomon@google.com373a6632011-10-19 20:43:20 +0000269 '../src/gpu/mac/GrGLCreateNativeInterface_mac.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000270
bsalomon@google.com373a6632011-10-19 20:43:20 +0000271 '../src/gpu/win/GrGLCreateNativeInterface_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000272
bsalomon@google.com373a6632011-10-19 20:43:20 +0000273 '../src/gpu/unix/GrGLCreateNativeInterface_unix.cpp',
274
djsollen@google.com58629292011-11-03 13:08:29 +0000275 '../src/gpu/android/GrGLCreateNativeInterface_android.cpp',
276
bsalomon@google.com373a6632011-10-19 20:43:20 +0000277 '../src/gpu/mesa/GrGLCreateMesaInterface.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000278 ],
279 'defines': [
280 'GR_IMPLEMENTATION=1',
281 ],
282 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000283 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000284 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000285 '../src/gpu/GrGLDefaultInterface_none.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000286 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000287 ],
288 'link_settings': {
289 'libraries': [
290 '-lGL',
291 '-lX11',
292 ],
293 },
294 }],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000295 [ 'skia_mesa and skia_os == "linux"', {
296 'link_settings': {
297 'libraries': [
298 '-lOSMesa',
299 ],
300 },
301 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000302 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000303 'link_settings': {
304 'libraries': [
305 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
306 ],
307 },
308 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000309 '../src/gpu/GrGLDefaultInterface_none.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000310 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000311 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000312 }],
313 [ 'skia_mesa and skia_os == "mac"', {
314 'link_settings': {
315 'libraries': [
316 '$(SDKROOT)/usr/X11/lib/libOSMesa.dylib',
317 ],
318 },
319 'include_dirs': [
320 '$(SDKROOT)/usr/X11/include/',
321 ],
322 }],
323 [ 'not skia_mesa', {
324 'sources!': [
325 '../src/gpu/mesa/GrGLCreateMesaInterface.cpp',
326 ],
327 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000328 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000329 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000330 '../src/gpu/GrGLDefaultInterface_none.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000331 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000332 ],
333 }],
djsollen@google.com58629292011-11-03 13:08:29 +0000334 [ 'skia_os == "android"', {
335 'sources!': [
336 '../src/gpu/GrGLDefaultInterface_none.cpp',
337 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
338 ],
339 'link_settings': {
340 'libraries': [
341 '-lGLESv2',
342 '-lEGL',
343 '-shared',
344 ],
345 },
346 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000347 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000348 },
349 ],
350}
351
352# Local Variables:
353# tab-width:2
354# indent-tabs-mode:nil
355# End:
356# vim: set expandtab tabstop=2 shiftwidth=2: