epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 1 | { |
| 2 | 'includes': [ |
epoger@google.com | 5351b37 | 2011-07-01 17:16:26 +0000 | [diff] [blame] | 3 | 'common.gypi', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 4 | ], |
| 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', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 19 | '../include/gpu/SkGr.h', |
| 20 | '../include/gpu/SkGrTexturePixelRef.h', |
| 21 | |
| 22 | '../src/gpu/GrPrintf_skia.cpp', |
| 23 | '../src/gpu/SkGpuCanvas.cpp', |
| 24 | '../src/gpu/SkGpuDevice.cpp', |
| 25 | '../src/gpu/SkGr.cpp', |
| 26 | '../src/gpu/SkGrFontScaler.cpp', |
| 27 | '../src/gpu/SkGrTexturePixelRef.cpp', |
| 28 | ], |
| 29 | 'conditions': [ |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 30 | [ 'skia_os == "linux"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 31 | 'defines': [ |
| 32 | 'GR_LINUX_BUILD=1', |
| 33 | ], |
| 34 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 35 | [ 'skia_os == "mac"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 36 | 'defines': [ |
| 37 | 'GR_MAC_BUILD=1', |
| 38 | ], |
| 39 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 40 | [ 'skia_os == "win"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 41 | 'defines': [ |
| 42 | 'GR_WIN32_BUILD=1', |
| 43 | ], |
| 44 | }], |
| 45 | ], |
| 46 | 'direct_dependent_settings': { |
| 47 | 'conditions': [ |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 48 | [ 'skia_os == "linux"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 49 | 'defines': [ |
| 50 | 'GR_LINUX_BUILD=1', |
| 51 | ], |
| 52 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 53 | [ 'skia_os == "mac"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 54 | 'defines': [ |
| 55 | 'GR_MAC_BUILD=1', |
| 56 | ], |
| 57 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 58 | [ 'skia_os == "win"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 59 | 'defines': [ |
| 60 | 'GR_WIN32_BUILD=1', |
| 61 | ], |
| 62 | }], |
| 63 | ], |
| 64 | 'include_dirs': [ |
| 65 | '../include/gpu', |
| 66 | ], |
| 67 | }, |
| 68 | }, |
| 69 | { |
| 70 | 'target_name': 'gr', |
| 71 | 'type': 'static_library', |
| 72 | 'include_dirs': [ |
| 73 | '../gpu/include', |
| 74 | '../include/core', |
| 75 | '../include/config', |
| 76 | ], |
| 77 | 'dependencies': [ |
| 78 | 'libtess.gyp:libtess', |
| 79 | ], |
| 80 | 'sources': [ |
| 81 | '../gpu/include/GrAllocator.h', |
| 82 | '../gpu/include/GrAllocPool.h', |
| 83 | '../gpu/include/GrAtlas.h', |
| 84 | '../gpu/include/GrClip.h', |
| 85 | '../gpu/include/GrClipIterator.h', |
| 86 | '../gpu/include/GrColor.h', |
| 87 | '../gpu/include/GrConfig.h', |
| 88 | '../gpu/include/GrContext.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 89 | '../gpu/include/GrFontScaler.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 90 | '../gpu/include/GrGLConfig.h', |
| 91 | '../gpu/include/GrGLConfig_chrome.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 92 | '../gpu/include/GrGLInterface.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 93 | '../gpu/include/GrGlyph.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 94 | '../gpu/include/GrGpuVertex.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 95 | '../gpu/include/GrInstanceCounter.h', |
| 96 | '../gpu/include/GrIPoint.h', |
| 97 | '../gpu/include/GrKey.h', |
| 98 | '../gpu/include/GrMatrix.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 99 | '../gpu/include/GrMesh.h', |
| 100 | '../gpu/include/GrNoncopyable.h', |
| 101 | '../gpu/include/GrPaint.h', |
| 102 | '../gpu/include/GrPath.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 103 | '../gpu/include/GrPathSink.h', |
| 104 | '../gpu/include/GrPlotMgr.h', |
| 105 | '../gpu/include/GrPoint.h', |
| 106 | '../gpu/include/GrRandom.h', |
| 107 | '../gpu/include/GrRect.h', |
| 108 | '../gpu/include/GrRectanizer.h', |
| 109 | '../gpu/include/GrRefCnt.h', |
bsalomon@google.com | aa5b673 | 2011-07-29 15:13:20 +0000 | [diff] [blame] | 110 | '../gpu/include/GrRenderTarget.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 111 | '../gpu/include/GrResource.h', |
| 112 | '../gpu/include/GrSamplerState.h', |
| 113 | '../gpu/include/GrScalar.h', |
| 114 | '../gpu/include/GrStencil.h', |
| 115 | '../gpu/include/GrStopwatch.h', |
| 116 | '../gpu/include/GrStringBuilder.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 117 | '../gpu/include/GrTBSearch.h', |
| 118 | '../gpu/include/GrTDArray.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 119 | '../gpu/include/GrTextContext.h', |
| 120 | '../gpu/include/GrTextStrike.h', |
| 121 | '../gpu/include/GrTexture.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 122 | '../gpu/include/GrTHashCache.h', |
| 123 | '../gpu/include/GrTLList.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 124 | '../gpu/include/GrTypes.h', |
| 125 | '../gpu/include/GrUserConfig.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 126 | |
bsalomon@google.com | 542f585 | 2011-08-30 18:17:35 +0000 | [diff] [blame] | 127 | '../gpu/src/GrAAHairLinePathRenderer.cpp', |
| 128 | '../gpu/src/GrAAHairLinePathRenderer.h', |
bsalomon@google.com | aeb2160 | 2011-08-30 18:13:44 +0000 | [diff] [blame] | 129 | '../gpu/src/GrAddPathRenderers_aahairline.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 130 | '../gpu/src/GrAllocPool.cpp', |
| 131 | '../gpu/src/GrAtlas.cpp', |
| 132 | '../gpu/src/GrBinHashKey.h', |
| 133 | '../gpu/src/GrBufferAllocPool.cpp', |
| 134 | '../gpu/src/GrBufferAllocPool.h', |
| 135 | '../gpu/src/GrClip.cpp', |
| 136 | '../gpu/src/GrContext.cpp', |
bsalomon@google.com | 3008519 | 2011-08-19 15:42:31 +0000 | [diff] [blame] | 137 | '../gpu/src/GrDefaultPathRenderer.cpp', |
| 138 | '../gpu/src/GrDefaultPathRenderer.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 139 | '../gpu/src/GrDrawTarget.cpp', |
bsalomon@google.com | 583a1e3 | 2011-08-17 13:42:46 +0000 | [diff] [blame] | 140 | '../gpu/src/GrDrawTarget.h', |
bsalomon@google.com | 4d3aaaf | 2011-08-16 15:09:46 +0000 | [diff] [blame] | 141 | '../gpu/src/GrGeometryBuffer.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 142 | '../gpu/src/GrGLDefaultInterface_none.cpp', |
| 143 | '../gpu/src/GrGLIndexBuffer.cpp', |
bsalomon@google.com | e14490a | 2011-07-29 13:39:53 +0000 | [diff] [blame] | 144 | '../gpu/src/GrGLIndexBuffer.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 145 | '../gpu/src/GrGLInterface.cpp', |
bsalomon@google.com | e14490a | 2011-07-29 13:39:53 +0000 | [diff] [blame] | 146 | '../gpu/src/GrGLIRect.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 147 | '../gpu/src/GrGLProgram.cpp', |
| 148 | '../gpu/src/GrGLProgram.h', |
bsalomon@google.com | aa5b673 | 2011-07-29 15:13:20 +0000 | [diff] [blame] | 149 | '../gpu/src/GrGLRenderTarget.cpp', |
| 150 | '../gpu/src/GrGLRenderTarget.h', |
bsalomon@google.com | 4fa6694 | 2011-09-20 19:06:12 +0000 | [diff] [blame] | 151 | '../gpu/src/GrGLShaderVar.h', |
bsalomon@google.com | 0b77d68 | 2011-08-19 13:28:54 +0000 | [diff] [blame] | 152 | '../gpu/src/GrGLStencilBuffer.cpp', |
bsalomon@google.com | 81c3f8d | 2011-08-03 15:18:33 +0000 | [diff] [blame] | 153 | '../gpu/src/GrGLStencilBuffer.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 154 | '../gpu/src/GrGLTexture.cpp', |
bsalomon@google.com | e14490a | 2011-07-29 13:39:53 +0000 | [diff] [blame] | 155 | '../gpu/src/GrGLTexture.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 156 | '../gpu/src/GrGLUtil.cpp', |
| 157 | '../gpu/src/GrGLVertexBuffer.cpp', |
bsalomon@google.com | e14490a | 2011-07-29 13:39:53 +0000 | [diff] [blame] | 158 | '../gpu/src/GrGLVertexBuffer.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 159 | '../gpu/src/GrGpu.cpp', |
bsalomon@google.com | 4d3aaaf | 2011-08-16 15:09:46 +0000 | [diff] [blame] | 160 | '../gpu/src/GrGpu.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 161 | '../gpu/src/GrGpuFactory.cpp', |
| 162 | '../gpu/src/GrGpuGL.cpp', |
| 163 | '../gpu/src/GrGpuGL.h', |
| 164 | '../gpu/src/GrGpuGLFixed.cpp', |
| 165 | '../gpu/src/GrGpuGLFixed.h', |
| 166 | '../gpu/src/GrGpuGLShaders.cpp', |
| 167 | '../gpu/src/GrGpuGLShaders.h', |
bsalomon@google.com | 4d3aaaf | 2011-08-16 15:09:46 +0000 | [diff] [blame] | 168 | '../gpu/src/GrIndexBuffer.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 169 | '../gpu/src/GrInOrderDrawBuffer.cpp', |
bsalomon@google.com | 4d3aaaf | 2011-08-16 15:09:46 +0000 | [diff] [blame] | 170 | '../gpu/src/GrInOrderDrawBuffer.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 171 | '../gpu/src/GrMatrix.cpp', |
| 172 | '../gpu/src/GrMemory.cpp', |
bsalomon@google.com | 3008519 | 2011-08-19 15:42:31 +0000 | [diff] [blame] | 173 | '../gpu/src/GrPathRendererChain.cpp', |
| 174 | '../gpu/src/GrPathRendererChain.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 175 | '../gpu/src/GrPathRenderer.cpp', |
bsalomon@google.com | 583a1e3 | 2011-08-17 13:42:46 +0000 | [diff] [blame] | 176 | '../gpu/src/GrPathRenderer.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 177 | '../gpu/src/GrPathUtils.cpp', |
| 178 | '../gpu/src/GrPathUtils.h', |
| 179 | '../gpu/src/GrRectanizer.cpp', |
| 180 | '../gpu/src/GrRedBlackTree.h', |
bsalomon@google.com | aa5b673 | 2011-07-29 15:13:20 +0000 | [diff] [blame] | 181 | '../gpu/src/GrRenderTarget.cpp', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 182 | '../gpu/src/GrResource.cpp', |
bsalomon@google.com | 50398bf | 2011-07-26 20:45:30 +0000 | [diff] [blame] | 183 | '../gpu/src/GrResourceCache.cpp', |
| 184 | '../gpu/src/GrResourceCache.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 185 | '../gpu/src/GrStencil.cpp', |
bsalomon@google.com | 558a75b | 2011-08-08 17:01:14 +0000 | [diff] [blame] | 186 | '../gpu/src/GrStencilBuffer.cpp', |
bsalomon@google.com | 81c3f8d | 2011-08-03 15:18:33 +0000 | [diff] [blame] | 187 | '../gpu/src/GrStencilBuffer.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 188 | '../gpu/src/GrTesselatedPathRenderer.cpp', |
bsalomon@google.com | 583a1e3 | 2011-08-17 13:42:46 +0000 | [diff] [blame] | 189 | '../gpu/src/GrTesselatedPathRenderer.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 190 | '../gpu/src/GrTextContext.cpp', |
| 191 | '../gpu/src/GrTextStrike.cpp', |
| 192 | '../gpu/src/GrTextStrike_impl.h', |
| 193 | '../gpu/src/GrTexture.cpp', |
bsalomon@google.com | 4d3aaaf | 2011-08-16 15:09:46 +0000 | [diff] [blame] | 194 | '../gpu/src/GrVertexBuffer.h', |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 195 | '../gpu/src/gr_unittests.cpp', |
| 196 | |
| 197 | '../gpu/src/mac/GrGLDefaultInterface_mac.cpp', |
| 198 | |
| 199 | '../gpu/src/win/GrGLDefaultInterface_win.cpp', |
| 200 | |
| 201 | '../gpu/src/unix/GrGLDefaultInterface_unix.cpp', |
| 202 | |
| 203 | '../gpu/src/mesa/GrGLDefaultInterface_mesa.cpp', |
| 204 | ], |
| 205 | 'sources!': [ |
| 206 | '../gpu/src/mesa/GrGLDefaultInterface_mesa.cpp', |
| 207 | ], |
| 208 | 'defines': [ |
| 209 | 'GR_IMPLEMENTATION=1', |
| 210 | ], |
| 211 | 'conditions': [ |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 212 | [ 'skia_os == "linux"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 213 | 'defines': [ |
| 214 | 'GR_LINUX_BUILD=1', |
| 215 | ], |
| 216 | 'sources!': [ |
| 217 | '../gpu/src/GrGLDefaultInterface_none.cpp', |
| 218 | ], |
| 219 | 'link_settings': { |
| 220 | 'libraries': [ |
| 221 | '-lGL', |
| 222 | '-lX11', |
| 223 | ], |
| 224 | }, |
| 225 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 226 | [ 'skia_os == "mac"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 227 | 'defines': [ |
| 228 | 'GR_MAC_BUILD=1', |
| 229 | ], |
| 230 | 'link_settings': { |
| 231 | 'libraries': [ |
| 232 | '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', |
| 233 | ], |
| 234 | }, |
| 235 | 'sources!': [ |
| 236 | '../gpu/src/GrGLDefaultInterface_none.cpp', |
| 237 | ], |
| 238 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 239 | [ 'skia_os == "win"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 240 | 'defines': [ |
| 241 | 'GR_WIN32_BUILD=1', |
| 242 | 'GR_GL_FUNCTION_TYPE=__stdcall', |
| 243 | ], |
| 244 | 'sources!': [ |
| 245 | '../gpu/src/GrGLDefaultInterface_none.cpp', |
| 246 | ], |
| 247 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 248 | [ 'skia_os != "win"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 249 | 'sources!': [ |
| 250 | '../gpu/src/win/GrGLDefaultInterface_win.cpp', |
| 251 | ], |
| 252 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 253 | [ 'skia_os != "mac"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 254 | 'sources!': [ |
| 255 | '../gpu/src/mac/GrGLDefaultInterface_mac.cpp', |
| 256 | ], |
| 257 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 258 | [ 'skia_os != "linux"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 259 | 'sources!': [ |
| 260 | '../gpu/src/unix/GrGLDefaultInterface_unix.cpp', |
| 261 | ], |
| 262 | }], |
| 263 | ], |
| 264 | 'direct_dependent_settings': { |
| 265 | 'conditions': [ |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 266 | [ 'skia_os == "linux"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 267 | 'defines': [ |
| 268 | 'GR_LINUX_BUILD=1', |
| 269 | ], |
| 270 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 271 | [ 'skia_os == "mac"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 272 | 'defines': [ |
| 273 | 'GR_MAC_BUILD=1', |
| 274 | ], |
| 275 | }], |
epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 276 | [ 'skia_os == "win"', { |
epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 277 | 'defines': [ |
| 278 | 'GR_WIN32_BUILD=1', |
| 279 | 'GR_GL_FUNCTION_TYPE=__stdcall', |
| 280 | ], |
| 281 | }], |
| 282 | ], |
| 283 | 'include_dirs': [ |
| 284 | '../gpu/include', |
| 285 | ], |
| 286 | }, |
| 287 | }, |
| 288 | ], |
| 289 | } |
| 290 | |
| 291 | # Local Variables: |
| 292 | # tab-width:2 |
| 293 | # indent-tabs-mode:nil |
| 294 | # End: |
| 295 | # vim: set expandtab tabstop=2 shiftwidth=2: |