From a4a20ddc42f74bfc1a472fa2de9aaef541e23609 Mon Sep 17 00:00:00 2001 From: David Farrell Date: Tue, 21 Apr 2020 10:59:08 -0700 Subject: [PATCH] Updated Visual Studio project files to use vcpkg directory for dependencies This modifies all of the include and lib paths to point to vcpkg/vcpkg/installed/x64-windows-static/include and lib. With these changes, all executables in Tracy build out of the box in all configurations (assuming you have run the install_vcpkg_depencies.bat script first). Perhaps it would be better to use a single Visual Studio .props file that all of the .vcxproj files point to so that the include and lib paths are set in a single place, but for now the paths are set separately in each .vcxproj. --- capture/build/win32/capture.vcxproj | 8 ++++++-- import-chrome/build/win32/import-chrome.vcxproj | 8 ++++++-- profiler/build/win32/Tracy.vcxproj | 10 ++++++---- update/build/win32/update.vcxproj | 8 ++++++-- 4 files changed, 24 insertions(+), 10 deletions(-) diff --git a/capture/build/win32/capture.vcxproj b/capture/build/win32/capture.vcxproj index d0d59fd2..3808683b 100644 --- a/capture/build/win32/capture.vcxproj +++ b/capture/build/win32/capture.vcxproj @@ -89,10 +89,12 @@ TRACY_NO_STATISTICS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;WIN32_LEAN_AND_MEAN;NOMINMAX;_USE_MATH_DEFINES;%(PreprocessorDefinitions) AdvancedVectorExtensions2 stdcpplatest + ..\..\..\vcpkg\vcpkg\installed\x64-windows-static\include - ws2_32.lib;%(AdditionalDependencies) + ws2_32.lib;capstone.lib;%(AdditionalDependencies) Console + ..\..\..\vcpkg\vcpkg\installed\x64-windows-static\lib @@ -121,12 +123,14 @@ TRACY_NO_STATISTICS;NDEBUG;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;WIN32_LEAN_AND_MEAN;NOMINMAX;_USE_MATH_DEFINES;%(PreprocessorDefinitions) AdvancedVectorExtensions2 stdcpplatest + ..\..\..\vcpkg\vcpkg\installed\x64-windows-static\include true true - ws2_32.lib;%(AdditionalDependencies) + ws2_32.lib;capstone.lib;%(AdditionalDependencies) Console + ..\..\..\vcpkg\vcpkg\installed\x64-windows-static\lib diff --git a/import-chrome/build/win32/import-chrome.vcxproj b/import-chrome/build/win32/import-chrome.vcxproj index 009f03e9..5db6ca78 100644 --- a/import-chrome/build/win32/import-chrome.vcxproj +++ b/import-chrome/build/win32/import-chrome.vcxproj @@ -89,10 +89,12 @@ TRACY_NO_STATISTICS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;WIN32_LEAN_AND_MEAN;NOMINMAX;_USE_MATH_DEFINES;%(PreprocessorDefinitions) AdvancedVectorExtensions2 stdcpplatest + ..\..\..\vcpkg\vcpkg\installed\x64-windows-static\include - ws2_32.lib;%(AdditionalDependencies) + ws2_32.lib;capstone.lib;%(AdditionalDependencies) Console + ..\..\..\vcpkg\vcpkg\installed\x64-windows-static\lib @@ -121,12 +123,14 @@ TRACY_NO_STATISTICS;NDEBUG;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;WIN32_LEAN_AND_MEAN;NOMINMAX;_USE_MATH_DEFINES;%(PreprocessorDefinitions) AdvancedVectorExtensions2 stdcpplatest + ..\..\..\vcpkg\vcpkg\installed\x64-windows-static\include true true - ws2_32.lib;%(AdditionalDependencies) + ws2_32.lib;capstone.lib;%(AdditionalDependencies) Console + ..\..\..\vcpkg\vcpkg\installed\x64-windows-static\lib diff --git a/profiler/build/win32/Tracy.vcxproj b/profiler/build/win32/Tracy.vcxproj index d84fa9ea..8f181716 100644 --- a/profiler/build/win32/Tracy.vcxproj +++ b/profiler/build/win32/Tracy.vcxproj @@ -57,7 +57,7 @@ Disabled true _CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;WIN32_LEAN_AND_MEAN;NOMINMAX;_USE_MATH_DEFINES;%(PreprocessorDefinitions) - ..\..\libs\gl3w;..\..\..\imgui;%(AdditionalIncludeDirectories) + ..\..\libs\gl3w;..\..\..\imgui;..\..\..\vcpkg\vcpkg\installed\x64-windows-static\include;%(AdditionalIncludeDirectories) true false true @@ -67,8 +67,9 @@ Fast - ws2_32.lib;opengl32.lib;%(AdditionalDependencies) + ws2_32.lib;opengl32.lib;freetype.lib;glfw3.lib;libpng16.lib;zlib.lib;bz2.lib;capstone.lib;%(AdditionalDependencies) Windows + ..\..\..\vcpkg\vcpkg\installed\x64-windows-static\lib true @@ -82,7 +83,7 @@ true true NDEBUG;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;WIN32_LEAN_AND_MEAN;NOMINMAX;_USE_MATH_DEFINES;%(PreprocessorDefinitions) - ..\..\libs\gl3w;..\..\..\imgui;%(AdditionalIncludeDirectories) + ..\..\libs\gl3w;..\..\..\imgui;..\..\..\vcpkg\vcpkg\installed\x64-windows-static\include;%(AdditionalIncludeDirectories) true true AdvancedVectorExtensions2 @@ -93,8 +94,9 @@ true true - ws2_32.lib;opengl32.lib;%(AdditionalDependencies) + ws2_32.lib;opengl32.lib;freetype.lib;glfw3.lib;libpng16.lib;zlib.lib;bz2.lib;capstone.lib;%(AdditionalDependencies) Windows + ..\..\..\vcpkg\vcpkg\installed\x64-windows-static\lib true diff --git a/update/build/win32/update.vcxproj b/update/build/win32/update.vcxproj index 739835a0..3ed8a6e7 100644 --- a/update/build/win32/update.vcxproj +++ b/update/build/win32/update.vcxproj @@ -89,10 +89,12 @@ TRACY_NO_STATISTICS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;WIN32_LEAN_AND_MEAN;NOMINMAX;_USE_MATH_DEFINES;%(PreprocessorDefinitions) AdvancedVectorExtensions2 stdcpplatest + ..\..\..\vcpkg\vcpkg\installed\x64-windows-static\include - ws2_32.lib;%(AdditionalDependencies) + ws2_32.lib;capstone.lib;%(AdditionalDependencies) Console + ..\..\..\vcpkg\vcpkg\installed\x64-windows-static\lib @@ -121,12 +123,14 @@ TRACY_NO_STATISTICS;NDEBUG;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;WIN32_LEAN_AND_MEAN;NOMINMAX;_USE_MATH_DEFINES;%(PreprocessorDefinitions) AdvancedVectorExtensions2 stdcpplatest + ..\..\..\vcpkg\vcpkg\installed\x64-windows-static\include true true - ws2_32.lib;%(AdditionalDependencies) + ws2_32.lib;capstone.lib;%(AdditionalDependencies) Console + ..\..\..\vcpkg\vcpkg\installed\x64-windows-static\lib