From 7946cd0224b5934f884fe3aa91386001918768f5 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 20 Sep 2018 23:22:19 +0100 Subject: [PATCH] Updated windows version to take into account SDL-image --- 3Engine/3Engine.vcxproj | 26 +++-- 3Engine/3Engine.vcxproj.filters | 120 ++++++++------------ 3EngineExecutable/3EngineExecutable.vcxproj | 24 +++- 3EngineTests/3EngineTests.vcxproj | 24 +++- 3EngineTests/3EngineTests.vcxproj.filters | 48 -------- README.md | 2 + appveyor.yml | 2 + 7 files changed, 99 insertions(+), 147 deletions(-) diff --git a/3Engine/3Engine.vcxproj b/3Engine/3Engine.vcxproj index 4715451..6337961 100644 --- a/3Engine/3Engine.vcxproj +++ b/3Engine/3Engine.vcxproj @@ -51,10 +51,6 @@ - - - - @@ -92,12 +88,6 @@ - - - - - - @@ -163,7 +153,7 @@ $(SolutionDir)\intermediate\$(Platform)\$(Configuration)\ - $(SolutionDir)dependencies\SDL2-msvc\include;$(SolutionDir)dependencies\glew-msvc\include;$(VC_IncludePath);$(WindowsSDK_IncludePath) + $(SolutionDir)dependencies\SDL2-msvc\include;$(SolutionDir)dependencies\SDL2-image-msvc\include;$(SolutionDir)dependencies\glew-msvc\include;$(VC_IncludePath);$(WindowsSDK_IncludePath) $(SolutionDir)bin\$(Configuration)\ $(ProjectName) $(SolutionDir)intermediate\$(Platform)\$(Configuration)\$(ProjectName)\ @@ -171,7 +161,7 @@ $(SolutionDir)bin\$(Configuration)\ - $(SolutionDir)dependencies\SDL2-msvc\include;$(SolutionDir)dependencies\glew-msvc\include;$(VC_IncludePath);$(WindowsSDK_IncludePath) + $(SolutionDir)dependencies\SDL2-msvc\include;$(SolutionDir)dependencies\SDL2-image-msvc\include;$(SolutionDir)dependencies\glew-msvc\include;$(VC_IncludePath);$(WindowsSDK_IncludePath) $(ProjectName) $(SolutionDir)intermediate\$(Platform)\$(Configuration)\$(ProjectName)\ .dll @@ -215,6 +205,12 @@ Copy dependencies libraries echo Copying SDL2 copy /Y "$(SolutionDir)dependencies\SDL2-msvc\lib\x64\SDL2.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\SDL2_image.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\zlib1.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libjpeg-9.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libpng16-16.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libtiff-5.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libwebp-7.dll" "$(OutDir)" echo Copying GLEW copy /Y "$(SolutionDir)dependencies\glew-msvc\bin\Release\x64\glew32.dll" "$(OutDir)" echo Copying Config Files @@ -274,6 +270,12 @@ xcopy "$(ProjectDir)assets" "$(OutDir)assets\" /E /Y Copy dependencies libraries echo Copying SDL2 copy /Y "$(SolutionDir)dependencies\SDL2-msvc\lib\x64\SDL2.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\SDL2_image.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\zlib1.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libjpeg-9.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libpng16-16.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libtiff-5.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libwebp-7.dll" "$(OutDir)" echo Copying GLEW copy /Y "$(SolutionDir)dependencies\glew-msvc\bin\Release\x64\glew32.dll" "$(OutDir)" echo Copying Config Files diff --git a/3Engine/3Engine.vcxproj.filters b/3Engine/3Engine.vcxproj.filters index 71d9633..09823dc 100644 --- a/3Engine/3Engine.vcxproj.filters +++ b/3Engine/3Engine.vcxproj.filters @@ -24,36 +24,12 @@ - - Engine - - - Engine - - - Engine - - - Engine - - - Engine - - - Engine - Engine Engine - - Engine - - - Engine - Engine @@ -105,65 +81,47 @@ Engine - + Engine - + Engine - + Engine - + Engine - + Engine - + Engine - + Engine - - - - Engine - - - Engine - - + Engine - - + + Engine - - + + Engine - - + + Engine - + + + Engine Engine - - Engine - - - Engine - - - Engine - - - Engine - Engine @@ -191,9 +149,6 @@ Engine - - Engine - Engine @@ -224,43 +179,58 @@ Engine - + Engine - + Engine - + Engine - + Engine - + Engine - + Engine - + Engine - + Engine - + Engine - + Engine - + Engine - + Engine - + + Engine + + + Engine + + + Engine + + + Engine + + + Engine + + Engine diff --git a/3EngineExecutable/3EngineExecutable.vcxproj b/3EngineExecutable/3EngineExecutable.vcxproj index e1d8571..1a974b2 100644 --- a/3EngineExecutable/3EngineExecutable.vcxproj +++ b/3EngineExecutable/3EngineExecutable.vcxproj @@ -86,7 +86,7 @@ $(SolutionDir)\intermediate\$(Platform)\$(Configuration)\ - $(SolutionDir)dependencies\SDL2-msvc\include;$(SolutionDir)dependencies\glew-msvc\include;$(VC_IncludePath);$(WindowsSDK_IncludePath) + $(SolutionDir)dependencies\SDL2-msvc\include;$(SolutionDir)dependencies\SDL2-image-msvc\include;$(SolutionDir)dependencies\glew-msvc\include;$(VC_IncludePath);$(WindowsSDK_IncludePath) $(SolutionDir)bin\$(Configuration)\ $(ProjectName) $(SolutionDir)intermediate\$(Platform)\$(Configuration)\$(ProjectName)\ @@ -94,7 +94,7 @@ $(SolutionDir)bin\$(Configuration)\ - $(SolutionDir)dependencies\SDL2-msvc\include;$(SolutionDir)dependencies\glew-msvc\include;$(VC_IncludePath);$(WindowsSDK_IncludePath) + $(SolutionDir)dependencies\SDL2-msvc\include;$(SolutionDir)dependencies\SDL2-image-msvc\include;$(SolutionDir)dependencies\glew-msvc\include;$(VC_IncludePath);$(WindowsSDK_IncludePath) $(ProjectName) $(SolutionDir)intermediate\$(Platform)\$(Configuration)\$(ProjectName)\ .exe @@ -130,14 +130,20 @@ stdcpp14 - $(SolutionDir)dependencies\SDL2-msvc\lib\x64\;$(SolutionDir)dependencies\glew-msvc\lib\Release\x64\;%(AdditionalLibraryDirectories) - opengl32.lib;SDL2.lib;SDL2main.lib;glew32.lib;%(AdditionalDependencies) + $(SolutionDir)dependencies\SDL2-msvc\lib\x64\;$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\;$(SolutionDir)dependencies\glew-msvc\lib\Release\x64\;%(AdditionalLibraryDirectories) + opengl32.lib;SDL2.lib;SDL2main.lib;glew32.lib;SDL2_image.lib;%(AdditionalDependencies) Console Copy dependencies libraries echo Copying SDL2 copy /Y "$(SolutionDir)dependencies\SDL2-msvc\lib\x64\SDL2.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\SDL2_image.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\zlib1.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libjpeg-9.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libpng16-16.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libtiff-5.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libwebp-7.dll" "$(OutDir)" echo Copying GLEW copy /Y "$(SolutionDir)dependencies\glew-msvc\bin\Release\x64\glew32.dll" "$(OutDir)" echo Copying Config Files @@ -189,14 +195,20 @@ xcopy "$(ProjectDir)assets" "$(OutDir)assets\" /E true true - $(SolutionDir)dependencies\SDL2-msvc\lib\x64\;$(SolutionDir)dependencies\glew-msvc\lib\Release\x64\;%(AdditionalLibraryDirectories) - opengl32.lib;SDL2.lib;SDL2main.lib;glew32.lib;%(AdditionalDependencies) + $(SolutionDir)dependencies\SDL2-msvc\lib\x64\;$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\;$(SolutionDir)dependencies\glew-msvc\lib\Release\x64\;%(AdditionalLibraryDirectories) + opengl32.lib;SDL2.lib;SDL2main.lib;glew32.lib;SDL2_image.lib;%(AdditionalDependencies) Console Copy dependencies libraries echo Copying SDL2 copy /Y "$(SolutionDir)dependencies\SDL2-msvc\lib\x64\SDL2.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\SDL2_image.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\zlib1.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libjpeg-9.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libpng16-16.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libtiff-5.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libwebp-7.dll" "$(OutDir)" echo Copying GLEW copy /Y "$(SolutionDir)dependencies\glew-msvc\bin\Release\x64\glew32.dll" "$(OutDir)" echo Copying Config Files diff --git a/3EngineTests/3EngineTests.vcxproj b/3EngineTests/3EngineTests.vcxproj index c72a218..7c75a6c 100644 --- a/3EngineTests/3EngineTests.vcxproj +++ b/3EngineTests/3EngineTests.vcxproj @@ -88,14 +88,14 @@ $(SolutionDir)\intermediate\$(Platform)\$(Configuration)\ - $(SolutionDir)dependencies\SDL2-msvc\include;$(SolutionDir)dependencies\glew-msvc\include;$(VC_IncludePath);$(WindowsSDK_IncludePath) + $(SolutionDir)dependencies\SDL2-msvc\include;$(SolutionDir)dependencies\SDL2-image-msvc\include;$(SolutionDir)dependencies\glew-msvc\include;$(VC_IncludePath);$(WindowsSDK_IncludePath) $(SolutionDir)bin\$(Configuration)\ $(ProjectName)_dbg $(SolutionDir)intermediate\$(Platform)\$(Configuration)\$(ProjectName)\ $(SolutionDir)bin\$(Configuration)\ - $(SolutionDir)dependencies\SDL2-msvc\include;$(SolutionDir)dependencies\glew-msvc\include;$(VC_IncludePath);$(WindowsSDK_IncludePath) + $(SolutionDir)dependencies\SDL2-msvc\include;$(SolutionDir)dependencies\SDL2-image-msvc\include;$(SolutionDir)dependencies\glew-msvc\include;$(VC_IncludePath);$(WindowsSDK_IncludePath) $(ProjectName)_rls $(SolutionDir)intermediate\$(Platform)\$(Configuration)\$(ProjectName)\ @@ -130,14 +130,20 @@ stdcpp14 - $(SolutionDir)dependencies\SDL2-msvc\lib\x64\;$(SolutionDir)\dependencies\glew-msvc\lib\Release\x64\;%(AdditionalLibraryDirectories) - opengl32.lib;SDL2.lib;SDL2main.lib;glew32.lib;%(AdditionalDependencies) + $(SolutionDir)dependencies\SDL2-msvc\lib\x64\;$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\;$(SolutionDir)\dependencies\glew-msvc\lib\Release\x64\;%(AdditionalLibraryDirectories) + opengl32.lib;SDL2.lib;SDL2main.lib;glew32.lib;SDL2_image.lib;%(AdditionalDependencies) Console Copy dependencies libraries echo Copying SDL2 copy /Y "$(SolutionDir)dependencies\SDL2-msvc\lib\x64\SDL2.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\SDL2_image.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\zlib1.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libjpeg-9.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libpng16-16.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libtiff-5.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libwebp-7.dll" "$(OutDir)" echo Copying GLEW copy /Y "$(SolutionDir)dependencies\glew-msvc\bin\Release\x64\glew32.dll" "$(OutDir)" echo Copying Config Files @@ -189,14 +195,20 @@ xcopy "$(SolutionDir)3Engine\assets" "$(OutDir)assets\" /E true true - $(SolutionDir)dependencies\SDL2-msvc\lib\x64\;$(SolutionDir)\dependencies\glew-msvc\lib\Release\x64\;%(AdditionalLibraryDirectories) - opengl32.lib;SDL2.lib;SDL2main.lib;glew32.lib;%(AdditionalDependencies) + $(SolutionDir)dependencies\SDL2-msvc\lib\x64\;$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\;$(SolutionDir)\dependencies\glew-msvc\lib\Release\x64\;%(AdditionalLibraryDirectories) + opengl32.lib;SDL2.lib;SDL2main.lib;glew32.lib;SDL2_image.lib;%(AdditionalDependencies) Console Copy dependencies libraries echo Copying SDL2 copy /Y "$(SolutionDir)dependencies\SDL2-msvc\lib\x64\SDL2.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\SDL2_image.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\zlib1.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libjpeg-9.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libpng16-16.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libtiff-5.dll" "$(OutDir)" +copy /Y "$(SolutionDir)dependencies\SDL2-image-msvc\lib\x64\libwebp-7.dll" "$(OutDir)" echo Copying GLEW copy /Y "$(SolutionDir)dependencies\glew-msvc\bin\Release\x64\glew32.dll" "$(OutDir)" echo Copying Config Files diff --git a/3EngineTests/3EngineTests.vcxproj.filters b/3EngineTests/3EngineTests.vcxproj.filters index 31024d8..42a55e3 100644 --- a/3EngineTests/3EngineTests.vcxproj.filters +++ b/3EngineTests/3EngineTests.vcxproj.filters @@ -30,33 +30,12 @@ Source Files - - Source Files - - - 3Engine Files - - - 3Engine Files - - - 3Engine Files - - - 3Engine Files - - - 3Engine Files - 3Engine Files 3Engine Files - - 3Engine Files - Source Files @@ -98,45 +77,18 @@ Header Files - - Header Files - - - Header Files - - - Header Files - - - Header Files - Header Files Header Files - - 3Engine Files - - - 3Engine Files - - - 3Engine Files - - - 3Engine Files - 3Engine Files 3Engine Files - - 3Engine Files - 3Engine Files diff --git a/README.md b/README.md index 2aa0b4f..853f56f 100644 --- a/README.md +++ b/README.md @@ -76,11 +76,13 @@ The inclusion of the said libraries are needed, yet dependencies are ignored to 1. Download precompiled builds for MSVC (or compile it yourself) * [SDL2](https://github.com/RicardoEPRodrigues/Dependencies/raw/master/SDL2-msvc.zip) + * [SDL2-image](https://github.com/RicardoEPRodrigues/Dependencies/raw/master/SDL2-image-msvc.zip) * [GLEW](https://github.com/RicardoEPRodrigues/Dependencies/raw/master/glew-msvc.zip) 1. Create a folder named `dependencies` and place inside the libraries. Rename them as shown: * SDL2-msvc + * SDL2-image-msvc * glew-msvc ### Compiling diff --git a/appveyor.yml b/appveyor.yml index 0f4d9f2..1cfb35e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -6,6 +6,8 @@ image: install: - ps: New-Item -ItemType Directory -Force -Path dependencies - ps: Start-FileDownload 'https://github.com/RicardoEPRodrigues/Dependencies/raw/master/SDL2-msvc.zip' -FileName 'SDL2-msvc.zip' + - ps: Start-FileDownload 'https://github.com/RicardoEPRodrigues/Dependencies/raw/master/SDL2-image-msvc.zip' -FileName 'SDL2-image-msvc.zip' - ps: Start-FileDownload 'https://github.com/RicardoEPRodrigues/Dependencies/raw/master/glew-msvc.zip' -FileName 'glew-msvc.zip' - ps: Expand-Archive -Path SDL2-msvc.zip –DestinationPath dependencies + - ps: Expand-Archive -Path SDL2-image-msvc.zip –DestinationPath dependencies - ps: Expand-Archive -Path glew-msvc.zip –DestinationPath dependencies