blob: 132b8e96ab4504285d33e28bdb9ece52cfb5484c [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',
epoger@google.comae85aea2011-05-31 13:50:51 +0000102 '../include/gpu/SkGpuCanvas.h',
103 '../include/gpu/SkGpuDevice.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000104 '../include/gpu/SkGr.h',
105 '../include/gpu/SkGrTexturePixelRef.h',
106
107 '../src/gpu/GrPrintf_skia.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000108 '../src/gpu/SkGLContext.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000109 '../src/gpu/SkGpuCanvas.cpp',
110 '../src/gpu/SkGpuDevice.cpp',
111 '../src/gpu/SkGr.cpp',
112 '../src/gpu/SkGrFontScaler.cpp',
113 '../src/gpu/SkGrTexturePixelRef.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000114
bsalomon@google.com373a6632011-10-19 20:43:20 +0000115 '../src/gpu/mac/SkNativeGLContext_mac.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000116
bsalomon@google.com373a6632011-10-19 20:43:20 +0000117 '../src/gpu/win/SkNativeGLContext_win.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000118
bsalomon@google.com373a6632011-10-19 20:43:20 +0000119 '../src/gpu/unix/SkNativeGLContext_unix.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000120
bsalomon@google.com373a6632011-10-19 20:43:20 +0000121 '../src/gpu/mesa/SkMesaGLContext.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000122 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000123 'conditions': [
124 [ 'not skia_mesa', {
125 'sources!': [
126 '../src/gpu/mesa/SkMesaGLContext.cpp',
127 ],
128 }],
129 [ 'skia_mesa and skia_os == "mac"', {
130 'include_dirs': [
131 '$(SDKROOT)/usr/X11/include/',
132 ],
133 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000134 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000135 },
136 {
137 'target_name': 'gr',
138 'type': 'static_library',
139 'include_dirs': [
epoger@google.comae85aea2011-05-31 13:50:51 +0000140 '../include/core',
141 '../include/config',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000142 '../include/gpu',
epoger@google.comae85aea2011-05-31 13:50:51 +0000143 ],
144 'dependencies': [
145 'libtess.gyp:libtess',
146 ],
147 'sources': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000148 '../include/gpu/GrAllocator.h',
149 '../include/gpu/GrAllocPool.h',
150 '../include/gpu/GrAtlas.h',
151 '../include/gpu/GrClip.h',
152 '../include/gpu/GrClipIterator.h',
153 '../include/gpu/GrColor.h',
154 '../include/gpu/GrConfig.h',
155 '../include/gpu/GrContext.h',
156 '../include/gpu/GrFontScaler.h',
157 '../include/gpu/GrGLConfig.h',
158 '../include/gpu/GrGLConfig_chrome.h',
159 '../include/gpu/GrGLInterface.h',
160 '../include/gpu/GrGlyph.h',
161 '../include/gpu/GrGpuVertex.h',
162 '../include/gpu/GrInstanceCounter.h',
163 '../include/gpu/GrIPoint.h',
164 '../include/gpu/GrKey.h',
165 '../include/gpu/GrMatrix.h',
166 '../include/gpu/GrMesh.h',
167 '../include/gpu/GrNoncopyable.h',
168 '../include/gpu/GrPaint.h',
169 '../include/gpu/GrPath.h',
170 '../include/gpu/GrPathSink.h',
171 '../include/gpu/GrPlotMgr.h',
172 '../include/gpu/GrPoint.h',
173 '../include/gpu/GrRandom.h',
174 '../include/gpu/GrRect.h',
175 '../include/gpu/GrRectanizer.h',
176 '../include/gpu/GrRefCnt.h',
177 '../include/gpu/GrRenderTarget.h',
178 '../include/gpu/GrResource.h',
179 '../include/gpu/GrSamplerState.h',
180 '../include/gpu/GrScalar.h',
181 '../include/gpu/GrStencil.h',
182 '../include/gpu/GrStopwatch.h',
183 '../include/gpu/GrStringBuilder.h',
184 '../include/gpu/GrTBSearch.h',
185 '../include/gpu/GrTDArray.h',
186 '../include/gpu/GrTextContext.h',
187 '../include/gpu/GrTextStrike.h',
188 '../include/gpu/GrTexture.h',
189 '../include/gpu/GrTHashCache.h',
190 '../include/gpu/GrTLList.h',
191 '../include/gpu/GrTypes.h',
192 '../include/gpu/GrUserConfig.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000193
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000194 '../src/gpu/GrAAHairLinePathRenderer.cpp',
195 '../src/gpu/GrAAHairLinePathRenderer.h',
196 '../src/gpu/GrAddPathRenderers_aahairline.cpp',
197 '../src/gpu/GrAllocPool.cpp',
198 '../src/gpu/GrAtlas.cpp',
199 '../src/gpu/GrBinHashKey.h',
200 '../src/gpu/GrBufferAllocPool.cpp',
201 '../src/gpu/GrBufferAllocPool.h',
202 '../src/gpu/GrClip.cpp',
203 '../src/gpu/GrContext.cpp',
204 '../src/gpu/GrDefaultPathRenderer.cpp',
205 '../src/gpu/GrDefaultPathRenderer.h',
206 '../src/gpu/GrDrawTarget.cpp',
207 '../src/gpu/GrDrawTarget.h',
208 '../src/gpu/GrGeometryBuffer.h',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000209 '../src/gpu/GrGLCreateNativeInterface_none.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',
221 '../src/gpu/GrGLStencilBuffer.cpp',
222 '../src/gpu/GrGLStencilBuffer.h',
223 '../src/gpu/GrGLTexture.cpp',
224 '../src/gpu/GrGLTexture.h',
225 '../src/gpu/GrGLUtil.cpp',
226 '../src/gpu/GrGLVertexBuffer.cpp',
227 '../src/gpu/GrGLVertexBuffer.h',
228 '../src/gpu/GrGpu.cpp',
229 '../src/gpu/GrGpu.h',
230 '../src/gpu/GrGpuFactory.cpp',
231 '../src/gpu/GrGpuGL.cpp',
232 '../src/gpu/GrGpuGL.h',
233 '../src/gpu/GrGpuGLFixed.cpp',
234 '../src/gpu/GrGpuGLFixed.h',
235 '../src/gpu/GrGpuGLShaders.cpp',
236 '../src/gpu/GrGpuGLShaders.h',
237 '../src/gpu/GrIndexBuffer.h',
238 '../src/gpu/GrInOrderDrawBuffer.cpp',
239 '../src/gpu/GrInOrderDrawBuffer.h',
240 '../src/gpu/GrMatrix.cpp',
241 '../src/gpu/GrMemory.cpp',
242 '../src/gpu/GrPathRendererChain.cpp',
243 '../src/gpu/GrPathRendererChain.h',
244 '../src/gpu/GrPathRenderer.cpp',
245 '../src/gpu/GrPathRenderer.h',
246 '../src/gpu/GrPathUtils.cpp',
247 '../src/gpu/GrPathUtils.h',
248 '../src/gpu/GrRectanizer.cpp',
249 '../src/gpu/GrRedBlackTree.h',
250 '../src/gpu/GrRenderTarget.cpp',
251 '../src/gpu/GrResource.cpp',
252 '../src/gpu/GrResourceCache.cpp',
253 '../src/gpu/GrResourceCache.h',
254 '../src/gpu/GrStencil.cpp',
255 '../src/gpu/GrStencilBuffer.cpp',
256 '../src/gpu/GrStencilBuffer.h',
257 '../src/gpu/GrTesselatedPathRenderer.cpp',
258 '../src/gpu/GrTesselatedPathRenderer.h',
259 '../src/gpu/GrTextContext.cpp',
260 '../src/gpu/GrTextStrike.cpp',
261 '../src/gpu/GrTextStrike_impl.h',
262 '../src/gpu/GrTexture.cpp',
263 '../src/gpu/GrVertexBuffer.h',
264 '../src/gpu/gr_unittests.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000265
epoger@google.comae85aea2011-05-31 13:50:51 +0000266
bsalomon@google.com373a6632011-10-19 20:43:20 +0000267 '../src/gpu/mac/GrGLCreateNativeInterface_mac.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000268
bsalomon@google.com373a6632011-10-19 20:43:20 +0000269 '../src/gpu/win/GrGLCreateNativeInterface_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000270
bsalomon@google.com373a6632011-10-19 20:43:20 +0000271 '../src/gpu/unix/GrGLCreateNativeInterface_unix.cpp',
272
273 '../src/gpu/mesa/GrGLCreateMesaInterface.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000274 ],
275 'defines': [
276 'GR_IMPLEMENTATION=1',
277 ],
278 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000279 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000280 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000281 '../src/gpu/GrGLDefaultInterface_none.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000282 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000283 ],
284 'link_settings': {
285 'libraries': [
286 '-lGL',
287 '-lX11',
288 ],
289 },
290 }],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000291 [ 'skia_mesa and skia_os == "linux"', {
292 'link_settings': {
293 'libraries': [
294 '-lOSMesa',
295 ],
296 },
297 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000298 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000299 'link_settings': {
300 'libraries': [
301 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
302 ],
303 },
304 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000305 '../src/gpu/GrGLDefaultInterface_none.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000306 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000307 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000308 }],
309 [ 'skia_mesa and skia_os == "mac"', {
310 'link_settings': {
311 'libraries': [
312 '$(SDKROOT)/usr/X11/lib/libOSMesa.dylib',
313 ],
314 },
315 'include_dirs': [
316 '$(SDKROOT)/usr/X11/include/',
317 ],
318 }],
319 [ 'not skia_mesa', {
320 'sources!': [
321 '../src/gpu/mesa/GrGLCreateMesaInterface.cpp',
322 ],
323 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000324 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000325 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000326 '../src/gpu/GrGLDefaultInterface_none.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000327 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000328 ],
329 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000330 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000331 },
332 ],
333}
334
335# Local Variables:
336# tab-width:2
337# indent-tabs-mode:nil
338# End:
339# vim: set expandtab tabstop=2 shiftwidth=2: