blob: 83aa5254392f74d88edf88da7cbdc65ba09fc346 [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',
epoger@google.comae85aea2011-05-31 13:50:51 +000014 ],
15 'sources': [
16 '../include/gpu/SkGpuCanvas.h',
17 '../include/gpu/SkGpuDevice.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000018 '../include/gpu/SkGr.h',
19 '../include/gpu/SkGrTexturePixelRef.h',
20
21 '../src/gpu/GrPrintf_skia.cpp',
22 '../src/gpu/SkGpuCanvas.cpp',
23 '../src/gpu/SkGpuDevice.cpp',
24 '../src/gpu/SkGr.cpp',
25 '../src/gpu/SkGrFontScaler.cpp',
26 '../src/gpu/SkGrTexturePixelRef.cpp',
27 ],
28 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000029 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000030 'defines': [
31 'GR_LINUX_BUILD=1',
32 ],
33 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000034 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000035 'defines': [
36 'GR_MAC_BUILD=1',
37 ],
38 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000039 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000040 'defines': [
41 'GR_WIN32_BUILD=1',
42 ],
43 }],
44 ],
45 'direct_dependent_settings': {
46 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +000047 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000048 'defines': [
49 'GR_LINUX_BUILD=1',
50 ],
51 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000052 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000053 'defines': [
54 'GR_MAC_BUILD=1',
55 ],
56 }],
epoger@google.com8846cb22011-07-01 20:20:07 +000057 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +000058 'defines': [
59 'GR_WIN32_BUILD=1',
60 ],
61 }],
62 ],
63 'include_dirs': [
64 '../include/gpu',
65 ],
66 },
67 },
68 {
69 'target_name': 'gr',
70 'type': 'static_library',
71 'include_dirs': [
epoger@google.comae85aea2011-05-31 13:50:51 +000072 '../include/core',
73 '../include/config',
bsalomon@google.comd38f1372011-10-12 19:53:16 +000074 '../include/gpu',
epoger@google.comae85aea2011-05-31 13:50:51 +000075 ],
76 'dependencies': [
77 'libtess.gyp:libtess',
78 ],
79 'sources': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +000080 '../include/gpu/GrAllocator.h',
81 '../include/gpu/GrAllocPool.h',
82 '../include/gpu/GrAtlas.h',
83 '../include/gpu/GrClip.h',
84 '../include/gpu/GrClipIterator.h',
85 '../include/gpu/GrColor.h',
86 '../include/gpu/GrConfig.h',
87 '../include/gpu/GrContext.h',
88 '../include/gpu/GrFontScaler.h',
89 '../include/gpu/GrGLConfig.h',
90 '../include/gpu/GrGLConfig_chrome.h',
91 '../include/gpu/GrGLInterface.h',
92 '../include/gpu/GrGlyph.h',
93 '../include/gpu/GrGpuVertex.h',
94 '../include/gpu/GrInstanceCounter.h',
95 '../include/gpu/GrIPoint.h',
96 '../include/gpu/GrKey.h',
97 '../include/gpu/GrMatrix.h',
98 '../include/gpu/GrMesh.h',
99 '../include/gpu/GrNoncopyable.h',
100 '../include/gpu/GrPaint.h',
101 '../include/gpu/GrPath.h',
102 '../include/gpu/GrPathSink.h',
103 '../include/gpu/GrPlotMgr.h',
104 '../include/gpu/GrPoint.h',
105 '../include/gpu/GrRandom.h',
106 '../include/gpu/GrRect.h',
107 '../include/gpu/GrRectanizer.h',
108 '../include/gpu/GrRefCnt.h',
109 '../include/gpu/GrRenderTarget.h',
110 '../include/gpu/GrResource.h',
111 '../include/gpu/GrSamplerState.h',
112 '../include/gpu/GrScalar.h',
113 '../include/gpu/GrStencil.h',
114 '../include/gpu/GrStopwatch.h',
115 '../include/gpu/GrStringBuilder.h',
116 '../include/gpu/GrTBSearch.h',
117 '../include/gpu/GrTDArray.h',
118 '../include/gpu/GrTextContext.h',
119 '../include/gpu/GrTextStrike.h',
120 '../include/gpu/GrTexture.h',
121 '../include/gpu/GrTHashCache.h',
122 '../include/gpu/GrTLList.h',
123 '../include/gpu/GrTypes.h',
124 '../include/gpu/GrUserConfig.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000125
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000126 '../src/gpu/GrAAHairLinePathRenderer.cpp',
127 '../src/gpu/GrAAHairLinePathRenderer.h',
128 '../src/gpu/GrAddPathRenderers_aahairline.cpp',
129 '../src/gpu/GrAllocPool.cpp',
130 '../src/gpu/GrAtlas.cpp',
131 '../src/gpu/GrBinHashKey.h',
132 '../src/gpu/GrBufferAllocPool.cpp',
133 '../src/gpu/GrBufferAllocPool.h',
134 '../src/gpu/GrClip.cpp',
135 '../src/gpu/GrContext.cpp',
136 '../src/gpu/GrDefaultPathRenderer.cpp',
137 '../src/gpu/GrDefaultPathRenderer.h',
138 '../src/gpu/GrDrawTarget.cpp',
139 '../src/gpu/GrDrawTarget.h',
140 '../src/gpu/GrGeometryBuffer.h',
141 '../src/gpu/GrGLDefaultInterface_none.cpp',
142 '../src/gpu/GrGLIndexBuffer.cpp',
143 '../src/gpu/GrGLIndexBuffer.h',
144 '../src/gpu/GrGLInterface.cpp',
145 '../src/gpu/GrGLIRect.h',
146 '../src/gpu/GrGLProgram.cpp',
147 '../src/gpu/GrGLProgram.h',
148 '../src/gpu/GrGLRenderTarget.cpp',
149 '../src/gpu/GrGLRenderTarget.h',
150 '../src/gpu/GrGLShaderVar.h',
151 '../src/gpu/GrGLStencilBuffer.cpp',
152 '../src/gpu/GrGLStencilBuffer.h',
153 '../src/gpu/GrGLTexture.cpp',
154 '../src/gpu/GrGLTexture.h',
155 '../src/gpu/GrGLUtil.cpp',
156 '../src/gpu/GrGLVertexBuffer.cpp',
157 '../src/gpu/GrGLVertexBuffer.h',
158 '../src/gpu/GrGpu.cpp',
159 '../src/gpu/GrGpu.h',
160 '../src/gpu/GrGpuFactory.cpp',
161 '../src/gpu/GrGpuGL.cpp',
162 '../src/gpu/GrGpuGL.h',
163 '../src/gpu/GrGpuGLFixed.cpp',
164 '../src/gpu/GrGpuGLFixed.h',
165 '../src/gpu/GrGpuGLShaders.cpp',
166 '../src/gpu/GrGpuGLShaders.h',
167 '../src/gpu/GrIndexBuffer.h',
168 '../src/gpu/GrInOrderDrawBuffer.cpp',
169 '../src/gpu/GrInOrderDrawBuffer.h',
170 '../src/gpu/GrMatrix.cpp',
171 '../src/gpu/GrMemory.cpp',
172 '../src/gpu/GrPathRendererChain.cpp',
173 '../src/gpu/GrPathRendererChain.h',
174 '../src/gpu/GrPathRenderer.cpp',
175 '../src/gpu/GrPathRenderer.h',
176 '../src/gpu/GrPathUtils.cpp',
177 '../src/gpu/GrPathUtils.h',
178 '../src/gpu/GrRectanizer.cpp',
179 '../src/gpu/GrRedBlackTree.h',
180 '../src/gpu/GrRenderTarget.cpp',
181 '../src/gpu/GrResource.cpp',
182 '../src/gpu/GrResourceCache.cpp',
183 '../src/gpu/GrResourceCache.h',
184 '../src/gpu/GrStencil.cpp',
185 '../src/gpu/GrStencilBuffer.cpp',
186 '../src/gpu/GrStencilBuffer.h',
187 '../src/gpu/GrTesselatedPathRenderer.cpp',
188 '../src/gpu/GrTesselatedPathRenderer.h',
189 '../src/gpu/GrTextContext.cpp',
190 '../src/gpu/GrTextStrike.cpp',
191 '../src/gpu/GrTextStrike_impl.h',
192 '../src/gpu/GrTexture.cpp',
193 '../src/gpu/GrVertexBuffer.h',
194 '../src/gpu/gr_unittests.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000195
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000196 '../src/gpu/mac/GrGLDefaultInterface_mac.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000197
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000198 '../src/gpu/win/GrGLDefaultInterface_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000199
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000200 '../src/gpu/unix/GrGLDefaultInterface_unix.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000201
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000202 '../src/gpu/mesa/GrGLDefaultInterface_mesa.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000203 ],
204 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000205 '../src/gpu/mesa/GrGLDefaultInterface_mesa.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000206 ],
207 'defines': [
208 'GR_IMPLEMENTATION=1',
209 ],
210 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000211 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000212 'defines': [
213 'GR_LINUX_BUILD=1',
214 ],
215 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000216 '../src/gpu/GrGLDefaultInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000217 ],
218 'link_settings': {
219 'libraries': [
220 '-lGL',
221 '-lX11',
222 ],
223 },
224 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000225 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000226 'defines': [
227 'GR_MAC_BUILD=1',
228 ],
229 'link_settings': {
230 'libraries': [
231 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
232 ],
233 },
234 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000235 '../src/gpu/GrGLDefaultInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000236 ],
237 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000238 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000239 'defines': [
240 'GR_WIN32_BUILD=1',
241 'GR_GL_FUNCTION_TYPE=__stdcall',
242 ],
243 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000244 '../src/gpu/GrGLDefaultInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000245 ],
246 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000247 [ 'skia_os != "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000248 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000249 '../src/gpu/win/GrGLDefaultInterface_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000250 ],
251 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000252 [ 'skia_os != "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000253 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000254 '../src/gpu/mac/GrGLDefaultInterface_mac.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000255 ],
256 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000257 [ 'skia_os != "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000258 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000259 '../src/gpu/unix/GrGLDefaultInterface_unix.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000260 ],
261 }],
262 ],
263 'direct_dependent_settings': {
264 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000265 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000266 'defines': [
267 'GR_LINUX_BUILD=1',
268 ],
269 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000270 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000271 'defines': [
272 'GR_MAC_BUILD=1',
273 ],
274 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000275 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000276 'defines': [
277 'GR_WIN32_BUILD=1',
278 'GR_GL_FUNCTION_TYPE=__stdcall',
279 ],
280 }],
281 ],
282 'include_dirs': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000283 '../include/gpu',
epoger@google.comae85aea2011-05-31 13:50:51 +0000284 ],
285 },
286 },
287 ],
288}
289
290# Local Variables:
291# tab-width:2
292# indent-tabs-mode:nil
293# End:
294# vim: set expandtab tabstop=2 shiftwidth=2: