2012-11-01 15:19:01 +00:00
|
|
|
set(SRCS
|
2012-12-28 20:58:00 +00:00
|
|
|
GPUCommon.cpp
|
2012-11-01 15:19:01 +00:00
|
|
|
GPUState.cpp
|
|
|
|
Math3D.cpp
|
2013-08-20 20:34:47 +00:00
|
|
|
GLES/GLES_GPU.cpp
|
2012-11-01 15:19:01 +00:00
|
|
|
GLES/FragmentShaderGenerator.cpp
|
|
|
|
GLES/Framebuffer.cpp
|
2012-12-21 16:50:22 +00:00
|
|
|
GLES/IndexGenerator.cpp
|
2012-11-01 15:19:01 +00:00
|
|
|
GLES/ShaderManager.cpp
|
2013-08-22 22:26:16 +00:00
|
|
|
GLES/Spline.cpp
|
2012-11-24 14:19:29 +00:00
|
|
|
GLES/StateMapping.cpp
|
2012-11-01 15:19:01 +00:00
|
|
|
GLES/TextureCache.cpp
|
2013-05-02 06:31:18 +00:00
|
|
|
GLES/TextureScaler.cpp
|
2012-11-01 15:19:01 +00:00
|
|
|
GLES/TransformPipeline.cpp
|
|
|
|
GLES/VertexDecoder.cpp
|
|
|
|
GLES/VertexShaderGenerator.cpp
|
2012-11-06 16:05:27 +00:00
|
|
|
Null/NullGpu.cpp
|
2013-06-26 17:57:27 +00:00
|
|
|
Software/Clipper.cpp
|
2013-06-28 21:08:15 +00:00
|
|
|
Software/Lighting.cpp
|
2013-06-25 14:15:09 +00:00
|
|
|
Software/Rasterizer.cpp
|
2013-06-24 14:03:25 +00:00
|
|
|
Software/SoftGpu.cpp
|
2013-06-24 18:58:35 +00:00
|
|
|
Software/TransformUnit.cpp
|
2012-11-01 15:19:01 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(SRCS ${SRCS})
|
|
|
|
|
|
|
|
add_library(gpu STATIC ${SRCS})
|
2012-11-03 02:33:24 +00:00
|
|
|
target_link_libraries(gpu general gfx_es2)
|
|
|
|
target_link_libraries(gpu general lin)
|
2012-11-01 15:19:01 +00:00
|
|
|
|
|
|
|
if(UNIX)
|
|
|
|
add_definitions(-fPIC)
|
|
|
|
endif(UNIX)
|
|
|
|
|