2019-11-03 14:39:25 +00:00
|
|
|
add_library(common
|
2020-01-10 03:31:12 +00:00
|
|
|
align.h
|
|
|
|
assert.cpp
|
|
|
|
assert.h
|
2019-11-03 14:39:25 +00:00
|
|
|
audio_stream.cpp
|
|
|
|
audio_stream.h
|
|
|
|
bitfield.h
|
2020-01-10 03:31:12 +00:00
|
|
|
byte_stream.cpp
|
|
|
|
byte_stream.h
|
2019-11-03 14:39:25 +00:00
|
|
|
cd_image.cpp
|
|
|
|
cd_image.h
|
|
|
|
cd_image_bin.cpp
|
|
|
|
cd_image_cue.cpp
|
2019-12-06 06:23:08 +00:00
|
|
|
cd_subchannel_replacement.cpp
|
|
|
|
cd_subchannel_replacement.h
|
2019-11-03 14:39:25 +00:00
|
|
|
cd_xa.cpp
|
|
|
|
cd_xa.h
|
2020-01-10 03:31:12 +00:00
|
|
|
cpu_detect.h
|
|
|
|
fifo_queue.h
|
|
|
|
file_system.cpp
|
|
|
|
file_system.h
|
2019-11-03 14:39:25 +00:00
|
|
|
gl/program.cpp
|
|
|
|
gl/program.h
|
|
|
|
gl/stream_buffer.cpp
|
|
|
|
gl/stream_buffer.h
|
|
|
|
gl/texture.cpp
|
|
|
|
gl/texture.h
|
2020-01-10 03:31:12 +00:00
|
|
|
heap_array.h
|
2019-11-29 13:36:25 +00:00
|
|
|
iso_reader.cpp
|
|
|
|
iso_reader.h
|
2019-11-03 14:39:25 +00:00
|
|
|
jit_code_buffer.cpp
|
|
|
|
jit_code_buffer.h
|
2020-01-10 03:31:12 +00:00
|
|
|
log.cpp
|
|
|
|
log.h
|
|
|
|
md5_digest.cpp
|
|
|
|
md5_digest.h
|
2019-12-23 07:02:11 +00:00
|
|
|
null_audio_stream.cpp
|
|
|
|
null_audio_stream.h
|
2019-11-05 09:19:20 +00:00
|
|
|
rectangle.h
|
2019-11-03 14:39:25 +00:00
|
|
|
state_wrapper.cpp
|
|
|
|
state_wrapper.h
|
2020-01-10 03:31:12 +00:00
|
|
|
string.cpp
|
|
|
|
string.h
|
|
|
|
string_util.cpp
|
|
|
|
string_util.h
|
|
|
|
timer.cpp
|
|
|
|
timer.h
|
|
|
|
timestamp.cpp
|
|
|
|
timestamp.h
|
2019-11-05 09:19:20 +00:00
|
|
|
types.h
|
2019-09-09 07:01:26 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(common PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/..")
|
|
|
|
target_include_directories(common PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/..")
|
2020-01-10 03:31:12 +00:00
|
|
|
target_link_libraries(common PRIVATE glad libcue Threads::Threads)
|
2019-11-03 14:39:25 +00:00
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
target_sources(common PRIVATE
|
|
|
|
d3d11/shader_compiler.cpp
|
|
|
|
d3d11/shader_compiler.h
|
|
|
|
d3d11/staging_texture.cpp
|
|
|
|
d3d11/staging_texture.h
|
|
|
|
d3d11/stream_buffer.cpp
|
|
|
|
d3d11/stream_buffer.h
|
|
|
|
d3d11/texture.cpp
|
|
|
|
d3d11/texture.h
|
2020-01-10 03:31:12 +00:00
|
|
|
windows_headers.h
|
2019-11-03 14:39:25 +00:00
|
|
|
)
|
|
|
|
target_link_libraries(common PRIVATE d3dcompiler.lib)
|
|
|
|
endif()
|
2020-01-10 03:31:12 +00:00
|
|
|
|
|
|
|
if(ANDROID)
|
|
|
|
target_link_libraries(common PRIVATE log)
|
|
|
|
endif()
|