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