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