From 75137395850e685c38b9370265a27222438226f1 Mon Sep 17 00:00:00 2001 From: Eduardo Dantas <8551443+dudantas@users.noreply.github.com> Date: Tue, 28 Mar 2023 14:17:36 -0300 Subject: [PATCH 1/2] improve: add visual studio solution Added a simple build file for Visual Studio using vcxproj (workaround). It's an easier and simpler way to compile for beginners, and it also allows more flexibility in how to compile. --- src/pch.hpp | 6 +- vcproj/canary.sln | 31 +++ vcproj/canary.vcxproj | 574 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 610 insertions(+), 1 deletion(-) create mode 100644 vcproj/canary.sln create mode 100644 vcproj/canary.vcxproj diff --git a/src/pch.hpp b/src/pch.hpp index 96d13d02c42..a885d1dda19 100644 --- a/src/pch.hpp +++ b/src/pch.hpp @@ -41,7 +41,11 @@ #endif #include #include -#include +#if __has_include("") + #include +#else + #include +#endif #include #include #include diff --git a/vcproj/canary.sln b/vcproj/canary.sln new file mode 100644 index 00000000000..d5d5ce28b7a --- /dev/null +++ b/vcproj/canary.sln @@ -0,0 +1,31 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.33516.290 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "canary", "canary.vcxproj", "{7AA6C5AC-C8C4-40EF-A0B3-3569B9819163}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Release|x64 = Release|x64 + Release|x86 = Release|x86 + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + **SolutionConfigurationPlatforms = Release|x64** + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {7AA6C5AC-C8C4-40EF-A0B3-3569B9819163}.Release|x64.ActiveCfg = Release|x64 + {7AA6C5AC-C8C4-40EF-A0B3-3569B9819163}.Release|x64.Build.0 = Release|x64 + {7AA6C5AC-C8C4-40EF-A0B3-3569B9819163}.Release|x86.ActiveCfg = Release|Win32 + {7AA6C5AC-C8C4-40EF-A0B3-3569B9819163}.Release|x86.Build.0 = Release|Win32 + {7AA6C5AC-C8C4-40EF-A0B3-3569B9819163}.Debug|x64.ActiveCfg = Debug|x64 + {7AA6C5AC-C8C4-40EF-A0B3-3569B9819163}.Debug|x64.Build.0 = Debug|x64 + {7AA6C5AC-C8C4-40EF-A0B3-3569B9819163}.Debug|x86.ActiveCfg = Debug|Win32 + {7AA6C5AC-C8C4-40EF-A0B3-3569B9819163}.Debug|x86.Build.0 = Debug|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {08F44C02-0C57-4F71-BE7C-D5ECF6D19515} + EndGlobalSection +EndGlobal diff --git a/vcproj/canary.vcxproj b/vcproj/canary.vcxproj new file mode 100644 index 00000000000..79af3d6360a --- /dev/null +++ b/vcproj/canary.vcxproj @@ -0,0 +1,574 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Create + Create + Create + Create + + + + + + + {7AA6C5AC-C8C4-40EF-A0B3-3569B9819163} + Canary + Win32Proj + 10.0.22000.0 + ..\ + + + + Application + Unicode + true + v143 + + + Application + MultiByte + true + v143 + + + Application + Unicode + v143 + + + Application + Unicode + v143 + + + v143 + + + v143 + x64 + + + + + + + + + + + + + + + + + + + <_ProjectFileVersion>10.0.21006.1 + $(SolutionDir)$(Configuration)\ + $(Configuration)\ + false + false + $(SolutionDir)$(Configuration)\ + $(Configuration)\ + false + false + AllRules.ruleset + AllRules.ruleset + + + + + AllRules.ruleset + AllRules.ruleset + + + + + $(IncludePath) + $(IncludePath) + $(LibraryPath) + $(LibraryPath) + $(IncludePath) + $(IncludePath) + $(LibraryPath) + $(LibraryPath) + + + ..\..\canary\src;$(IncludePath) + false + + + $(ProjectName)_x32 + ..\..\canary\src;$(IncludePath) + false + + + true + + + ..\vcproj\vcpkg_installed\ + + + + Disabled + %(AdditionalIncludeDirectories) + WIN32;_CRTDBG_MAP_ALLOC;__DEBUG__;WXUSINGDLL;wxMSVC_VERSION_AUTO;__EXPERIMENTAL__;LIVE_SERVER;%(PreprocessorDefinitions) + true + EnableFastChecks + MultiThreadedDebugDLL + Level3 + ProgramDatabase + true + + + comctl32.lib;Rpcrt4.lib;WS2_32.lib;%(AdditionalDependencies) + $(SolutionDir)..\dependencies\vs\lib\ + true + true + $(TargetName).map + true + Windows + MachineX86 + wxscintillad.lib + + + + + Disabled + %(AdditionalIncludeDirectories) + WIN32;_CRTDBG_MAP_ALLOC;__DEBUG__;WXUSINGDLL;wxMSVC_VERSION_AUTO;__EXPERIMENTAL__;LIVE_SERVER;%(PreprocessorDefinitions) + EnableFastChecks + MultiThreadedDebugDLL + Level3 + ProgramDatabase + true + /bigobj %(AdditionalOptions) + + + comctl32.lib;Rpcrt4.lib;WS2_32.lib;%(AdditionalDependencies) + $(SolutionDir)..\dependencies\vs\lib\ + true + true + $(TargetName).map + true + Windows + wxscintillad.lib + + + + + Full + AnySuitable + true + Speed + %(AdditionalIncludeDirectories) + NDEBUG;__RELEASE__;WXUSINGDLL;wxMSVC_VERSION_AUTO;%(PreprocessorDefinitions) + MultiThreadedDLL + false + Level3 + ProgramDatabase + true + false + stdcpp20 + + + + comctl32.lib;WS2_32.lib;%(AdditionalDependencies) + true + Windows + true + true + true + MachineX86 + + + + + + + Full + AnySuitable + true + Speed + %(AdditionalIncludeDirectories) + NDEBUG;__RELEASE__;WXUSINGDLL;wxMSVC_VERSION_AUTO;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + MultiThreadedDLL + false + Level1 + ProgramDatabase + true + false + -Zm114 %(AdditionalOptions) + + + stdcpp20 + + + + comctl32.lib;WS2_32.lib;%(AdditionalDependencies) + true + Console + true + true + true + $(SolutionDir)..\dependencies\vs\lib\;%(AdditionalLibraryDirectories) + + + + + stdcpp20 + + + + + + stdcpp20 + + + + + + + \ No newline at end of file From a3b45a91cdbc8002013630fd092e7a74c680764a Mon Sep 17 00:00:00 2001 From: Eduardo Dantas <8551443+dudantas@users.noreply.github.com> Date: Tue, 28 Mar 2023 18:33:20 -0300 Subject: [PATCH 2/2] fix: include path --- vcproj/canary.vcxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcproj/canary.vcxproj b/vcproj/canary.vcxproj index 79af3d6360a..2f1f3ca386c 100644 --- a/vcproj/canary.vcxproj +++ b/vcproj/canary.vcxproj @@ -436,12 +436,12 @@ $(LibraryPath) - ..\..\canary\src;$(IncludePath) + ..\src;$(IncludePath) false $(ProjectName)_x32 - ..\..\canary\src;$(IncludePath) + ..\src;$(IncludePath) false