blob: b66bfc6d6f3e201feccb6a140a3fb713147ac874 [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/GrClip.h',
149 '../include/gpu/GrClipIterator.h',
150 '../include/gpu/GrColor.h',
151 '../include/gpu/GrConfig.h',
152 '../include/gpu/GrContext.h',
153 '../include/gpu/GrFontScaler.h',
154 '../include/gpu/GrGLConfig.h',
155 '../include/gpu/GrGLConfig_chrome.h',
156 '../include/gpu/GrGLInterface.h',
157 '../include/gpu/GrGlyph.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000158 '../include/gpu/GrInstanceCounter.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000159 '../include/gpu/GrKey.h',
160 '../include/gpu/GrMatrix.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000161 '../include/gpu/GrNoncopyable.h',
162 '../include/gpu/GrPaint.h',
163 '../include/gpu/GrPath.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000164 '../include/gpu/GrPoint.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000165 '../include/gpu/GrRect.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000166 '../include/gpu/GrRefCnt.h',
167 '../include/gpu/GrRenderTarget.h',
168 '../include/gpu/GrResource.h',
169 '../include/gpu/GrSamplerState.h',
170 '../include/gpu/GrScalar.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000171 '../include/gpu/GrTextContext.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000172 '../include/gpu/GrTexture.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000173 '../include/gpu/GrTypes.h',
174 '../include/gpu/GrUserConfig.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000175
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000176 '../src/gpu/GrAAHairLinePathRenderer.cpp',
177 '../src/gpu/GrAAHairLinePathRenderer.h',
178 '../src/gpu/GrAddPathRenderers_aahairline.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000179 '../src/gpu/GrAllocator.h',
180 '../src/gpu/GrAllocPool.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000181 '../src/gpu/GrAllocPool.cpp',
182 '../src/gpu/GrAtlas.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000183 '../src/gpu/GrAtlas.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000184 '../src/gpu/GrBinHashKey.h',
185 '../src/gpu/GrBufferAllocPool.cpp',
186 '../src/gpu/GrBufferAllocPool.h',
187 '../src/gpu/GrClip.cpp',
188 '../src/gpu/GrContext.cpp',
189 '../src/gpu/GrDefaultPathRenderer.cpp',
190 '../src/gpu/GrDefaultPathRenderer.h',
tomhudson@google.com93813632011-10-27 20:21:16 +0000191 '../src/gpu/GrDrawState.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000192 '../src/gpu/GrDrawTarget.cpp',
193 '../src/gpu/GrDrawTarget.h',
194 '../src/gpu/GrGeometryBuffer.h',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000195 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000196 '../src/gpu/GrGLDefaultInterface_none.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000197 '../src/gpu/GrGLDefaultInterface_native.cpp',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000198 '../src/gpu/GrGLIndexBuffer.cpp',
199 '../src/gpu/GrGLIndexBuffer.h',
200 '../src/gpu/GrGLInterface.cpp',
201 '../src/gpu/GrGLIRect.h',
202 '../src/gpu/GrGLProgram.cpp',
203 '../src/gpu/GrGLProgram.h',
204 '../src/gpu/GrGLRenderTarget.cpp',
205 '../src/gpu/GrGLRenderTarget.h',
206 '../src/gpu/GrGLShaderVar.h',
207 '../src/gpu/GrGLStencilBuffer.cpp',
208 '../src/gpu/GrGLStencilBuffer.h',
209 '../src/gpu/GrGLTexture.cpp',
210 '../src/gpu/GrGLTexture.h',
211 '../src/gpu/GrGLUtil.cpp',
212 '../src/gpu/GrGLVertexBuffer.cpp',
213 '../src/gpu/GrGLVertexBuffer.h',
214 '../src/gpu/GrGpu.cpp',
215 '../src/gpu/GrGpu.h',
216 '../src/gpu/GrGpuFactory.cpp',
217 '../src/gpu/GrGpuGL.cpp',
218 '../src/gpu/GrGpuGL.h',
219 '../src/gpu/GrGpuGLFixed.cpp',
220 '../src/gpu/GrGpuGLFixed.h',
221 '../src/gpu/GrGpuGLShaders.cpp',
222 '../src/gpu/GrGpuGLShaders.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000223 '../src/gpu/GrGpuVertex.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000224 '../src/gpu/GrIndexBuffer.h',
225 '../src/gpu/GrInOrderDrawBuffer.cpp',
226 '../src/gpu/GrInOrderDrawBuffer.h',
227 '../src/gpu/GrMatrix.cpp',
228 '../src/gpu/GrMemory.cpp',
229 '../src/gpu/GrPathRendererChain.cpp',
230 '../src/gpu/GrPathRendererChain.h',
231 '../src/gpu/GrPathRenderer.cpp',
232 '../src/gpu/GrPathRenderer.h',
233 '../src/gpu/GrPathUtils.cpp',
234 '../src/gpu/GrPathUtils.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000235 '../src/gpu/GrPlotMgr.h',
236 '../src/gpu/GrRandom.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000237 '../src/gpu/GrRectanizer.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000238 '../src/gpu/GrRectanizer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000239 '../src/gpu/GrRedBlackTree.h',
240 '../src/gpu/GrRenderTarget.cpp',
241 '../src/gpu/GrResource.cpp',
242 '../src/gpu/GrResourceCache.cpp',
243 '../src/gpu/GrResourceCache.h',
244 '../src/gpu/GrStencil.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000245 '../src/gpu/GrStencil.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000246 '../src/gpu/GrStencilBuffer.cpp',
247 '../src/gpu/GrStencilBuffer.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000248 '../src/gpu/GrStringBuilder.h',
249 '../src/gpu/GrTBSearch.h',
250 '../src/gpu/GrTDArray.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000251 '../src/gpu/GrTesselatedPathRenderer.cpp',
252 '../src/gpu/GrTesselatedPathRenderer.h',
253 '../src/gpu/GrTextContext.cpp',
254 '../src/gpu/GrTextStrike.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000255 '../src/gpu/GrTextStrike.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000256 '../src/gpu/GrTextStrike_impl.h',
257 '../src/gpu/GrTexture.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000258 '../src/gpu/GrTHashCache.h',
259 '../src/gpu/GrTLList.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000260 '../src/gpu/GrVertexBuffer.h',
261 '../src/gpu/gr_unittests.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000262
epoger@google.comae85aea2011-05-31 13:50:51 +0000263
bsalomon@google.com373a6632011-10-19 20:43:20 +0000264 '../src/gpu/mac/GrGLCreateNativeInterface_mac.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000265
bsalomon@google.com373a6632011-10-19 20:43:20 +0000266 '../src/gpu/win/GrGLCreateNativeInterface_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000267
bsalomon@google.com373a6632011-10-19 20:43:20 +0000268 '../src/gpu/unix/GrGLCreateNativeInterface_unix.cpp',
269
270 '../src/gpu/mesa/GrGLCreateMesaInterface.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000271 ],
272 'defines': [
273 'GR_IMPLEMENTATION=1',
274 ],
275 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000276 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000277 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000278 '../src/gpu/GrGLDefaultInterface_none.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000279 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000280 ],
281 'link_settings': {
282 'libraries': [
283 '-lGL',
284 '-lX11',
285 ],
286 },
287 }],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000288 [ 'skia_mesa and skia_os == "linux"', {
289 'link_settings': {
290 'libraries': [
291 '-lOSMesa',
292 ],
293 },
294 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000295 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000296 'link_settings': {
297 'libraries': [
298 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
299 ],
300 },
301 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000302 '../src/gpu/GrGLDefaultInterface_none.cpp',
bsalomon@google.com373a6632011-10-19 20:43:20 +0000303 '../src/gpu/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000304 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000305 }],
306 [ 'skia_mesa and skia_os == "mac"', {
307 'link_settings': {
308 'libraries': [
309 '$(SDKROOT)/usr/X11/lib/libOSMesa.dylib',
310 ],
311 },
312 'include_dirs': [
313 '$(SDKROOT)/usr/X11/include/',
314 ],
315 }],
316 [ 'not skia_mesa', {
317 'sources!': [
318 '../src/gpu/mesa/GrGLCreateMesaInterface.cpp',
319 ],
320 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000321 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000322 '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 ],
326 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000327 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000328 },
329 ],
330}
331
332# Local Variables:
333# tab-width:2
334# indent-tabs-mode:nil
335# End:
336# vim: set expandtab tabstop=2 shiftwidth=2: