blob: 410a5b7ace657a8118ac1b16f9cc80ec47ca60cf [file] [log] [blame]
epoger@google.comae85aea2011-05-31 13:50:51 +00001{
bsalomon@google.come2953132011-10-13 13:33:08 +00002 'target_defaults': {
3 'conditions': [
4 ['skia_os != "win"', {
5 'sources/': [ ['exclude', '_win.(h|cpp)$'],
6 ],
7 }],
8 ['skia_os != "mac"', {
9 'sources/': [ ['exclude', '_mac.(h|cpp)$'],
10 ],
11 }],
12 ['skia_os != "linux"', {
13 'sources/': [ ['exclude', '_unix.(h|cpp)$'],
14 ],
15 }],
16 ['skia_os != "ios"', {
17 'sources/': [ ['exclude', '_iOS.(h|cpp)$'],
18 ],
19 }],
20 ['skia_os != "android"', {
21 'sources/': [ ['exclude', '_android.(h|cpp)$'],
22 ],
23 }],
24 [ 'skia_os == "android"', {
25 'defines': [
26 'GR_ANDROID_BUILD=1',
27 ],
28 }],
29 [ 'skia_os == "mac"', {
30 'defines': [
31 'GR_MAC_BUILD=1',
32 ],
33 }],
34 [ 'skia_os == "linux"', {
35 'defines': [
36 'GR_LINUX_BUILD=1',
37 ],
38 }],
39 [ 'skia_os == "ios"', {
40 'defines': [
41 'GR_IOS_BUILD=1',
42 ],
43 }],
44 [ 'skia_os == "win"', {
45 'defines': [
46 'GR_WIN32_BUILD=1',
47 'GR_GL_FUNCTION_TYPE=__stdcall',
48 ],
49 }],
50 ],
51 'direct_dependent_settings': {
52 'conditions': [
53 [ 'skia_os == "android"', {
54 'defines': [
55 'GR_ANDROID_BUILD=1',
56 ],
57 }],
58 [ 'skia_os == "mac"', {
59 'defines': [
60 'GR_MAC_BUILD=1',
61 ],
62 }],
63 [ 'skia_os == "linux"', {
64 'defines': [
65 'GR_LINUX_BUILD=1',
66 ],
67 }],
68 [ 'skia_os == "ios"', {
69 'defines': [
70 'GR_IOS_BUILD=1',
71 ],
72 }],
73 [ 'skia_os == "win"', {
74 'defines': [
75 'GR_WIN32_BUILD=1',
76 'GR_GL_FUNCTION_TYPE=__stdcall',
77 ],
78 }],
79 ],
80 'include_dirs': [
81 '../include/gpu',
82 ],
83 },
84 },
epoger@google.comae85aea2011-05-31 13:50:51 +000085 'targets': [
86 {
87 'target_name': 'skgr',
88 'type': 'static_library',
89 'include_dirs': [
90 '../include/config',
91 '../include/core',
92 '../src/core',
93 '../include/gpu',
epoger@google.comae85aea2011-05-31 13:50:51 +000094 ],
95 'sources': [
96 '../include/gpu/SkGpuCanvas.h',
97 '../include/gpu/SkGpuDevice.h',
epoger@google.comae85aea2011-05-31 13:50:51 +000098 '../include/gpu/SkGr.h',
99 '../include/gpu/SkGrTexturePixelRef.h',
100
tomhudson@google.com6bf38b52012-02-14 15:11:59 +0000101 '../include/gpu/gl/SkGLContext.h',
102 '../include/gpu/gl/SkMesaGLContext.h',
103 '../include/gpu/gl/SkNativeGLContext.h',
104 '../include/gpu/gl/SkNullGLContext.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000105
epoger@google.comae85aea2011-05-31 13:50:51 +0000106 '../src/gpu/GrPrintf_skia.cpp',
107 '../src/gpu/SkGpuCanvas.cpp',
108 '../src/gpu/SkGpuDevice.cpp',
109 '../src/gpu/SkGr.cpp',
110 '../src/gpu/SkGrFontScaler.cpp',
111 '../src/gpu/SkGrTexturePixelRef.cpp',
tomhudson@google.com40725562012-02-10 21:35:06 +0000112
113 '../src/gpu/gl/SkGLContext.cpp',
114 '../src/gpu/gl/SkNullGLContext.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000115
djsollen@google.com58629292011-11-03 13:08:29 +0000116 '../src/gpu/android/SkNativeGLContext_android.cpp',
117
bsalomon@google.com373a6632011-10-19 20:43:20 +0000118 '../src/gpu/mac/SkNativeGLContext_mac.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000119
bsalomon@google.com373a6632011-10-19 20:43:20 +0000120 '../src/gpu/win/SkNativeGLContext_win.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000121
bsalomon@google.com373a6632011-10-19 20:43:20 +0000122 '../src/gpu/unix/SkNativeGLContext_unix.cpp',
bsalomon@google.come2953132011-10-13 13:33:08 +0000123
bsalomon@google.com373a6632011-10-19 20:43:20 +0000124 '../src/gpu/mesa/SkMesaGLContext.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000125 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000126 'conditions': [
127 [ 'not skia_mesa', {
128 'sources!': [
129 '../src/gpu/mesa/SkMesaGLContext.cpp',
130 ],
131 }],
132 [ 'skia_mesa and skia_os == "mac"', {
133 'include_dirs': [
134 '$(SDKROOT)/usr/X11/include/',
135 ],
136 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000137 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000138 },
139 {
140 'target_name': 'gr',
141 'type': 'static_library',
142 'include_dirs': [
epoger@google.comae85aea2011-05-31 13:50:51 +0000143 '../include/core',
144 '../include/config',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000145 '../include/gpu',
bsalomon@google.com150d2842012-01-12 20:19:56 +0000146 '../src/core', # SkRasterClip.h
epoger@google.comae85aea2011-05-31 13:50:51 +0000147 ],
148 'dependencies': [
149 'libtess.gyp:libtess',
150 ],
151 'sources': [
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000152 '../include/gpu/GrClip.h',
153 '../include/gpu/GrClipIterator.h',
154 '../include/gpu/GrColor.h',
155 '../include/gpu/GrConfig.h',
156 '../include/gpu/GrContext.h',
157 '../include/gpu/GrFontScaler.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000158 '../include/gpu/GrGlyph.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000159 '../include/gpu/GrInstanceCounter.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000160 '../include/gpu/GrKey.h',
161 '../include/gpu/GrMatrix.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000162 '../include/gpu/GrNoncopyable.h',
163 '../include/gpu/GrPaint.h',
164 '../include/gpu/GrPath.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000165 '../include/gpu/GrPoint.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000166 '../include/gpu/GrRect.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000167 '../include/gpu/GrRefCnt.h',
168 '../include/gpu/GrRenderTarget.h',
169 '../include/gpu/GrResource.h',
170 '../include/gpu/GrSamplerState.h',
171 '../include/gpu/GrScalar.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000172 '../include/gpu/GrTextContext.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000173 '../include/gpu/GrTexture.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000174 '../include/gpu/GrTypes.h',
175 '../include/gpu/GrUserConfig.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000176
tomhudson@google.com6bf38b52012-02-14 15:11:59 +0000177 '../include/gpu/gl/GrGLConfig.h',
178 '../include/gpu/gl/GrGLConfig_chrome.h',
179 '../include/gpu/gl/GrGLDefines.h',
180 '../include/gpu/gl/GrGLInterface.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000181
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000182 '../src/gpu/GrAAHairLinePathRenderer.cpp',
183 '../src/gpu/GrAAHairLinePathRenderer.h',
bsalomon@google.com69cc6ad2012-01-17 14:25:10 +0000184 '../src/gpu/GrAAConvexPathRenderer.cpp',
185 '../src/gpu/GrAAConvexPathRenderer.h',
186 '../src/gpu/GrAddPathRenderers_default.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000187 '../src/gpu/GrAllocator.h',
188 '../src/gpu/GrAllocPool.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000189 '../src/gpu/GrAllocPool.cpp',
190 '../src/gpu/GrAtlas.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000191 '../src/gpu/GrAtlas.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000192 '../src/gpu/GrBinHashKey.h',
193 '../src/gpu/GrBufferAllocPool.cpp',
194 '../src/gpu/GrBufferAllocPool.h',
195 '../src/gpu/GrClip.cpp',
196 '../src/gpu/GrContext.cpp',
197 '../src/gpu/GrDefaultPathRenderer.cpp',
198 '../src/gpu/GrDefaultPathRenderer.h',
tomhudson@google.com93813632011-10-27 20:21:16 +0000199 '../src/gpu/GrDrawState.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000200 '../src/gpu/GrDrawTarget.cpp',
201 '../src/gpu/GrDrawTarget.h',
202 '../src/gpu/GrGeometryBuffer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000203 '../src/gpu/GrGpu.cpp',
204 '../src/gpu/GrGpu.h',
205 '../src/gpu/GrGpuFactory.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000206 '../src/gpu/GrGpuVertex.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000207 '../src/gpu/GrIndexBuffer.h',
208 '../src/gpu/GrInOrderDrawBuffer.cpp',
209 '../src/gpu/GrInOrderDrawBuffer.h',
210 '../src/gpu/GrMatrix.cpp',
211 '../src/gpu/GrMemory.cpp',
212 '../src/gpu/GrPathRendererChain.cpp',
213 '../src/gpu/GrPathRendererChain.h',
214 '../src/gpu/GrPathRenderer.cpp',
215 '../src/gpu/GrPathRenderer.h',
216 '../src/gpu/GrPathUtils.cpp',
217 '../src/gpu/GrPathUtils.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000218 '../src/gpu/GrPlotMgr.h',
219 '../src/gpu/GrRandom.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000220 '../src/gpu/GrRectanizer.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000221 '../src/gpu/GrRectanizer.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000222 '../src/gpu/GrRedBlackTree.h',
223 '../src/gpu/GrRenderTarget.cpp',
224 '../src/gpu/GrResource.cpp',
225 '../src/gpu/GrResourceCache.cpp',
226 '../src/gpu/GrResourceCache.h',
227 '../src/gpu/GrStencil.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000228 '../src/gpu/GrStencil.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000229 '../src/gpu/GrStencilBuffer.cpp',
230 '../src/gpu/GrStencilBuffer.h',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000231 '../src/gpu/GrStringBuilder.h',
232 '../src/gpu/GrTBSearch.h',
233 '../src/gpu/GrTDArray.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000234 '../src/gpu/GrTesselatedPathRenderer.cpp',
235 '../src/gpu/GrTesselatedPathRenderer.h',
236 '../src/gpu/GrTextContext.cpp',
237 '../src/gpu/GrTextStrike.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000238 '../src/gpu/GrTextStrike.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000239 '../src/gpu/GrTextStrike_impl.h',
240 '../src/gpu/GrTexture.cpp',
bsalomon@google.comffa11bb2011-10-20 13:43:13 +0000241 '../src/gpu/GrTHashCache.h',
242 '../src/gpu/GrTLList.h',
bsalomon@google.comd38f1372011-10-12 19:53:16 +0000243 '../src/gpu/GrVertexBuffer.h',
244 '../src/gpu/gr_unittests.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000245
bsalomon@google.comf7fa8062012-02-14 14:09:57 +0000246 '../src/gpu/gl/GrGLCaps.cpp',
247 '../src/gpu/gl/GrGLCaps.h',
tomhudson@google.com40725562012-02-10 21:35:06 +0000248 '../src/gpu/gl/GrGLContextInfo.cpp',
249 '../src/gpu/gl/GrGLContextInfo.h',
250 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
251 '../src/gpu/gl/GrGLCreateNullInterface.cpp',
252 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
253 '../src/gpu/gl/GrGLDefaultInterface_native.cpp',
254 '../src/gpu/gl/GrGLIndexBuffer.cpp',
255 '../src/gpu/gl/GrGLIndexBuffer.h',
256 '../src/gpu/gl/GrGLInterface.cpp',
257 '../src/gpu/gl/GrGLIRect.h',
258 '../src/gpu/gl/GrGLProgram.cpp',
259 '../src/gpu/gl/GrGLProgram.h',
260 '../src/gpu/gl/GrGLRenderTarget.cpp',
261 '../src/gpu/gl/GrGLRenderTarget.h',
262 '../src/gpu/gl/GrGLShaderVar.h',
263 '../src/gpu/gl/GrGLSL.cpp',
264 '../src/gpu/gl/GrGLSL.h',
265 '../src/gpu/gl/GrGLStencilBuffer.cpp',
266 '../src/gpu/gl/GrGLStencilBuffer.h',
267 '../src/gpu/gl/GrGLTexture.cpp',
268 '../src/gpu/gl/GrGLTexture.h',
269 '../src/gpu/gl/GrGLUtil.cpp',
270 '../src/gpu/gl/GrGLVertexBuffer.cpp',
271 '../src/gpu/gl/GrGLVertexBuffer.h',
272 '../src/gpu/gl/GrGpuGL.cpp',
273 '../src/gpu/gl/GrGpuGL.h',
274 '../src/gpu/gl/GrGpuGLShaders.cpp',
275 '../src/gpu/gl/GrGpuGLShaders.h',
epoger@google.comae85aea2011-05-31 13:50:51 +0000276
bsalomon@google.com373a6632011-10-19 20:43:20 +0000277 '../src/gpu/mac/GrGLCreateNativeInterface_mac.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000278
bsalomon@google.com373a6632011-10-19 20:43:20 +0000279 '../src/gpu/win/GrGLCreateNativeInterface_win.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000280
bsalomon@google.com373a6632011-10-19 20:43:20 +0000281 '../src/gpu/unix/GrGLCreateNativeInterface_unix.cpp',
282
djsollen@google.com58629292011-11-03 13:08:29 +0000283 '../src/gpu/android/GrGLCreateNativeInterface_android.cpp',
284
bsalomon@google.com373a6632011-10-19 20:43:20 +0000285 '../src/gpu/mesa/GrGLCreateMesaInterface.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000286 ],
287 'defines': [
288 'GR_IMPLEMENTATION=1',
289 ],
290 'conditions': [
epoger@google.com8846cb22011-07-01 20:20:07 +0000291 [ 'skia_os == "linux"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000292 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000293 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
294 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000295 ],
296 'link_settings': {
297 'libraries': [
298 '-lGL',
299 '-lX11',
300 ],
301 },
302 }],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000303 [ 'skia_mesa and skia_os == "linux"', {
304 'link_settings': {
305 'libraries': [
306 '-lOSMesa',
307 ],
308 },
309 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000310 [ 'skia_os == "mac"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000311 'link_settings': {
312 'libraries': [
313 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
314 ],
315 },
316 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000317 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
318 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000319 ],
bsalomon@google.com373a6632011-10-19 20:43:20 +0000320 }],
321 [ 'skia_mesa and skia_os == "mac"', {
322 'link_settings': {
323 'libraries': [
324 '$(SDKROOT)/usr/X11/lib/libOSMesa.dylib',
325 ],
326 },
327 'include_dirs': [
328 '$(SDKROOT)/usr/X11/include/',
329 ],
330 }],
331 [ 'not skia_mesa', {
332 'sources!': [
333 '../src/gpu/mesa/GrGLCreateMesaInterface.cpp',
334 ],
335 }],
epoger@google.com8846cb22011-07-01 20:20:07 +0000336 [ 'skia_os == "win"', {
epoger@google.comae85aea2011-05-31 13:50:51 +0000337 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000338 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
339 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
epoger@google.comae85aea2011-05-31 13:50:51 +0000340 ],
341 }],
djsollen@google.com58629292011-11-03 13:08:29 +0000342 [ 'skia_os == "android"', {
343 'sources!': [
tomhudson@google.com40725562012-02-10 21:35:06 +0000344 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
345 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
djsollen@google.com58629292011-11-03 13:08:29 +0000346 ],
347 'link_settings': {
348 'libraries': [
349 '-lGLESv2',
350 '-lEGL',
djsollen@google.com58629292011-11-03 13:08:29 +0000351 ],
352 },
353 }],
epoger@google.comae85aea2011-05-31 13:50:51 +0000354 ],
epoger@google.comae85aea2011-05-31 13:50:51 +0000355 },
356 ],
357}
358
359# Local Variables:
360# tab-width:2
361# indent-tabs-mode:nil
362# End:
363# vim: set expandtab tabstop=2 shiftwidth=2: