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
|
|
|
],
|
2011-10-13 13:33:08 +00:00
|
|
|
'target_defaults': {
|
|
|
|
'conditions': [
|
|
|
|
['skia_os != "win"', {
|
|
|
|
'sources/': [ ['exclude', '_win.(h|cpp)$'],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['skia_os != "mac"', {
|
|
|
|
'sources/': [ ['exclude', '_mac.(h|cpp)$'],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['skia_os != "linux"', {
|
|
|
|
'sources/': [ ['exclude', '_unix.(h|cpp)$'],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['skia_os != "ios"', {
|
|
|
|
'sources/': [ ['exclude', '_iOS.(h|cpp)$'],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['skia_os != "android"', {
|
|
|
|
'sources/': [ ['exclude', '_android.(h|cpp)$'],
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_os == "android"', {
|
|
|
|
'defines': [
|
|
|
|
'GR_ANDROID_BUILD=1',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_os == "mac"', {
|
|
|
|
'defines': [
|
|
|
|
'GR_MAC_BUILD=1',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_os == "linux"', {
|
|
|
|
'defines': [
|
|
|
|
'GR_LINUX_BUILD=1',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_os == "ios"', {
|
|
|
|
'defines': [
|
|
|
|
'GR_IOS_BUILD=1',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_os == "win"', {
|
|
|
|
'defines': [
|
|
|
|
'GR_WIN32_BUILD=1',
|
|
|
|
'GR_GL_FUNCTION_TYPE=__stdcall',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'conditions': [
|
|
|
|
[ 'skia_os == "android"', {
|
|
|
|
'defines': [
|
|
|
|
'GR_ANDROID_BUILD=1',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_os == "mac"', {
|
|
|
|
'defines': [
|
|
|
|
'GR_MAC_BUILD=1',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_os == "linux"', {
|
|
|
|
'defines': [
|
|
|
|
'GR_LINUX_BUILD=1',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_os == "ios"', {
|
|
|
|
'defines': [
|
|
|
|
'GR_IOS_BUILD=1',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_os == "win"', {
|
|
|
|
'defines': [
|
|
|
|
'GR_WIN32_BUILD=1',
|
|
|
|
'GR_GL_FUNCTION_TYPE=__stdcall',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/gpu',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
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',
|
|
|
|
],
|
|
|
|
'sources': [
|
2011-10-19 20:43:20 +00:00
|
|
|
'../include/gpu/SkGLContext.h',
|
|
|
|
'../include/gpu/SkMesaGLContext.h',
|
|
|
|
'../include/gpu/SkNativeGLContext.h',
|
2011-10-27 20:44:19 +00:00
|
|
|
'../include/gpu/SkNullGLContext.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../include/gpu/SkGpuCanvas.h',
|
|
|
|
'../include/gpu/SkGpuDevice.h',
|
|
|
|
'../include/gpu/SkGr.h',
|
|
|
|
'../include/gpu/SkGrTexturePixelRef.h',
|
|
|
|
|
|
|
|
'../src/gpu/GrPrintf_skia.cpp',
|
2011-10-19 20:43:20 +00:00
|
|
|
'../src/gpu/SkGLContext.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
'../src/gpu/SkGpuCanvas.cpp',
|
|
|
|
'../src/gpu/SkGpuDevice.cpp',
|
|
|
|
'../src/gpu/SkGr.cpp',
|
|
|
|
'../src/gpu/SkGrFontScaler.cpp',
|
|
|
|
'../src/gpu/SkGrTexturePixelRef.cpp',
|
2011-10-27 20:44:19 +00:00
|
|
|
'../src/gpu/SkNullGLContext.cpp',
|
2011-10-13 13:33:08 +00:00
|
|
|
|
2011-11-03 13:08:29 +00:00
|
|
|
'../src/gpu/android/SkNativeGLContext_android.cpp',
|
|
|
|
|
2011-10-19 20:43:20 +00:00
|
|
|
'../src/gpu/mac/SkNativeGLContext_mac.cpp',
|
2011-10-13 13:33:08 +00:00
|
|
|
|
2011-10-19 20:43:20 +00:00
|
|
|
'../src/gpu/win/SkNativeGLContext_win.cpp',
|
2011-10-13 13:33:08 +00:00
|
|
|
|
2011-10-19 20:43:20 +00:00
|
|
|
'../src/gpu/unix/SkNativeGLContext_unix.cpp',
|
2011-10-13 13:33:08 +00:00
|
|
|
|
2011-10-19 20:43:20 +00:00
|
|
|
'../src/gpu/mesa/SkMesaGLContext.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
2011-10-19 20:43:20 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'not skia_mesa', {
|
|
|
|
'sources!': [
|
|
|
|
'../src/gpu/mesa/SkMesaGLContext.cpp',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_mesa and skia_os == "mac"', {
|
|
|
|
'include_dirs': [
|
|
|
|
'$(SDKROOT)/usr/X11/include/',
|
|
|
|
],
|
|
|
|
}],
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'gr',
|
|
|
|
'type': 'static_library',
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/core',
|
|
|
|
'../include/config',
|
2011-10-12 19:53:16 +00:00
|
|
|
'../include/gpu',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'dependencies': [
|
|
|
|
'libtess.gyp:libtess',
|
|
|
|
],
|
|
|
|
'sources': [
|
2011-10-12 19:53:16 +00:00
|
|
|
'../include/gpu/GrClip.h',
|
|
|
|
'../include/gpu/GrClipIterator.h',
|
|
|
|
'../include/gpu/GrColor.h',
|
|
|
|
'../include/gpu/GrConfig.h',
|
|
|
|
'../include/gpu/GrContext.h',
|
|
|
|
'../include/gpu/GrFontScaler.h',
|
|
|
|
'../include/gpu/GrGLConfig.h',
|
|
|
|
'../include/gpu/GrGLConfig_chrome.h',
|
2011-11-07 14:56:51 +00:00
|
|
|
'../include/gpu/GrGLDefines.h',
|
2011-10-12 19:53:16 +00:00
|
|
|
'../include/gpu/GrGLInterface.h',
|
|
|
|
'../include/gpu/GrGlyph.h',
|
|
|
|
'../include/gpu/GrInstanceCounter.h',
|
|
|
|
'../include/gpu/GrKey.h',
|
|
|
|
'../include/gpu/GrMatrix.h',
|
|
|
|
'../include/gpu/GrNoncopyable.h',
|
|
|
|
'../include/gpu/GrPaint.h',
|
|
|
|
'../include/gpu/GrPath.h',
|
|
|
|
'../include/gpu/GrPoint.h',
|
|
|
|
'../include/gpu/GrRect.h',
|
|
|
|
'../include/gpu/GrRefCnt.h',
|
|
|
|
'../include/gpu/GrRenderTarget.h',
|
|
|
|
'../include/gpu/GrResource.h',
|
|
|
|
'../include/gpu/GrSamplerState.h',
|
|
|
|
'../include/gpu/GrScalar.h',
|
|
|
|
'../include/gpu/GrTextContext.h',
|
|
|
|
'../include/gpu/GrTexture.h',
|
|
|
|
'../include/gpu/GrTypes.h',
|
|
|
|
'../include/gpu/GrUserConfig.h',
|
2011-05-31 13:50:51 +00:00
|
|
|
|
2011-10-12 19:53:16 +00:00
|
|
|
'../src/gpu/GrAAHairLinePathRenderer.cpp',
|
|
|
|
'../src/gpu/GrAAHairLinePathRenderer.h',
|
|
|
|
'../src/gpu/GrAddPathRenderers_aahairline.cpp',
|
2011-10-20 13:43:13 +00:00
|
|
|
'../src/gpu/GrAllocator.h',
|
|
|
|
'../src/gpu/GrAllocPool.h',
|
2011-10-12 19:53:16 +00:00
|
|
|
'../src/gpu/GrAllocPool.cpp',
|
|
|
|
'../src/gpu/GrAtlas.cpp',
|
2011-10-20 13:43:13 +00:00
|
|
|
'../src/gpu/GrAtlas.h',
|
2011-10-12 19:53:16 +00:00
|
|
|
'../src/gpu/GrBinHashKey.h',
|
|
|
|
'../src/gpu/GrBufferAllocPool.cpp',
|
|
|
|
'../src/gpu/GrBufferAllocPool.h',
|
|
|
|
'../src/gpu/GrClip.cpp',
|
|
|
|
'../src/gpu/GrContext.cpp',
|
|
|
|
'../src/gpu/GrDefaultPathRenderer.cpp',
|
|
|
|
'../src/gpu/GrDefaultPathRenderer.h',
|
2011-10-27 20:21:16 +00:00
|
|
|
'../src/gpu/GrDrawState.h',
|
2011-10-12 19:53:16 +00:00
|
|
|
'../src/gpu/GrDrawTarget.cpp',
|
|
|
|
'../src/gpu/GrDrawTarget.h',
|
|
|
|
'../src/gpu/GrGeometryBuffer.h',
|
2011-10-19 20:43:20 +00:00
|
|
|
'../src/gpu/GrGLCreateNativeInterface_none.cpp',
|
2011-10-27 20:44:19 +00:00
|
|
|
'../src/gpu/GrGLCreateNullInterface.cpp',
|
2011-10-12 19:53:16 +00:00
|
|
|
'../src/gpu/GrGLDefaultInterface_none.cpp',
|
2011-10-19 20:43:20 +00:00
|
|
|
'../src/gpu/GrGLDefaultInterface_native.cpp',
|
2011-10-12 19:53:16 +00:00
|
|
|
'../src/gpu/GrGLIndexBuffer.cpp',
|
|
|
|
'../src/gpu/GrGLIndexBuffer.h',
|
|
|
|
'../src/gpu/GrGLInterface.cpp',
|
|
|
|
'../src/gpu/GrGLIRect.h',
|
|
|
|
'../src/gpu/GrGLProgram.cpp',
|
|
|
|
'../src/gpu/GrGLProgram.h',
|
|
|
|
'../src/gpu/GrGLRenderTarget.cpp',
|
|
|
|
'../src/gpu/GrGLRenderTarget.h',
|
|
|
|
'../src/gpu/GrGLShaderVar.h',
|
2011-12-08 14:44:10 +00:00
|
|
|
'../src/gpu/GrGLSL.cpp',
|
|
|
|
'../src/gpu/GrGLSL.h',
|
2011-10-12 19:53:16 +00:00
|
|
|
'../src/gpu/GrGLStencilBuffer.cpp',
|
|
|
|
'../src/gpu/GrGLStencilBuffer.h',
|
|
|
|
'../src/gpu/GrGLTexture.cpp',
|
|
|
|
'../src/gpu/GrGLTexture.h',
|
|
|
|
'../src/gpu/GrGLUtil.cpp',
|
|
|
|
'../src/gpu/GrGLVertexBuffer.cpp',
|
|
|
|
'../src/gpu/GrGLVertexBuffer.h',
|
|
|
|
'../src/gpu/GrGpu.cpp',
|
|
|
|
'../src/gpu/GrGpu.h',
|
|
|
|
'../src/gpu/GrGpuFactory.cpp',
|
|
|
|
'../src/gpu/GrGpuGL.cpp',
|
|
|
|
'../src/gpu/GrGpuGL.h',
|
|
|
|
'../src/gpu/GrGpuGLShaders.cpp',
|
|
|
|
'../src/gpu/GrGpuGLShaders.h',
|
2011-10-20 13:43:13 +00:00
|
|
|
'../src/gpu/GrGpuVertex.h',
|
2011-10-12 19:53:16 +00:00
|
|
|
'../src/gpu/GrIndexBuffer.h',
|
|
|
|
'../src/gpu/GrInOrderDrawBuffer.cpp',
|
|
|
|
'../src/gpu/GrInOrderDrawBuffer.h',
|
|
|
|
'../src/gpu/GrMatrix.cpp',
|
|
|
|
'../src/gpu/GrMemory.cpp',
|
|
|
|
'../src/gpu/GrPathRendererChain.cpp',
|
|
|
|
'../src/gpu/GrPathRendererChain.h',
|
|
|
|
'../src/gpu/GrPathRenderer.cpp',
|
|
|
|
'../src/gpu/GrPathRenderer.h',
|
|
|
|
'../src/gpu/GrPathUtils.cpp',
|
|
|
|
'../src/gpu/GrPathUtils.h',
|
2011-10-20 13:43:13 +00:00
|
|
|
'../src/gpu/GrPlotMgr.h',
|
|
|
|
'../src/gpu/GrRandom.h',
|
2011-10-12 19:53:16 +00:00
|
|
|
'../src/gpu/GrRectanizer.cpp',
|
2011-10-20 13:43:13 +00:00
|
|
|
'../src/gpu/GrRectanizer.h',
|
2011-10-12 19:53:16 +00:00
|
|
|
'../src/gpu/GrRedBlackTree.h',
|
|
|
|
'../src/gpu/GrRenderTarget.cpp',
|
|
|
|
'../src/gpu/GrResource.cpp',
|
|
|
|
'../src/gpu/GrResourceCache.cpp',
|
|
|
|
'../src/gpu/GrResourceCache.h',
|
|
|
|
'../src/gpu/GrStencil.cpp',
|
2011-10-20 13:43:13 +00:00
|
|
|
'../src/gpu/GrStencil.h',
|
2011-10-12 19:53:16 +00:00
|
|
|
'../src/gpu/GrStencilBuffer.cpp',
|
|
|
|
'../src/gpu/GrStencilBuffer.h',
|
2011-10-20 13:43:13 +00:00
|
|
|
'../src/gpu/GrStringBuilder.h',
|
|
|
|
'../src/gpu/GrTBSearch.h',
|
|
|
|
'../src/gpu/GrTDArray.h',
|
2011-10-12 19:53:16 +00:00
|
|
|
'../src/gpu/GrTesselatedPathRenderer.cpp',
|
|
|
|
'../src/gpu/GrTesselatedPathRenderer.h',
|
|
|
|
'../src/gpu/GrTextContext.cpp',
|
|
|
|
'../src/gpu/GrTextStrike.cpp',
|
2011-10-20 13:43:13 +00:00
|
|
|
'../src/gpu/GrTextStrike.h',
|
2011-10-12 19:53:16 +00:00
|
|
|
'../src/gpu/GrTextStrike_impl.h',
|
|
|
|
'../src/gpu/GrTexture.cpp',
|
2011-10-20 13:43:13 +00:00
|
|
|
'../src/gpu/GrTHashCache.h',
|
|
|
|
'../src/gpu/GrTLList.h',
|
2011-10-12 19:53:16 +00:00
|
|
|
'../src/gpu/GrVertexBuffer.h',
|
|
|
|
'../src/gpu/gr_unittests.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
|
|
|
|
|
2011-10-19 20:43:20 +00:00
|
|
|
'../src/gpu/mac/GrGLCreateNativeInterface_mac.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
|
2011-10-19 20:43:20 +00:00
|
|
|
'../src/gpu/win/GrGLCreateNativeInterface_win.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
|
2011-10-19 20:43:20 +00:00
|
|
|
'../src/gpu/unix/GrGLCreateNativeInterface_unix.cpp',
|
|
|
|
|
2011-11-03 13:08:29 +00:00
|
|
|
'../src/gpu/android/GrGLCreateNativeInterface_android.cpp',
|
|
|
|
|
2011-10-19 20:43:20 +00:00
|
|
|
'../src/gpu/mesa/GrGLCreateMesaInterface.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'defines': [
|
|
|
|
'GR_IMPLEMENTATION=1',
|
|
|
|
],
|
|
|
|
'conditions': [
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "linux"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'sources!': [
|
2011-10-12 19:53:16 +00:00
|
|
|
'../src/gpu/GrGLDefaultInterface_none.cpp',
|
2011-10-19 20:43:20 +00:00
|
|
|
'../src/gpu/GrGLCreateNativeInterface_none.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-lGL',
|
|
|
|
'-lX11',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
2011-10-19 20:43:20 +00:00
|
|
|
[ 'skia_mesa and skia_os == "linux"', {
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-lOSMesa',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "mac"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'sources!': [
|
2011-10-12 19:53:16 +00:00
|
|
|
'../src/gpu/GrGLDefaultInterface_none.cpp',
|
2011-10-19 20:43:20 +00:00
|
|
|
'../src/gpu/GrGLCreateNativeInterface_none.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
2011-10-19 20:43:20 +00:00
|
|
|
}],
|
|
|
|
[ 'skia_mesa and skia_os == "mac"', {
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'$(SDKROOT)/usr/X11/lib/libOSMesa.dylib',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'include_dirs': [
|
|
|
|
'$(SDKROOT)/usr/X11/include/',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'not skia_mesa', {
|
|
|
|
'sources!': [
|
|
|
|
'../src/gpu/mesa/GrGLCreateMesaInterface.cpp',
|
|
|
|
],
|
|
|
|
}],
|
2011-07-01 20:20:07 +00:00
|
|
|
[ 'skia_os == "win"', {
|
2011-05-31 13:50:51 +00:00
|
|
|
'sources!': [
|
2011-10-12 19:53:16 +00:00
|
|
|
'../src/gpu/GrGLDefaultInterface_none.cpp',
|
2011-10-19 20:43:20 +00:00
|
|
|
'../src/gpu/GrGLCreateNativeInterface_none.cpp',
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
}],
|
2011-11-03 13:08:29 +00:00
|
|
|
[ 'skia_os == "android"', {
|
|
|
|
'sources!': [
|
|
|
|
'../src/gpu/GrGLDefaultInterface_none.cpp',
|
|
|
|
'../src/gpu/GrGLCreateNativeInterface_none.cpp',
|
|
|
|
],
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-lGLESv2',
|
|
|
|
'-lEGL',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
2011-05-31 13:50:51 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# tab-width:2
|
|
|
|
# indent-tabs-mode:nil
|
|
|
|
# End:
|
|
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|