2012-11-01 16:19:01 +01:00
|
|
|
set(SRCS
|
2012-12-28 21:58:00 +01:00
|
|
|
GPUCommon.cpp
|
2012-11-01 16:19:01 +01:00
|
|
|
GPUState.cpp
|
|
|
|
Math3D.cpp
|
|
|
|
GLES/DisplayListInterpreter.cpp
|
|
|
|
GLES/FragmentShaderGenerator.cpp
|
|
|
|
GLES/Framebuffer.cpp
|
2012-12-21 17:50:22 +01:00
|
|
|
GLES/IndexGenerator.cpp
|
2012-11-01 16:19:01 +01:00
|
|
|
GLES/ShaderManager.cpp
|
2012-11-24 15:19:29 +01:00
|
|
|
GLES/StateMapping.cpp
|
2012-11-01 16:19:01 +01:00
|
|
|
GLES/TextureCache.cpp
|
|
|
|
GLES/TransformPipeline.cpp
|
|
|
|
GLES/VertexDecoder.cpp
|
|
|
|
GLES/VertexShaderGenerator.cpp
|
2012-11-06 17:05:27 +01:00
|
|
|
Null/NullGpu.cpp
|
2012-11-01 16:19:01 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
set(SRCS ${SRCS})
|
|
|
|
|
|
|
|
add_library(gpu STATIC ${SRCS})
|
2012-11-03 10:33:24 +08:00
|
|
|
target_link_libraries(gpu general gfx_es2)
|
|
|
|
target_link_libraries(gpu general lin)
|
2012-11-01 16:19:01 +01:00
|
|
|
|
|
|
|
if(UNIX)
|
|
|
|
add_definitions(-fPIC)
|
|
|
|
endif(UNIX)
|
|
|
|
|