blob: 690258a1a966b29d49d9d8680b27636e0913f6c7 [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': [
99 '../include/gpu/SkGpuCanvas.h',
100 '../include/gpu/SkGpuDevice.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000101 '../include/gpu/SkGr.h',
102 '../include/gpu/SkGrTexturePixelRef.h',
103
104 '../src/gpu/GrPrintf_skia.cpp',
105 '../src/gpu/SkGpuCanvas.cpp',
106 '../src/gpu/SkGpuDevice.cpp',
107 '../src/gpu/SkGr.cpp',
108 '../src/gpu/SkGrFontScaler.cpp',
109 '../src/gpu/SkGrTexturePixelRef.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000110
111 '../src/gpu/mac/SkGLContext_mac.cpp',
112
113 '../src/gpu/win/SkGLContext_win.cpp',
114
115 '../src/gpu/unix/SkGLContext_unix.cpp',
116
117 '../src/gpu/mesa/SkGLContext_mesa.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000118 ],
bsalomon@google.come2953132011-10-13 13:33:08 +0000119 # Removed for now
120 'sources!': [
121 '../src/gpu/mesa/SkGLContext_mesa.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000122 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000123 },
124 {
125 'target_name': 'gr',
126 'type': 'static_library',
127 'include_dirs': [
epoger@google.comae85aea2011-05-31 13:50:51 +0000128 '../include/core',
129 '../include/config',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000130 '../include/gpu',
epoger@google.comae85aea2011-05-31 13:50:51 +0000131 ],
132 'dependencies': [
133 'libtess.gyp:libtess',
134 ],
135 'sources': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000136 '../include/gpu/GrAllocator.h',
137 '../include/gpu/GrAllocPool.h',
138 '../include/gpu/GrAtlas.h',
139 '../include/gpu/GrClip.h',
140 '../include/gpu/GrClipIterator.h',
141 '../include/gpu/GrColor.h',
142 '../include/gpu/GrConfig.h',
143 '../include/gpu/GrContext.h',
144 '../include/gpu/GrFontScaler.h',
145 '../include/gpu/GrGLConfig.h',
146 '../include/gpu/GrGLConfig_chrome.h',
147 '../include/gpu/GrGLInterface.h',
148 '../include/gpu/GrGlyph.h',
149 '../include/gpu/GrGpuVertex.h',
150 '../include/gpu/GrInstanceCounter.h',
151 '../include/gpu/GrIPoint.h',
152 '../include/gpu/GrKey.h',
153 '../include/gpu/GrMatrix.h',
154 '../include/gpu/GrMesh.h',
155 '../include/gpu/GrNoncopyable.h',
156 '../include/gpu/GrPaint.h',
157 '../include/gpu/GrPath.h',
158 '../include/gpu/GrPathSink.h',
159 '../include/gpu/GrPlotMgr.h',
160 '../include/gpu/GrPoint.h',
161 '../include/gpu/GrRandom.h',
162 '../include/gpu/GrRect.h',
163 '../include/gpu/GrRectanizer.h',
164 '../include/gpu/GrRefCnt.h',
165 '../include/gpu/GrRenderTarget.h',
166 '../include/gpu/GrResource.h',
167 '../include/gpu/GrSamplerState.h',
168 '../include/gpu/GrScalar.h',
169 '../include/gpu/GrStencil.h',
170 '../include/gpu/GrStopwatch.h',
171 '../include/gpu/GrStringBuilder.h',
172 '../include/gpu/GrTBSearch.h',
173 '../include/gpu/GrTDArray.h',
174 '../include/gpu/GrTextContext.h',
175 '../include/gpu/GrTextStrike.h',
176 '../include/gpu/GrTexture.h',
177 '../include/gpu/GrTHashCache.h',
178 '../include/gpu/GrTLList.h',
179 '../include/gpu/GrTypes.h',
180 '../include/gpu/GrUserConfig.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000181
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000182 '../src/gpu/GrAAHairLinePathRenderer.cpp',
183 '../src/gpu/GrAAHairLinePathRenderer.h',
184 '../src/gpu/GrAddPathRenderers_aahairline.cpp',
185 '../src/gpu/GrAllocPool.cpp',
186 '../src/gpu/GrAtlas.cpp',
187 '../src/gpu/GrBinHashKey.h',
188 '../src/gpu/GrBufferAllocPool.cpp',
189 '../src/gpu/GrBufferAllocPool.h',
190 '../src/gpu/GrClip.cpp',
191 '../src/gpu/GrContext.cpp',
192 '../src/gpu/GrDefaultPathRenderer.cpp',
193 '../src/gpu/GrDefaultPathRenderer.h',
194 '../src/gpu/GrDrawTarget.cpp',
195 '../src/gpu/GrDrawTarget.h',
196 '../src/gpu/GrGeometryBuffer.h',
197 '../src/gpu/GrGLDefaultInterface_none.cpp',
198 '../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',
223 '../src/gpu/GrIndexBuffer.h',
224 '../src/gpu/GrInOrderDrawBuffer.cpp',
225 '../src/gpu/GrInOrderDrawBuffer.h',
226 '../src/gpu/GrMatrix.cpp',
227 '../src/gpu/GrMemory.cpp',
228 '../src/gpu/GrPathRendererChain.cpp',
229 '../src/gpu/GrPathRendererChain.h',
230 '../src/gpu/GrPathRenderer.cpp',
231 '../src/gpu/GrPathRenderer.h',
232 '../src/gpu/GrPathUtils.cpp',
233 '../src/gpu/GrPathUtils.h',
234 '../src/gpu/GrRectanizer.cpp',
235 '../src/gpu/GrRedBlackTree.h',
236 '../src/gpu/GrRenderTarget.cpp',
237 '../src/gpu/GrResource.cpp',
238 '../src/gpu/GrResourceCache.cpp',
239 '../src/gpu/GrResourceCache.h',
240 '../src/gpu/GrStencil.cpp',
241 '../src/gpu/GrStencilBuffer.cpp',
242 '../src/gpu/GrStencilBuffer.h',
243 '../src/gpu/GrTesselatedPathRenderer.cpp',
244 '../src/gpu/GrTesselatedPathRenderer.h',
245 '../src/gpu/GrTextContext.cpp',
246 '../src/gpu/GrTextStrike.cpp',
247 '../src/gpu/GrTextStrike_impl.h',
248 '../src/gpu/GrTexture.cpp',
249 '../src/gpu/GrVertexBuffer.h',
250 '../src/gpu/gr_unittests.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000251
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000252 '../src/gpu/mac/GrGLDefaultInterface_mac.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000253
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000254 '../src/gpu/win/GrGLDefaultInterface_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000255
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000256 '../src/gpu/unix/GrGLDefaultInterface_unix.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000257
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000258 '../src/gpu/mesa/GrGLDefaultInterface_mesa.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000259 ],
bsalomon@google.come2953132011-10-13 13:33:08 +0000260 # Removed for now
epoger@google.comae85aea2011-05-31 13:50:51 +0000261 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000262 '../src/gpu/mesa/GrGLDefaultInterface_mesa.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000263 ],
264 'defines': [
265 'GR_IMPLEMENTATION=1',
266 ],
267 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000268 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000269 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000270 '../src/gpu/GrGLDefaultInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000271 ],
272 'link_settings': {
273 'libraries': [
274 '-lGL',
275 '-lX11',
276 ],
277 },
278 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000279 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000280 'link_settings': {
281 'libraries': [
282 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
283 ],
284 },
285 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000286 '../src/gpu/GrGLDefaultInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000287 ],
288 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000289 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000290 'sources!': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000291 '../src/gpu/GrGLDefaultInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000292 ],
293 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000294 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000295 },
296 ],
297}
298
299# Local Variables:
300# tab-width:2
301# indent-tabs-mode:nil
302# End:
303# vim: set expandtab tabstop=2 shiftwidth=2: