1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-25 12:12:50 +01:00

Add tcbrindle’s span implementation

This commit is contained in:
Emmanuel Gil Peyrot 2019-11-09 16:09:09 +01:00
parent a83cbf63c6
commit 25144caf12
4 changed files with 13 additions and 2 deletions

3
.gitmodules vendored
View File

@ -56,3 +56,6 @@
path = 3rdparty/FAudio path = 3rdparty/FAudio
url = https://github.com/FNA-XNA/FAudio.git url = https://github.com/FNA-XNA/FAudio.git
ignore = dirty ignore = dirty
[submodule "3rdparty/span"]
path = 3rdparty/span
url = https://github.com/tcbrindle/span

View File

@ -209,6 +209,11 @@ add_library(3rdparty_gsl INTERFACE)
target_include_directories(3rdparty_gsl INTERFACE GSL/include) target_include_directories(3rdparty_gsl INTERFACE GSL/include)
# span
add_library(3rdparty_span INTERFACE)
target_include_directories(3rdparty_span INTERFACE span/include)
# stblib # stblib
add_library(3rdparty_stblib INTERFACE) add_library(3rdparty_stblib INTERFACE)
target_include_directories(3rdparty_stblib INTERFACE stblib) target_include_directories(3rdparty_stblib INTERFACE stblib)
@ -425,6 +430,7 @@ add_library(3rdparty::libpng ALIAS ${LIBPNG_TARGET})
add_library(3rdparty::cereal ALIAS 3rdparty_cereal) add_library(3rdparty::cereal ALIAS 3rdparty_cereal)
add_library(3rdparty::opengl ALIAS 3rdparty_opengl) add_library(3rdparty::opengl ALIAS 3rdparty_opengl)
add_library(3rdparty::gsl ALIAS 3rdparty_gsl) add_library(3rdparty::gsl ALIAS 3rdparty_gsl)
add_library(3rdparty::span ALIAS 3rdparty_span)
add_library(3rdparty::stblib ALIAS 3rdparty_stblib) add_library(3rdparty::stblib ALIAS 3rdparty_stblib)
add_library(3rdparty::discord-rpc ALIAS 3rdparty_discord-rpc) add_library(3rdparty::discord-rpc ALIAS 3rdparty_discord-rpc)
add_library(3rdparty::alsa ALIAS ${ALSA_TARGET}) add_library(3rdparty::alsa ALIAS ${ALSA_TARGET})

1
3rdparty/span vendored Submodule

@ -0,0 +1 @@
Subproject commit 9d7559aabdebf569cab3480a7ea2a87948c0ae47

View File

@ -49,7 +49,8 @@ target_include_directories(rpcs3_emu PUBLIC "${CMAKE_SOURCE_DIR}")
target_link_libraries(rpcs3_emu target_link_libraries(rpcs3_emu
PUBLIC PUBLIC
3rdparty::pugixml 3rdparty::pugixml
3rdparty::gsl) 3rdparty::gsl
3rdparty::span)
if (MSVC) if (MSVC)
set_source_files_properties("../../Utilities/JIT.cpp" PROPERTIES COMPILE_FLAGS /GR-) set_source_files_properties("../../Utilities/JIT.cpp" PROPERTIES COMPILE_FLAGS /GR-)
@ -412,7 +413,7 @@ target_link_libraries(rpcs3_emu
3rdparty::vulkan 3rdparty::glew 3rdparty::vulkan 3rdparty::glew
3rdparty::libusb 3rdparty::libusb
PRIVATE PRIVATE
3rdparty::gsl 3rdparty::xxhash 3rdparty::gsl 3rdparty::span 3rdparty::xxhash
) )