| 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', |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 14 | ], |
| 15 | 'sources': [ |
| 16 | '../include/gpu/SkGpuCanvas.h', |
| 17 | '../include/gpu/SkGpuDevice.h', |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 18 | '../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.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 29 | [ 'skia_os == "linux"', { |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 30 | 'defines': [ |
| 31 | 'GR_LINUX_BUILD=1', |
| 32 | ], |
| 33 | }], |
| epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 34 | [ 'skia_os == "mac"', { |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 35 | 'defines': [ |
| 36 | 'GR_MAC_BUILD=1', |
| 37 | ], |
| 38 | }], |
| epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 39 | [ 'skia_os == "win"', { |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 40 | 'defines': [ |
| 41 | 'GR_WIN32_BUILD=1', |
| 42 | ], |
| 43 | }], |
| 44 | ], |
| 45 | 'direct_dependent_settings': { |
| 46 | 'conditions': [ |
| epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 47 | [ 'skia_os == "linux"', { |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 48 | 'defines': [ |
| 49 | 'GR_LINUX_BUILD=1', |
| 50 | ], |
| 51 | }], |
| epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 52 | [ 'skia_os == "mac"', { |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 53 | 'defines': [ |
| 54 | 'GR_MAC_BUILD=1', |
| 55 | ], |
| 56 | }], |
| epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 57 | [ 'skia_os == "win"', { |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 58 | '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.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 72 | '../include/core', |
| 73 | '../include/config', |
| bsalomon@google.com | d38f137 | 2011-10-12 19:53:16 +0000 | [diff] [blame^] | 74 | '../include/gpu', |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 75 | ], |
| 76 | 'dependencies': [ |
| 77 | 'libtess.gyp:libtess', |
| 78 | ], |
| 79 | 'sources': [ |
| bsalomon@google.com | d38f137 | 2011-10-12 19:53:16 +0000 | [diff] [blame^] | 80 | '../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.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 125 | |
| bsalomon@google.com | d38f137 | 2011-10-12 19:53:16 +0000 | [diff] [blame^] | 126 | '../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.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 195 | |
| bsalomon@google.com | d38f137 | 2011-10-12 19:53:16 +0000 | [diff] [blame^] | 196 | '../src/gpu/mac/GrGLDefaultInterface_mac.cpp', |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 197 | |
| bsalomon@google.com | d38f137 | 2011-10-12 19:53:16 +0000 | [diff] [blame^] | 198 | '../src/gpu/win/GrGLDefaultInterface_win.cpp', |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 199 | |
| bsalomon@google.com | d38f137 | 2011-10-12 19:53:16 +0000 | [diff] [blame^] | 200 | '../src/gpu/unix/GrGLDefaultInterface_unix.cpp', |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 201 | |
| bsalomon@google.com | d38f137 | 2011-10-12 19:53:16 +0000 | [diff] [blame^] | 202 | '../src/gpu/mesa/GrGLDefaultInterface_mesa.cpp', |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 203 | ], |
| 204 | 'sources!': [ |
| bsalomon@google.com | d38f137 | 2011-10-12 19:53:16 +0000 | [diff] [blame^] | 205 | '../src/gpu/mesa/GrGLDefaultInterface_mesa.cpp', |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 206 | ], |
| 207 | 'defines': [ |
| 208 | 'GR_IMPLEMENTATION=1', |
| 209 | ], |
| 210 | 'conditions': [ |
| epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 211 | [ 'skia_os == "linux"', { |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 212 | 'defines': [ |
| 213 | 'GR_LINUX_BUILD=1', |
| 214 | ], |
| 215 | 'sources!': [ |
| bsalomon@google.com | d38f137 | 2011-10-12 19:53:16 +0000 | [diff] [blame^] | 216 | '../src/gpu/GrGLDefaultInterface_none.cpp', |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 217 | ], |
| 218 | 'link_settings': { |
| 219 | 'libraries': [ |
| 220 | '-lGL', |
| 221 | '-lX11', |
| 222 | ], |
| 223 | }, |
| 224 | }], |
| epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 225 | [ 'skia_os == "mac"', { |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 226 | '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.com | d38f137 | 2011-10-12 19:53:16 +0000 | [diff] [blame^] | 235 | '../src/gpu/GrGLDefaultInterface_none.cpp', |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 236 | ], |
| 237 | }], |
| epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 238 | [ 'skia_os == "win"', { |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 239 | 'defines': [ |
| 240 | 'GR_WIN32_BUILD=1', |
| 241 | 'GR_GL_FUNCTION_TYPE=__stdcall', |
| 242 | ], |
| 243 | 'sources!': [ |
| bsalomon@google.com | d38f137 | 2011-10-12 19:53:16 +0000 | [diff] [blame^] | 244 | '../src/gpu/GrGLDefaultInterface_none.cpp', |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 245 | ], |
| 246 | }], |
| epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 247 | [ 'skia_os != "win"', { |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 248 | 'sources!': [ |
| bsalomon@google.com | d38f137 | 2011-10-12 19:53:16 +0000 | [diff] [blame^] | 249 | '../src/gpu/win/GrGLDefaultInterface_win.cpp', |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 250 | ], |
| 251 | }], |
| epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 252 | [ 'skia_os != "mac"', { |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 253 | 'sources!': [ |
| bsalomon@google.com | d38f137 | 2011-10-12 19:53:16 +0000 | [diff] [blame^] | 254 | '../src/gpu/mac/GrGLDefaultInterface_mac.cpp', |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 255 | ], |
| 256 | }], |
| epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 257 | [ 'skia_os != "linux"', { |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 258 | 'sources!': [ |
| bsalomon@google.com | d38f137 | 2011-10-12 19:53:16 +0000 | [diff] [blame^] | 259 | '../src/gpu/unix/GrGLDefaultInterface_unix.cpp', |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 260 | ], |
| 261 | }], |
| 262 | ], |
| 263 | 'direct_dependent_settings': { |
| 264 | 'conditions': [ |
| epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 265 | [ 'skia_os == "linux"', { |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 266 | 'defines': [ |
| 267 | 'GR_LINUX_BUILD=1', |
| 268 | ], |
| 269 | }], |
| epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 270 | [ 'skia_os == "mac"', { |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 271 | 'defines': [ |
| 272 | 'GR_MAC_BUILD=1', |
| 273 | ], |
| 274 | }], |
| epoger@google.com | 8846cb2 | 2011-07-01 20:20:07 +0000 | [diff] [blame] | 275 | [ 'skia_os == "win"', { |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 276 | 'defines': [ |
| 277 | 'GR_WIN32_BUILD=1', |
| 278 | 'GR_GL_FUNCTION_TYPE=__stdcall', |
| 279 | ], |
| 280 | }], |
| 281 | ], |
| 282 | 'include_dirs': [ |
| bsalomon@google.com | d38f137 | 2011-10-12 19:53:16 +0000 | [diff] [blame^] | 283 | '../include/gpu', |
| epoger@google.com | ae85aea | 2011-05-31 13:50:51 +0000 | [diff] [blame] | 284 | ], |
| 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: |