blob: b87ad5a63c5db35d180b6b5f8add322a9ffa90cb [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',
90 '../gpu/include/GrContext_impl.h',
91 '../gpu/include/GrDrawTarget.h',
92 '../gpu/include/GrFontScaler.h',
93 '../gpu/include/GrGeometryBuffer.h',
94 '../gpu/include/GrGLConfig.h',
95 '../gpu/include/GrGLConfig_chrome.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000096 '../gpu/include/GrGLInterface.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000097 '../gpu/include/GrGlyph.h',
98 '../gpu/include/GrGpu.h',
99 '../gpu/include/GrGpuVertex.h',
100 '../gpu/include/GrIndexBuffer.h',
101 '../gpu/include/GrInOrderDrawBuffer.h',
102 '../gpu/include/GrInstanceCounter.h',
103 '../gpu/include/GrIPoint.h',
104 '../gpu/include/GrKey.h',
105 '../gpu/include/GrMatrix.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000106 '../gpu/include/GrMesh.h',
107 '../gpu/include/GrNoncopyable.h',
108 '../gpu/include/GrPaint.h',
109 '../gpu/include/GrPath.h',
110 '../gpu/include/GrPathRenderer.h',
111 '../gpu/include/GrPathSink.h',
112 '../gpu/include/GrPlotMgr.h',
113 '../gpu/include/GrPoint.h',
114 '../gpu/include/GrRandom.h',
115 '../gpu/include/GrRect.h',
116 '../gpu/include/GrRectanizer.h',
117 '../gpu/include/GrRefCnt.h',
bsalomon@google.comaa5b6732011-07-29 15:13:20 +0000118 '../gpu/include/GrRenderTarget.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000119 '../gpu/include/GrResource.h',
120 '../gpu/include/GrSamplerState.h',
121 '../gpu/include/GrScalar.h',
122 '../gpu/include/GrStencil.h',
123 '../gpu/include/GrStopwatch.h',
124 '../gpu/include/GrStringBuilder.h',
125 '../gpu/include/GrTArray.h',
126 '../gpu/include/GrTBSearch.h',
127 '../gpu/include/GrTDArray.h',
128 '../gpu/include/GrTesselatedPathRenderer.h',
129 '../gpu/include/GrTextContext.h',
130 '../gpu/include/GrTextStrike.h',
131 '../gpu/include/GrTexture.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000132 '../gpu/include/GrTHashCache.h',
133 '../gpu/include/GrTLList.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000134 '../gpu/include/GrTypes.h',
135 '../gpu/include/GrUserConfig.h',
136 '../gpu/include/GrVertexBuffer.h',
137
138 '../gpu/src/GrAllocPool.cpp',
139 '../gpu/src/GrAtlas.cpp',
140 '../gpu/src/GrBinHashKey.h',
141 '../gpu/src/GrBufferAllocPool.cpp',
142 '../gpu/src/GrBufferAllocPool.h',
143 '../gpu/src/GrClip.cpp',
144 '../gpu/src/GrContext.cpp',
145 '../gpu/src/GrCreatePathRenderer_none.cpp',
146 '../gpu/src/GrDrawTarget.cpp',
147 '../gpu/src/GrGLDefaultInterface_none.cpp',
148 '../gpu/src/GrGLIndexBuffer.cpp',
bsalomon@google.come14490a2011-07-29 13:39:53 +0000149 '../gpu/src/GrGLIndexBuffer.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000150 '../gpu/src/GrGLInterface.cpp',
bsalomon@google.come14490a2011-07-29 13:39:53 +0000151 '../gpu/src/GrGLIRect.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000152 '../gpu/src/GrGLProgram.cpp',
153 '../gpu/src/GrGLProgram.h',
bsalomon@google.comaa5b6732011-07-29 15:13:20 +0000154 '../gpu/src/GrGLRenderTarget.cpp',
155 '../gpu/src/GrGLRenderTarget.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000156 '../gpu/src/GrGLTexture.cpp',
bsalomon@google.come14490a2011-07-29 13:39:53 +0000157 '../gpu/src/GrGLTexture.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000158 '../gpu/src/GrGLUtil.cpp',
159 '../gpu/src/GrGLVertexBuffer.cpp',
bsalomon@google.come14490a2011-07-29 13:39:53 +0000160 '../gpu/src/GrGLVertexBuffer.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000161 '../gpu/src/GrGpu.cpp',
162 '../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',
169 '../gpu/src/GrInOrderDrawBuffer.cpp',
170 '../gpu/src/GrMatrix.cpp',
171 '../gpu/src/GrMemory.cpp',
172 '../gpu/src/GrPathRenderer.cpp',
173 '../gpu/src/GrPathUtils.cpp',
174 '../gpu/src/GrPathUtils.h',
175 '../gpu/src/GrRectanizer.cpp',
176 '../gpu/src/GrRedBlackTree.h',
bsalomon@google.comaa5b6732011-07-29 15:13:20 +0000177 '../gpu/src/GrRenderTarget.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000178 '../gpu/src/GrResource.cpp',
bsalomon@google.com50398bf2011-07-26 20:45:30 +0000179 '../gpu/src/GrResourceCache.cpp',
180 '../gpu/src/GrResourceCache.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000181 '../gpu/src/GrStencil.cpp',
182 '../gpu/src/GrTesselatedPathRenderer.cpp',
183 '../gpu/src/GrTextContext.cpp',
184 '../gpu/src/GrTextStrike.cpp',
185 '../gpu/src/GrTextStrike_impl.h',
186 '../gpu/src/GrTexture.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000187 '../gpu/src/gr_unittests.cpp',
188
189 '../gpu/src/mac/GrGLDefaultInterface_mac.cpp',
190
191 '../gpu/src/win/GrGLDefaultInterface_win.cpp',
192
193 '../gpu/src/unix/GrGLDefaultInterface_unix.cpp',
194
195 '../gpu/src/mesa/GrGLDefaultInterface_mesa.cpp',
196 ],
197 'sources!': [
198 '../gpu/src/mesa/GrGLDefaultInterface_mesa.cpp',
199 ],
200 'defines': [
201 'GR_IMPLEMENTATION=1',
202 ],
203 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000204 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000205 'defines': [
206 'GR_LINUX_BUILD=1',
207 ],
208 'sources!': [
209 '../gpu/src/GrGLDefaultInterface_none.cpp',
210 ],
211 'link_settings': {
212 'libraries': [
213 '-lGL',
214 '-lX11',
215 ],
216 },
217 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000218 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000219 'defines': [
220 'GR_MAC_BUILD=1',
221 ],
222 'link_settings': {
223 'libraries': [
224 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
225 ],
226 },
227 'sources!': [
228 '../gpu/src/GrGLDefaultInterface_none.cpp',
229 ],
230 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000231 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000232 'defines': [
233 'GR_WIN32_BUILD=1',
234 'GR_GL_FUNCTION_TYPE=__stdcall',
235 ],
236 'sources!': [
237 '../gpu/src/GrGLDefaultInterface_none.cpp',
238 ],
239 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000240 [ 'skia_os != "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000241 'sources!': [
242 '../gpu/src/win/GrGLDefaultInterface_win.cpp',
243 ],
244 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000245 [ 'skia_os != "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000246 'sources!': [
247 '../gpu/src/mac/GrGLDefaultInterface_mac.cpp',
248 ],
249 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000250 [ 'skia_os != "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000251 'sources!': [
252 '../gpu/src/unix/GrGLDefaultInterface_unix.cpp',
253 ],
254 }],
255 ],
256 'direct_dependent_settings': {
257 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000258 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000259 'defines': [
260 'GR_LINUX_BUILD=1',
261 ],
262 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000263 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000264 'defines': [
265 'GR_MAC_BUILD=1',
266 ],
267 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000268 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000269 'defines': [
270 'GR_WIN32_BUILD=1',
271 'GR_GL_FUNCTION_TYPE=__stdcall',
272 ],
273 }],
274 ],
275 'include_dirs': [
276 '../gpu/include',
277 ],
278 },
279 },
280 ],
281}
282
283# Local Variables:
284# tab-width:2
285# indent-tabs-mode:nil
286# End:
287# vim: set expandtab tabstop=2 shiftwidth=2: