blob: 24e8f01283728cc19d476cbd4d5cb9a701025202 [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 ],
5 'targets': [
6 {
7 'target_name': 'skgr',
8 'type': 'static_library',
9 'include_dirs': [
10 '../include/config',
11 '../include/core',
12 '../src/core',
13 '../include/gpu',
14 '../gpu/include',
15 ],
16 'sources': [
17 '../include/gpu/SkGpuCanvas.h',
18 '../include/gpu/SkGpuDevice.h',
19 '../include/gpu/SkGpuDeviceFactory.h',
20 '../include/gpu/SkGr.h',
21 '../include/gpu/SkGrTexturePixelRef.h',
22
23 '../src/gpu/GrPrintf_skia.cpp',
24 '../src/gpu/SkGpuCanvas.cpp',
25 '../src/gpu/SkGpuDevice.cpp',
26 '../src/gpu/SkGr.cpp',
27 '../src/gpu/SkGrFontScaler.cpp',
28 '../src/gpu/SkGrTexturePixelRef.cpp',
29 ],
30 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000031 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000032 'defines': [
33 'GR_LINUX_BUILD=1',
34 ],
35 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000036 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000037 'defines': [
38 'GR_MAC_BUILD=1',
39 ],
40 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000041 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000042 'defines': [
43 'GR_WIN32_BUILD=1',
44 ],
45 }],
46 ],
47 'direct_dependent_settings': {
48 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000049 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000050 'defines': [
51 'GR_LINUX_BUILD=1',
52 ],
53 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000054 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000055 'defines': [
56 'GR_MAC_BUILD=1',
57 ],
58 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000059 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000060 'defines': [
61 'GR_WIN32_BUILD=1',
62 ],
63 }],
64 ],
65 'include_dirs': [
66 '../include/gpu',
67 ],
68 },
69 },
70 {
71 'target_name': 'gr',
72 'type': 'static_library',
73 'include_dirs': [
74 '../gpu/include',
75 '../include/core',
76 '../include/config',
77 ],
78 'dependencies': [
79 'libtess.gyp:libtess',
80 ],
81 'sources': [
82 '../gpu/include/GrAllocator.h',
83 '../gpu/include/GrAllocPool.h',
84 '../gpu/include/GrAtlas.h',
85 '../gpu/include/GrClip.h',
86 '../gpu/include/GrClipIterator.h',
87 '../gpu/include/GrColor.h',
88 '../gpu/include/GrConfig.h',
89 '../gpu/include/GrContext.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000090 '../gpu/include/GrFontScaler.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000091 '../gpu/include/GrGLConfig.h',
92 '../gpu/include/GrGLConfig_chrome.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000093 '../gpu/include/GrGLInterface.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000094 '../gpu/include/GrGlyph.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000095 '../gpu/include/GrGpuVertex.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000096 '../gpu/include/GrInstanceCounter.h',
97 '../gpu/include/GrIPoint.h',
98 '../gpu/include/GrKey.h',
99 '../gpu/include/GrMatrix.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000100 '../gpu/include/GrMesh.h',
101 '../gpu/include/GrNoncopyable.h',
102 '../gpu/include/GrPaint.h',
103 '../gpu/include/GrPath.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000104 '../gpu/include/GrPathSink.h',
105 '../gpu/include/GrPlotMgr.h',
106 '../gpu/include/GrPoint.h',
107 '../gpu/include/GrRandom.h',
108 '../gpu/include/GrRect.h',
109 '../gpu/include/GrRectanizer.h',
110 '../gpu/include/GrRefCnt.h',
bsalomon@google.comaa5b6732011-07-29 15:13:20 +0000111 '../gpu/include/GrRenderTarget.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000112 '../gpu/include/GrResource.h',
113 '../gpu/include/GrSamplerState.h',
114 '../gpu/include/GrScalar.h',
115 '../gpu/include/GrStencil.h',
116 '../gpu/include/GrStopwatch.h',
117 '../gpu/include/GrStringBuilder.h',
118 '../gpu/include/GrTArray.h',
119 '../gpu/include/GrTBSearch.h',
120 '../gpu/include/GrTDArray.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000121 '../gpu/include/GrTextContext.h',
122 '../gpu/include/GrTextStrike.h',
123 '../gpu/include/GrTexture.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000124 '../gpu/include/GrTHashCache.h',
125 '../gpu/include/GrTLList.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000126 '../gpu/include/GrTypes.h',
127 '../gpu/include/GrUserConfig.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000128
bsalomon@google.com542f5852011-08-30 18:17:35 +0000129 '../gpu/src/GrAAHairLinePathRenderer.cpp',
130 '../gpu/src/GrAAHairLinePathRenderer.h',
bsalomon@google.comaeb21602011-08-30 18:13:44 +0000131 '../gpu/src/GrAddPathRenderers_aahairline.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000132 '../gpu/src/GrAllocPool.cpp',
133 '../gpu/src/GrAtlas.cpp',
134 '../gpu/src/GrBinHashKey.h',
135 '../gpu/src/GrBufferAllocPool.cpp',
136 '../gpu/src/GrBufferAllocPool.h',
137 '../gpu/src/GrClip.cpp',
138 '../gpu/src/GrContext.cpp',
bsalomon@google.com30085192011-08-19 15:42:31 +0000139 '../gpu/src/GrDefaultPathRenderer.cpp',
140 '../gpu/src/GrDefaultPathRenderer.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000141 '../gpu/src/GrDrawTarget.cpp',
bsalomon@google.com583a1e32011-08-17 13:42:46 +0000142 '../gpu/src/GrDrawTarget.h',
bsalomon@google.com4d3aaaf2011-08-16 15:09:46 +0000143 '../gpu/src/GrGeometryBuffer.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000144 '../gpu/src/GrGLDefaultInterface_none.cpp',
145 '../gpu/src/GrGLIndexBuffer.cpp',
bsalomon@google.come14490a2011-07-29 13:39:53 +0000146 '../gpu/src/GrGLIndexBuffer.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000147 '../gpu/src/GrGLInterface.cpp',
bsalomon@google.come14490a2011-07-29 13:39:53 +0000148 '../gpu/src/GrGLIRect.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000149 '../gpu/src/GrGLProgram.cpp',
150 '../gpu/src/GrGLProgram.h',
bsalomon@google.comaa5b6732011-07-29 15:13:20 +0000151 '../gpu/src/GrGLRenderTarget.cpp',
152 '../gpu/src/GrGLRenderTarget.h',
bsalomon@google.com0b77d682011-08-19 13:28:54 +0000153 '../gpu/src/GrGLStencilBuffer.cpp',
bsalomon@google.com81c3f8d2011-08-03 15:18:33 +0000154 '../gpu/src/GrGLStencilBuffer.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000155 '../gpu/src/GrGLTexture.cpp',
bsalomon@google.come14490a2011-07-29 13:39:53 +0000156 '../gpu/src/GrGLTexture.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000157 '../gpu/src/GrGLUtil.cpp',
158 '../gpu/src/GrGLVertexBuffer.cpp',
bsalomon@google.come14490a2011-07-29 13:39:53 +0000159 '../gpu/src/GrGLVertexBuffer.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000160 '../gpu/src/GrGpu.cpp',
bsalomon@google.com4d3aaaf2011-08-16 15:09:46 +0000161 '../gpu/src/GrGpu.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000162 '../gpu/src/GrGpuFactory.cpp',
163 '../gpu/src/GrGpuGL.cpp',
164 '../gpu/src/GrGpuGL.h',
165 '../gpu/src/GrGpuGLFixed.cpp',
166 '../gpu/src/GrGpuGLFixed.h',
167 '../gpu/src/GrGpuGLShaders.cpp',
168 '../gpu/src/GrGpuGLShaders.h',
bsalomon@google.com4d3aaaf2011-08-16 15:09:46 +0000169 '../gpu/src/GrIndexBuffer.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000170 '../gpu/src/GrInOrderDrawBuffer.cpp',
bsalomon@google.com4d3aaaf2011-08-16 15:09:46 +0000171 '../gpu/src/GrInOrderDrawBuffer.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000172 '../gpu/src/GrMatrix.cpp',
173 '../gpu/src/GrMemory.cpp',
bsalomon@google.com30085192011-08-19 15:42:31 +0000174 '../gpu/src/GrPathRendererChain.cpp',
175 '../gpu/src/GrPathRendererChain.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000176 '../gpu/src/GrPathRenderer.cpp',
bsalomon@google.com583a1e32011-08-17 13:42:46 +0000177 '../gpu/src/GrPathRenderer.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000178 '../gpu/src/GrPathUtils.cpp',
179 '../gpu/src/GrPathUtils.h',
180 '../gpu/src/GrRectanizer.cpp',
181 '../gpu/src/GrRedBlackTree.h',
bsalomon@google.comaa5b6732011-07-29 15:13:20 +0000182 '../gpu/src/GrRenderTarget.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000183 '../gpu/src/GrResource.cpp',
bsalomon@google.com50398bf2011-07-26 20:45:30 +0000184 '../gpu/src/GrResourceCache.cpp',
185 '../gpu/src/GrResourceCache.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000186 '../gpu/src/GrStencil.cpp',
bsalomon@google.com558a75b2011-08-08 17:01:14 +0000187 '../gpu/src/GrStencilBuffer.cpp',
bsalomon@google.com81c3f8d2011-08-03 15:18:33 +0000188 '../gpu/src/GrStencilBuffer.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000189 '../gpu/src/GrTesselatedPathRenderer.cpp',
bsalomon@google.com583a1e32011-08-17 13:42:46 +0000190 '../gpu/src/GrTesselatedPathRenderer.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000191 '../gpu/src/GrTextContext.cpp',
192 '../gpu/src/GrTextStrike.cpp',
193 '../gpu/src/GrTextStrike_impl.h',
194 '../gpu/src/GrTexture.cpp',
bsalomon@google.com4d3aaaf2011-08-16 15:09:46 +0000195 '../gpu/src/GrVertexBuffer.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000196 '../gpu/src/gr_unittests.cpp',
197
198 '../gpu/src/mac/GrGLDefaultInterface_mac.cpp',
199
200 '../gpu/src/win/GrGLDefaultInterface_win.cpp',
201
202 '../gpu/src/unix/GrGLDefaultInterface_unix.cpp',
203
204 '../gpu/src/mesa/GrGLDefaultInterface_mesa.cpp',
205 ],
206 'sources!': [
207 '../gpu/src/mesa/GrGLDefaultInterface_mesa.cpp',
208 ],
209 'defines': [
210 'GR_IMPLEMENTATION=1',
bsalomon@google.com5bfc2172011-07-29 20:29:05 +0000211 'GR_USE_PLATFORM_CREATE_SAMPLE_COUNT=1',
epoger@google.comae85aea2011-05-31 13:50:51 +0000212 ],
213 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000214 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000215 'defines': [
216 'GR_LINUX_BUILD=1',
217 ],
218 'sources!': [
219 '../gpu/src/GrGLDefaultInterface_none.cpp',
220 ],
221 'link_settings': {
222 'libraries': [
223 '-lGL',
224 '-lX11',
225 ],
226 },
227 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000228 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000229 'defines': [
230 'GR_MAC_BUILD=1',
231 ],
232 'link_settings': {
233 'libraries': [
234 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
235 ],
236 },
237 'sources!': [
238 '../gpu/src/GrGLDefaultInterface_none.cpp',
239 ],
240 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000241 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000242 'defines': [
243 'GR_WIN32_BUILD=1',
244 'GR_GL_FUNCTION_TYPE=__stdcall',
245 ],
246 'sources!': [
247 '../gpu/src/GrGLDefaultInterface_none.cpp',
248 ],
249 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000250 [ 'skia_os != "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000251 'sources!': [
252 '../gpu/src/win/GrGLDefaultInterface_win.cpp',
253 ],
254 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000255 [ 'skia_os != "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000256 'sources!': [
257 '../gpu/src/mac/GrGLDefaultInterface_mac.cpp',
258 ],
259 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000260 [ 'skia_os != "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000261 'sources!': [
262 '../gpu/src/unix/GrGLDefaultInterface_unix.cpp',
263 ],
264 }],
265 ],
266 'direct_dependent_settings': {
267 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000268 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000269 'defines': [
270 'GR_LINUX_BUILD=1',
271 ],
272 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000273 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000274 'defines': [
275 'GR_MAC_BUILD=1',
276 ],
277 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000278 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000279 'defines': [
280 'GR_WIN32_BUILD=1',
281 'GR_GL_FUNCTION_TYPE=__stdcall',
282 ],
283 }],
284 ],
285 'include_dirs': [
286 '../gpu/include',
287 ],
288 },
289 },
290 ],
291}
292
293# Local Variables:
294# tab-width:2
295# indent-tabs-mode:nil
296# End:
297# vim: set expandtab tabstop=2 shiftwidth=2: