diff --git a/.gitmodules b/.gitmodules index 7039c7b1f7..4097c40040 100644 --- a/.gitmodules +++ b/.gitmodules @@ -41,7 +41,7 @@ url = ../../Cyan4973/xxHash.git ignore = dirty [submodule "3rdparty/yaml-cpp"] - path = 3rdparty/yaml-cpp + path = 3rdparty/yaml-cpp/yaml-cpp url = ../../RPCS3/yaml-cpp.git ignore = dirty [submodule "3rdparty/libpng"] diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt index 45c07b628f..978a249982 100644 --- a/3rdparty/CMakeLists.txt +++ b/3rdparty/CMakeLists.txt @@ -75,19 +75,7 @@ add_subdirectory(SPIRV EXCLUDE_FROM_ALL) # yaml-cpp -# We don't want to install yaml-cpp but its cmake file doesn't have option -# to disable it... -# So we just install it to a different directory -set(YAML_CPP_INSTALL OFF CACHE BOOL "Don't install YAML") -set(CMAKE_INSTALL_PREFIX_OLD ${CMAKE_INSTALL_PREFIX}) -set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/yaml-cpp_install) - -set(YAML_CPP_BUILD_TESTS OFF CACHE BOOL "Enable testing" FORCE) -set(YAML_CPP_BUILD_TOOLS OFF CACHE BOOL "Enable parse tools" FORCE) -set(YAML_CPP_BUILD_CONTRIB OFF CACHE BOOL "Enable contrib stuff in library" FORCE) -add_subdirectory(yaml-cpp EXCLUDE_FROM_ALL) - -set(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX_OLD}) +add_subdirectory(yaml-cpp) # xxHash diff --git a/3rdparty/yaml-cpp/CMakeLists.txt b/3rdparty/yaml-cpp/CMakeLists.txt new file mode 100644 index 0000000000..78792066b6 --- /dev/null +++ b/3rdparty/yaml-cpp/CMakeLists.txt @@ -0,0 +1,14 @@ + +# We don't want to install yaml-cpp but its cmake file doesn't have option +# to disable it... +# So we just install it to a different directory +set(YAML_CPP_INSTALL OFF CACHE BOOL "Don't install YAML") +set(CMAKE_INSTALL_PREFIX_OLD ${CMAKE_INSTALL_PREFIX}) +set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/yaml-cpp_install) + +set(YAML_CPP_BUILD_TESTS OFF CACHE BOOL "Enable testing" FORCE) +set(YAML_CPP_BUILD_TOOLS OFF CACHE BOOL "Enable parse tools" FORCE) +set(YAML_CPP_BUILD_CONTRIB OFF CACHE BOOL "Enable contrib stuff in library" FORCE) +add_subdirectory(yaml-cpp EXCLUDE_FROM_ALL) + +set(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX_OLD}) diff --git a/3rdparty/yaml-cpp b/3rdparty/yaml-cpp/yaml-cpp similarity index 100% rename from 3rdparty/yaml-cpp rename to 3rdparty/yaml-cpp/yaml-cpp diff --git a/3rdparty/yaml-cpp.vcxproj b/3rdparty/yaml-cpp/yaml-cpp.vcxproj similarity index 96% rename from 3rdparty/yaml-cpp.vcxproj rename to 3rdparty/yaml-cpp/yaml-cpp.vcxproj index f8207470d8..847a3d1854 100644 --- a/3rdparty/yaml-cpp.vcxproj +++ b/3rdparty/yaml-cpp/yaml-cpp.vcxproj @@ -44,6 +44,7 @@ Sync MaxSpeed + yaml-cpp\include; diff --git a/3rdparty/yaml-cpp.vcxproj.filters b/3rdparty/yaml-cpp/yaml-cpp.vcxproj.filters similarity index 100% rename from 3rdparty/yaml-cpp.vcxproj.filters rename to 3rdparty/yaml-cpp/yaml-cpp.vcxproj.filters diff --git a/buildfiles/msvc/rpcs3_default.props b/buildfiles/msvc/rpcs3_default.props index 2ad27957d5..b3ac8aae1c 100644 --- a/buildfiles/msvc/rpcs3_default.props +++ b/buildfiles/msvc/rpcs3_default.props @@ -3,7 +3,7 @@ - .\;..\;..\3rdparty\asmjit\asmjit\src;..\3rdparty\yaml-cpp\include;..\3rdparty\ffmpeg\include;$(VC_IncludePath);$(WindowsSDK_IncludePath);$(UniversalCRT_IncludePath);..\3rdparty\libpng\libpng;..\3rdparty\GL;..\3rdparty\stblib\include;..\3rdparty\OpenAL\include;..\3rdparty\pugixml\src;..\3rdparty\hidapi\hidapi;..\3rdparty\Optional;..\3rdparty\xxhash + .\;..\;..\3rdparty\asmjit\asmjit\src;..\..\3rdparty\yaml-cpp\yaml-cpp\include;..\3rdparty\ffmpeg\include;$(VC_IncludePath);$(WindowsSDK_IncludePath);$(UniversalCRT_IncludePath);..\3rdparty\libpng\libpng;..\3rdparty\GL;..\3rdparty\stblib\include;..\3rdparty\OpenAL\include;..\3rdparty\pugixml\src;..\3rdparty\hidapi\hidapi;..\3rdparty\Optional;..\3rdparty\xxhash $(SolutionDir)lib\$(Configuration)-$(Platform)\ $(SolutionDir)lib\$(Configuration)-$(Platform)\;$(UniversalCRT_LibraryPath_x64);$(LibraryPath) $(SolutionDir)tmp\$(ProjectName)-$(Configuration)-$(Platform)\ diff --git a/rpcs3.sln b/rpcs3.sln index 88f852fb77..dd6f05c4de 100644 --- a/rpcs3.sln +++ b/rpcs3.sln @@ -38,7 +38,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "VKGSRender", "rpcs3\VKGSRen EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "__BUILD_BEFORE", "__BUILD_BEFORE", "{B0AC29FD-7B01-4B5E-9C8D-0A081E4C5668}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "yaml-cpp", "3rdparty\yaml-cpp.vcxproj", "{FDC361C5-7734-493B-8CFB-037308B35122}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "yaml-cpp", "3rdparty\yaml-cpp\yaml-cpp.vcxproj", "{FDC361C5-7734-493B-8CFB-037308B35122}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "rpcs3", "rpcs3\rpcs3.vcxproj", "{70CD65B0-91D6-4FAE-9A7B-4AF55D0D1B12}" ProjectSection(ProjectDependencies) = postProject diff --git a/rpcs3/emucore.vcxproj b/rpcs3/emucore.vcxproj index 4f23642b18..e45bd20c48 100644 --- a/rpcs3/emucore.vcxproj +++ b/rpcs3/emucore.vcxproj @@ -40,7 +40,7 @@ Use - ..\3rdparty\wolfssl\;..\3rdparty\flatbuffers\include;..\3rdparty\libusb\libusb\libusb;..\3rdparty\zlib\zlib;..\llvm\include;..\llvm_build\include;$(VULKAN_SDK)\Include + ..\3rdparty\wolfssl\;..\3rdparty\flatbuffers\include;..\3rdparty\libusb\libusb\libusb;..\3rdparty\yaml-cpp\yaml-cpp\include;..\3rdparty\zlib\zlib;..\llvm\include;..\llvm_build\include;$(VULKAN_SDK)\Include MaxSpeed @@ -761,7 +761,7 @@ {ac40ff01-426e-4838-a317-66354cefae88} - + {fdc361c5-7734-493b-8cfb-037308b35122} diff --git a/rpcs3/rpcs3.vcxproj b/rpcs3/rpcs3.vcxproj index b591b510d3..02d1452e7e 100644 --- a/rpcs3/rpcs3.vcxproj +++ b/rpcs3/rpcs3.vcxproj @@ -62,12 +62,12 @@ true - ..\3rdparty\7z\src;..\3rdparty\hidapi\hidapi\hidapi;.\;..\;..\3rdparty\asmjit\asmjit\src;..\3rdparty\yaml-cpp\include;..\3rdparty\ffmpeg\include;$(VC_IncludePath);$(WindowsSDK_IncludePath);$(UniversalCRT_IncludePath);..\3rdparty\XAudio2Redist\include;..\3rdparty\libpng\libpng;..\3rdparty\GL;..\3rdparty\stblib\include;..\3rdparty\OpenAL\include;..\3rdparty\pugixml\src;..\3rdparty\Optional;..\3rdparty\discord-rpc\include;..\3rdparty\zlib\zlib + ..\3rdparty\7z\src;..\3rdparty\hidapi\hidapi\hidapi;.\;..\;..\3rdparty\asmjit\asmjit\src;..\3rdparty\yaml-cpp\yaml-cpp\include;..\3rdparty\ffmpeg\include;$(VC_IncludePath);$(WindowsSDK_IncludePath);$(UniversalCRT_IncludePath);..\3rdparty\XAudio2Redist\include;..\3rdparty\libpng\libpng;..\3rdparty\GL;..\3rdparty\stblib\include;..\3rdparty\OpenAL\include;..\3rdparty\pugixml\src;..\3rdparty\Optional;..\3rdparty\discord-rpc\include;..\3rdparty\zlib\zlib $(SolutionDir)lib\$(Configuration)-$(Platform)\;$(UniversalCRT_LibraryPath_x64);$(LibraryPath) $(SolutionDir)lib\$(Configuration)-$(Platform)\;$(UniversalCRT_LibraryPath_x64);$(LibraryPath) - ..\3rdparty\7z\src;..\3rdparty\hidapi\hidapi\hidapi;.\;..\;..\3rdparty\asmjit\asmjit\src;..\3rdparty\yaml-cpp\include;..\3rdparty\ffmpeg\include;$(VC_IncludePath);$(WindowsSDK_IncludePath);$(UniversalCRT_IncludePath);..\3rdparty\XAudio2Redist\include;..\3rdparty\libpng\libpng;..\3rdparty\GL;..\3rdparty\stblib\include;..\3rdparty\OpenAL\include;..\3rdparty\pugixml\src;..\3rdparty\Optional;..\3rdparty\discord-rpc\include;..\3rdparty\zlib\zlib + ..\3rdparty\7z\src;..\3rdparty\hidapi\hidapi\hidapi;.\;..\;..\3rdparty\asmjit\asmjit\src;..\3rdparty\yaml-cpp\yaml-cpp\include;..\3rdparty\ffmpeg\include;$(VC_IncludePath);$(WindowsSDK_IncludePath);$(UniversalCRT_IncludePath);..\3rdparty\XAudio2Redist\include;..\3rdparty\libpng\libpng;..\3rdparty\GL;..\3rdparty\stblib\include;..\3rdparty\OpenAL\include;..\3rdparty\pugixml\src;..\3rdparty\Optional;..\3rdparty\discord-rpc\include;..\3rdparty\zlib\zlib