2011-05-31 13:50:51 +00:00
|
|
|
{
|
|
|
|
'includes': [
|
2011-07-01 17:16:26 +00:00
|
|
|
'common.gypi',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'skgr',
|
|
|
|
'type': 'static_library',
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/config',
|
|
|
|
'../include/core',
|
|
|
|
'../src/core',
|
|
|
|
'../include/gpu',
|
|
|
|
'../gpu/include',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'../include/gpu/SkGpuCanvas.h',
|
|
|
|
'../include/gpu/SkGpuDevice.h',
|
|
|
|
'../include/gpu/SkGpuDeviceFactory.h',
|
|
|
|
'../include/gpu/SkGr.h',
|
|
|
|
'../include/gpu/SkGrTexturePixelRef.h',
|
|
|
|
|
|
|
|
'../src/gpu/GrPrintf_skia.cpp',
|
|
|
|
'../src/gpu/SkGpuCanvas.cpp',
|
|
|
|
'../src/gpu/SkGpuDevice.cpp',
|
|
|
|
'../src/gpu/SkGr.cpp',
|
|
|
|
'../src/gpu/SkGrFontScaler.cpp',
|
|
|
|
'../src/gpu/SkGrTexturePixelRef.cpp',
|
|
|
|
],
|
|
|
|
'conditions': [
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "linux"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'defines': [
|
|
|
|
'GR_LINUX_BUILD=1',
|
|
|
|
],
|
|
|
|
}],
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "mac"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'defines': [
|
|
|
|
'GR_MAC_BUILD=1',
|
|
|
|
],
|
|
|
|
}],
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "win"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'defines': [
|
|
|
|
'GR_WIN32_BUILD=1',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'conditions': [
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "linux"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'defines': [
|
|
|
|
'GR_LINUX_BUILD=1',
|
|
|
|
],
|
|
|
|
}],
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "mac"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'defines': [
|
|
|
|
'GR_MAC_BUILD=1',
|
|
|
|
],
|
|
|
|
}],
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "win"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'defines': [
|
|
|
|
'GR_WIN32_BUILD=1',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/gpu',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'gr',
|
|
|
|
'type': 'static_library',
|
|
|
|
'include_dirs': [
|
|
|
|
'../gpu/include',
|
|
|
|
'../include/core',
|
|
|
|
'../include/config',
|
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'libtess.gyp:libtess',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'../gpu/include/GrAllocator.h',
|
|
|
|
'../gpu/include/GrAllocPool.h',
|
|
|
|
'../gpu/include/GrAtlas.h',
|
|
|
|
'../gpu/include/GrClip.h',
|
|
|
|
'../gpu/include/GrClipIterator.h',
|
|
|
|
'../gpu/include/GrColor.h',
|
|
|
|
'../gpu/include/GrConfig.h',
|
|
|
|
'../gpu/include/GrContext.h',
|
|
|
|
'../gpu/include/GrContext_impl.h',
|
|
|
|
'../gpu/include/GrDrawTarget.h',
|
|
|
|
'../gpu/include/GrFontScaler.h',
|
|
|
|
'../gpu/include/GrGeometryBuffer.h',
|
|
|
|
'../gpu/include/GrGLConfig.h',
|
|
|
|
'../gpu/include/GrGLConfig_chrome.h',
|
|
|
|
'../gpu/include/GrGLInterface.h',
|
|
|
|
'../gpu/include/GrGlyph.h',
|
|
|
|
'../gpu/include/GrGpu.h',
|
|
|
|
'../gpu/include/GrGpuVertex.h',
|
|
|
|
'../gpu/include/GrIndexBuffer.h',
|
|
|
|
'../gpu/include/GrInOrderDrawBuffer.h',
|
|
|
|
'../gpu/include/GrInstanceCounter.h',
|
|
|
|
'../gpu/include/GrIPoint.h',
|
|
|
|
'../gpu/include/GrKey.h',
|
|
|
|
'../gpu/include/GrMatrix.h',
|
|
|
|
'../gpu/include/GrMesh.h',
|
|
|
|
'../gpu/include/GrNoncopyable.h',
|
|
|
|
'../gpu/include/GrPaint.h',
|
|
|
|
'../gpu/include/GrPath.h',
|
|
|
|
'../gpu/include/GrPathRenderer.h',
|
|
|
|
'../gpu/include/GrPathSink.h',
|
|
|
|
'../gpu/include/GrPlotMgr.h',
|
|
|
|
'../gpu/include/GrPoint.h',
|
|
|
|
'../gpu/include/GrRandom.h',
|
|
|
|
'../gpu/include/GrRect.h',
|
|
|
|
'../gpu/include/GrRectanizer.h',
|
|
|
|
'../gpu/include/GrRefCnt.h',
|
2011-07-29 15:13:20 +00:00
|
|
|
'../gpu/include/GrRenderTarget.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../gpu/include/GrResource.h',
|
|
|
|
'../gpu/include/GrSamplerState.h',
|
|
|
|
'../gpu/include/GrScalar.h',
|
|
|
|
'../gpu/include/GrStencil.h',
|
|
|
|
'../gpu/include/GrStopwatch.h',
|
|
|
|
'../gpu/include/GrStringBuilder.h',
|
|
|
|
'../gpu/include/GrTArray.h',
|
|
|
|
'../gpu/include/GrTBSearch.h',
|
|
|
|
'../gpu/include/GrTDArray.h',
|
|
|
|
'../gpu/include/GrTesselatedPathRenderer.h',
|
|
|
|
'../gpu/include/GrTextContext.h',
|
|
|
|
'../gpu/include/GrTextStrike.h',
|
|
|
|
'../gpu/include/GrTexture.h',
|
|
|
|
'../gpu/include/GrTHashCache.h',
|
|
|
|
'../gpu/include/GrTLList.h',
|
|
|
|
'../gpu/include/GrTypes.h',
|
|
|
|
'../gpu/include/GrUserConfig.h',
|
|
|
|
'../gpu/include/GrVertexBuffer.h',
|
|
|
|
|
|
|
|
'../gpu/src/GrAllocPool.cpp',
|
|
|
|
'../gpu/src/GrAtlas.cpp',
|
|
|
|
'../gpu/src/GrBinHashKey.h',
|
|
|
|
'../gpu/src/GrBufferAllocPool.cpp',
|
|
|
|
'../gpu/src/GrBufferAllocPool.h',
|
|
|
|
'../gpu/src/GrClip.cpp',
|
|
|
|
'../gpu/src/GrContext.cpp',
|
|
|
|
'../gpu/src/GrCreatePathRenderer_none.cpp',
|
|
|
|
'../gpu/src/GrDrawTarget.cpp',
|
|
|
|
'../gpu/src/GrGLDefaultInterface_none.cpp',
|
|
|
|
'../gpu/src/GrGLIndexBuffer.cpp',
|
2011-07-29 13:39:53 +00:00
|
|
|
'../gpu/src/GrGLIndexBuffer.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../gpu/src/GrGLInterface.cpp',
|
2011-07-29 13:39:53 +00:00
|
|
|
'../gpu/src/GrGLIRect.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../gpu/src/GrGLProgram.cpp',
|
|
|
|
'../gpu/src/GrGLProgram.h',
|
2011-07-29 15:13:20 +00:00
|
|
|
'../gpu/src/GrGLRenderTarget.cpp',
|
|
|
|
'../gpu/src/GrGLRenderTarget.h',
|
2011-08-03 15:18:33 +00:00
|
|
|
'../gpu/src/GrGLStencilBuffer.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../gpu/src/GrGLTexture.cpp',
|
2011-07-29 13:39:53 +00:00
|
|
|
'../gpu/src/GrGLTexture.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../gpu/src/GrGLUtil.cpp',
|
|
|
|
'../gpu/src/GrGLVertexBuffer.cpp',
|
2011-07-29 13:39:53 +00:00
|
|
|
'../gpu/src/GrGLVertexBuffer.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../gpu/src/GrGpu.cpp',
|
|
|
|
'../gpu/src/GrGpuFactory.cpp',
|
|
|
|
'../gpu/src/GrGpuGL.cpp',
|
|
|
|
'../gpu/src/GrGpuGL.h',
|
|
|
|
'../gpu/src/GrGpuGLFixed.cpp',
|
|
|
|
'../gpu/src/GrGpuGLFixed.h',
|
|
|
|
'../gpu/src/GrGpuGLShaders.cpp',
|
|
|
|
'../gpu/src/GrGpuGLShaders.h',
|
|
|
|
'../gpu/src/GrInOrderDrawBuffer.cpp',
|
|
|
|
'../gpu/src/GrMatrix.cpp',
|
|
|
|
'../gpu/src/GrMemory.cpp',
|
|
|
|
'../gpu/src/GrPathRenderer.cpp',
|
|
|
|
'../gpu/src/GrPathUtils.cpp',
|
|
|
|
'../gpu/src/GrPathUtils.h',
|
|
|
|
'../gpu/src/GrRectanizer.cpp',
|
|
|
|
'../gpu/src/GrRedBlackTree.h',
|
2011-07-29 15:13:20 +00:00
|
|
|
'../gpu/src/GrRenderTarget.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../gpu/src/GrResource.cpp',
|
2011-07-26 20:45:30 +00:00
|
|
|
'../gpu/src/GrResourceCache.cpp',
|
|
|
|
'../gpu/src/GrResourceCache.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../gpu/src/GrStencil.cpp',
|
2011-08-03 15:18:33 +00:00
|
|
|
'../gpu/src/GrStencilBuffer.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../gpu/src/GrTesselatedPathRenderer.cpp',
|
|
|
|
'../gpu/src/GrTextContext.cpp',
|
|
|
|
'../gpu/src/GrTextStrike.cpp',
|
|
|
|
'../gpu/src/GrTextStrike_impl.h',
|
|
|
|
'../gpu/src/GrTexture.cpp',
|
|
|
|
'../gpu/src/gr_unittests.cpp',
|
|
|
|
|
|
|
|
'../gpu/src/mac/GrGLDefaultInterface_mac.cpp',
|
|
|
|
|
|
|
|
'../gpu/src/win/GrGLDefaultInterface_win.cpp',
|
|
|
|
|
|
|
|
'../gpu/src/unix/GrGLDefaultInterface_unix.cpp',
|
|
|
|
|
|
|
|
'../gpu/src/mesa/GrGLDefaultInterface_mesa.cpp',
|
|
|
|
],
|
|
|
|
'sources!': [
|
|
|
|
'../gpu/src/mesa/GrGLDefaultInterface_mesa.cpp',
|
|
|
|
],
|
|
|
|
'defines': [
|
|
|
|
'GR_IMPLEMENTATION=1',
|
2011-07-29 20:29:05 +00:00
|
|
|
'GR_USE_PLATFORM_CREATE_SAMPLE_COUNT=1',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'conditions': [
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "linux"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'defines': [
|
|
|
|
'GR_LINUX_BUILD=1',
|
|
|
|
],
|
|
|
|
'sources!': [
|
|
|
|
'../gpu/src/GrGLDefaultInterface_none.cpp',
|
|
|
|
],
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-lGL',
|
|
|
|
'-lX11',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "mac"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'defines': [
|
|
|
|
'GR_MAC_BUILD=1',
|
|
|
|
],
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'sources!': [
|
|
|
|
'../gpu/src/GrGLDefaultInterface_none.cpp',
|
|
|
|
],
|
|
|
|
}],
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "win"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'defines': [
|
|
|
|
'GR_WIN32_BUILD=1',
|
|
|
|
'GR_GL_FUNCTION_TYPE=__stdcall',
|
|
|
|
],
|
|
|
|
'sources!': [
|
|
|
|
'../gpu/src/GrGLDefaultInterface_none.cpp',
|
|
|
|
],
|
|
|
|
}],
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os != "win"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'sources!': [
|
|
|
|
'../gpu/src/win/GrGLDefaultInterface_win.cpp',
|
|
|
|
],
|
|
|
|
}],
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os != "mac"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'sources!': [
|
|
|
|
'../gpu/src/mac/GrGLDefaultInterface_mac.cpp',
|
|
|
|
],
|
|
|
|
}],
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os != "linux"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'sources!': [
|
|
|
|
'../gpu/src/unix/GrGLDefaultInterface_unix.cpp',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'conditions': [
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "linux"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'defines': [
|
|
|
|
'GR_LINUX_BUILD=1',
|
|
|
|
],
|
|
|
|
}],
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "mac"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'defines': [
|
|
|
|
'GR_MAC_BUILD=1',
|
|
|
|
],
|
|
|
|
}],
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "win"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'defines': [
|
|
|
|
'GR_WIN32_BUILD=1',
|
|
|
|
'GR_GL_FUNCTION_TYPE=__stdcall',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../gpu/include',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# tab-width:2
|
|
|
|
# indent-tabs-mode:nil
|
|
|
|
# End:
|
|
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|