2014-08-24 03:22:05 +02:00
|
|
|
set(SRCS
|
2014-07-27 17:34:11 +02:00
|
|
|
command_processor.cpp
|
2017-01-05 23:11:23 +01:00
|
|
|
debug_utils/debug_utils.cpp
|
2015-05-14 05:29:27 +02:00
|
|
|
pica.cpp
|
2014-07-27 14:58:30 +02:00
|
|
|
primitive_assembly.cpp
|
2017-01-28 22:27:24 +01:00
|
|
|
regs.cpp
|
2015-12-07 04:06:12 +01:00
|
|
|
renderer_base.cpp
|
2017-01-05 23:11:23 +01:00
|
|
|
renderer_opengl/gl_rasterizer.cpp
|
|
|
|
renderer_opengl/gl_rasterizer_cache.cpp
|
|
|
|
renderer_opengl/gl_shader_gen.cpp
|
|
|
|
renderer_opengl/gl_shader_util.cpp
|
|
|
|
renderer_opengl/gl_state.cpp
|
|
|
|
renderer_opengl/renderer_opengl.cpp
|
2015-07-22 01:38:59 +02:00
|
|
|
shader/shader.cpp
|
2015-07-22 01:09:11 +02:00
|
|
|
shader/shader_interpreter.cpp
|
2017-01-29 00:59:36 +01:00
|
|
|
swrasterizer/clipper.cpp
|
2017-01-30 02:43:09 +01:00
|
|
|
swrasterizer/framebuffer.cpp
|
2017-08-03 11:01:31 +02:00
|
|
|
swrasterizer/lighting.cpp
|
2017-04-17 09:01:45 +02:00
|
|
|
swrasterizer/proctex.cpp
|
2017-01-29 00:59:36 +01:00
|
|
|
swrasterizer/rasterizer.cpp
|
|
|
|
swrasterizer/swrasterizer.cpp
|
2017-01-30 04:22:19 +01:00
|
|
|
swrasterizer/texturing.cpp
|
2017-01-06 04:59:34 +01:00
|
|
|
texture/etc1.cpp
|
2017-01-05 23:11:23 +01:00
|
|
|
texture/texture_decode.cpp
|
2016-04-28 19:01:47 +02:00
|
|
|
vertex_loader.cpp
|
2014-07-26 14:42:46 +02:00
|
|
|
video_core.cpp
|
2014-08-24 03:22:05 +02:00
|
|
|
)
|
2014-04-05 22:04:25 +02:00
|
|
|
|
2014-08-24 03:22:05 +02:00
|
|
|
set(HEADERS
|
2014-07-27 17:34:11 +02:00
|
|
|
command_processor.h
|
2017-01-05 23:11:23 +01:00
|
|
|
debug_utils/debug_utils.h
|
2014-08-24 03:22:05 +02:00
|
|
|
gpu_debugger.h
|
|
|
|
pica.h
|
2016-03-03 04:16:38 +01:00
|
|
|
pica_state.h
|
2015-09-10 00:30:03 +02:00
|
|
|
pica_types.h
|
2014-07-27 14:58:30 +02:00
|
|
|
primitive_assembly.h
|
2015-12-07 04:06:12 +01:00
|
|
|
rasterizer_interface.h
|
2017-01-28 22:27:24 +01:00
|
|
|
regs.h
|
2017-01-28 06:47:34 +01:00
|
|
|
regs_framebuffer.h
|
2017-01-28 21:13:21 +01:00
|
|
|
regs_lighting.h
|
2017-01-28 21:34:31 +01:00
|
|
|
regs_pipeline.h
|
2017-01-28 05:16:36 +01:00
|
|
|
regs_rasterizer.h
|
2017-01-28 22:03:13 +01:00
|
|
|
regs_shader.h
|
2017-01-28 05:51:59 +01:00
|
|
|
regs_texturing.h
|
2014-04-29 04:40:39 +02:00
|
|
|
renderer_base.h
|
2017-01-05 23:11:23 +01:00
|
|
|
renderer_opengl/gl_rasterizer.h
|
|
|
|
renderer_opengl/gl_rasterizer_cache.h
|
|
|
|
renderer_opengl/gl_resource_manager.h
|
|
|
|
renderer_opengl/gl_shader_gen.h
|
|
|
|
renderer_opengl/gl_shader_util.h
|
|
|
|
renderer_opengl/gl_state.h
|
|
|
|
renderer_opengl/pica_to_gl.h
|
|
|
|
renderer_opengl/renderer_opengl.h
|
2016-12-16 07:30:43 +01:00
|
|
|
shader/debug_data.h
|
2015-07-22 01:38:59 +02:00
|
|
|
shader/shader.h
|
2015-07-22 01:09:11 +02:00
|
|
|
shader/shader_interpreter.h
|
2017-01-29 00:59:36 +01:00
|
|
|
swrasterizer/clipper.h
|
2017-01-30 02:43:09 +01:00
|
|
|
swrasterizer/framebuffer.h
|
2017-08-03 11:01:31 +02:00
|
|
|
swrasterizer/lighting.h
|
2017-04-17 09:01:45 +02:00
|
|
|
swrasterizer/proctex.h
|
2017-01-29 00:59:36 +01:00
|
|
|
swrasterizer/rasterizer.h
|
|
|
|
swrasterizer/swrasterizer.h
|
2017-01-30 04:22:19 +01:00
|
|
|
swrasterizer/texturing.h
|
2017-01-06 04:59:34 +01:00
|
|
|
texture/etc1.h
|
2017-01-05 23:11:23 +01:00
|
|
|
texture/texture_decode.h
|
2014-08-24 03:22:05 +02:00
|
|
|
utils.h
|
2016-04-28 19:01:47 +02:00
|
|
|
vertex_loader.h
|
2014-07-26 14:42:46 +02:00
|
|
|
video_core.h
|
2014-08-24 03:22:05 +02:00
|
|
|
)
|
|
|
|
|
2015-08-15 04:29:08 +02:00
|
|
|
if(ARCHITECTURE_x86_64)
|
2015-07-23 05:25:30 +02:00
|
|
|
set(SRCS ${SRCS}
|
2016-12-17 10:21:16 +01:00
|
|
|
shader/shader_jit_x64.cpp
|
2016-12-17 09:06:23 +01:00
|
|
|
shader/shader_jit_x64_compiler.cpp)
|
2015-08-12 06:00:44 +02:00
|
|
|
|
|
|
|
set(HEADERS ${HEADERS}
|
2016-12-17 10:21:16 +01:00
|
|
|
shader/shader_jit_x64.h
|
2016-12-17 09:06:23 +01:00
|
|
|
shader/shader_jit_x64_compiler.h)
|
2015-07-23 05:25:30 +02:00
|
|
|
endif()
|
|
|
|
|
2014-08-24 03:22:05 +02:00
|
|
|
create_directory_groups(${SRCS} ${HEADERS})
|
2014-04-29 04:40:39 +02:00
|
|
|
|
2014-05-20 00:19:36 +02:00
|
|
|
add_library(video_core STATIC ${SRCS} ${HEADERS})
|
2017-05-28 03:26:55 +02:00
|
|
|
target_link_libraries(video_core PUBLIC common core)
|
2017-05-28 07:34:52 +02:00
|
|
|
target_link_libraries(video_core PRIVATE glad nihstro-headers)
|
2017-05-28 03:26:55 +02:00
|
|
|
|
2016-12-12 10:23:08 +01:00
|
|
|
if (ARCHITECTURE_x86_64)
|
2017-05-28 03:26:55 +02:00
|
|
|
target_link_libraries(video_core PRIVATE xbyak)
|
2016-12-12 10:23:08 +01:00
|
|
|
endif()
|
2014-08-24 03:22:05 +02:00
|
|
|
|
|
|
|
if (PNG_FOUND)
|
2017-05-28 04:05:50 +02:00
|
|
|
target_link_libraries(video_core PRIVATE PNG::PNG)
|
|
|
|
target_compile_definitions(video_core PRIVATE HAVE_PNG)
|
2014-08-24 03:22:05 +02:00
|
|
|
endif()
|