From b3d429436ffadafce55dba42ac3416e9cdf3d923 Mon Sep 17 00:00:00 2001 From: John Chadwick Date: Sat, 3 Aug 2024 14:07:12 -0400 Subject: [PATCH] Add test setup for MSVC build --- .github/workflows/msvc.yml | 2 + rugburn.sln | 6 ++ rugburn.vcxproj | 6 +- rugburn.vcxproj.filters | 34 +++------ rugburn_test.vcxproj | 143 +++++++++++++++++++++++++++++++++++ rugburn_test.vcxproj.filters | 29 +++++++ 6 files changed, 197 insertions(+), 23 deletions(-) create mode 100644 rugburn_test.vcxproj create mode 100644 rugburn_test.vcxproj.filters diff --git a/.github/workflows/msvc.yml b/.github/workflows/msvc.yml index da5c185..cbe2c28 100644 --- a/.github/workflows/msvc.yml +++ b/.github/workflows/msvc.yml @@ -13,6 +13,8 @@ jobs: - uses: ilammy/msvc-dev-cmd@v1 - name: Build run: msbuild.exe rugburn.sln "/p:Configuration=Release;Platform=x86" + - name: Test + run: ./out/Win32/Release/test.exe - name: Upload uses: actions/upload-artifact@v2 with: diff --git a/rugburn.sln b/rugburn.sln index b24f1b6..f22e9ec 100644 --- a/rugburn.sln +++ b/rugburn.sln @@ -3,6 +3,8 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.29123.88 MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "rugburn_test", "rugburn_test.vcxproj", "{CDF5F5B1-A35F-4E0D-87F4-41D1ABDE8D94}" +EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "rugburn", "rugburn.vcxproj", "{92071CFB-43D1-497D-BC04-B4646D0623BE}" EndProject Global @@ -11,6 +13,10 @@ Global Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution + {CDF5F5B1-A35F-4E0D-87F4-41D1ABDE8D94}.Debug|x86.ActiveCfg = Debug|Win32 + {CDF5F5B1-A35F-4E0D-87F4-41D1ABDE8D94}.Debug|x86.Build.0 = Debug|Win32 + {CDF5F5B1-A35F-4E0D-87F4-41D1ABDE8D94}.Release|x86.ActiveCfg = Release|Win32 + {CDF5F5B1-A35F-4E0D-87F4-41D1ABDE8D94}.Release|x86.Build.0 = Release|Win32 {92071CFB-43D1-497D-BC04-B4646D0623BE}.Debug|x86.ActiveCfg = Debug|Win32 {92071CFB-43D1-497D-BC04-B4646D0623BE}.Debug|x86.Build.0 = Debug|Win32 {92071CFB-43D1-497D-BC04-B4646D0623BE}.Release|x86.ActiveCfg = Release|Win32 diff --git a/rugburn.vcxproj b/rugburn.vcxproj index 6da15ae..5182178 100644 --- a/rugburn.vcxproj +++ b/rugburn.vcxproj @@ -64,6 +64,7 @@ $(IntDir)%(RelativeDir) Default _NO_CRT_STDIO_INLINE;%(PreprocessorDefinitions) + /Gs10000000 %(AdditionalOptions) Console @@ -87,6 +88,7 @@ MultiThreaded $(IntDir)%(RelativeDir) _NO_CRT_STDIO_INLINE;%(PreprocessorDefinitions) + /Gs10000000 %(AdditionalOptions) Console @@ -117,11 +119,13 @@ + + Document ml /c /Fo$(OutDir)%(Filename).obj %(FullPath) - $(OutDir)%(Filename).obj ml /c /Fo$(OutDir)%(Filename).obj %(FullPath) + $(OutDir)%(Filename).obj $(OutDir)%(Filename).obj false false diff --git a/rugburn.vcxproj.filters b/rugburn.vcxproj.filters index 18cc16e..7487449 100644 --- a/rugburn.vcxproj.filters +++ b/rugburn.vcxproj.filters @@ -2,39 +2,29 @@ - + + + + + + + + + + - - - - - - - - - + - - - {749b9e28-ce49-4aa7-999d-be4bb1077fc1} - - - {94f8af0b-1247-4f4a-929d-819e5285c358} - - - - - msvcrt - + diff --git a/rugburn_test.vcxproj b/rugburn_test.vcxproj new file mode 100644 index 0000000..452575f --- /dev/null +++ b/rugburn_test.vcxproj @@ -0,0 +1,143 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + 16.0 + {cdf5f5b1-a35f-4e0d-87f4-41d1abde8d94} + rugburntest + 10.0 + + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + + + + + + + + + + + + + test + $(SolutionDir)out\$(Platform)\$(Configuration)\ + $(SolutionDir)obj\$(Platform)\$(Configuration)\ + + + test + $(SolutionDir)out\$(Platform)\$(Configuration)\ + $(SolutionDir)obj\$(Platform)\$(Configuration)\ + + + + Level3 + Disabled + + + true + false + MultiThreaded + $(IntDir)%(RelativeDir) + Default + _NO_CRT_STDIO_INLINE;%(PreprocessorDefinitions) + /Gs10000000 %(AdditionalOptions) + + + Console + true + true + start + kernel32.lib;user32.lib;shlwapi.lib;ws2_32.lib;$(ProjectDir)\third_party\msvcrt\msvcrt.lib;$(ProjectDir)\third_party\ijl\ijl15l.lib;%(AdditionalDependencies) + false + + + + + Level3 + MaxSpeed + true + false + + + true + false + MultiThreaded + $(IntDir)%(RelativeDir) + _NO_CRT_STDIO_INLINE;%(PreprocessorDefinitions) + /Gs10000000 %(AdditionalOptions) + + + Console + true + true + true + true + start + kernel32.lib;user32.lib;shlwapi.lib;ws2_32.lib;$(ProjectDir)\third_party\msvcrt\msvcrt.lib;$(ProjectDir)\third_party\ijl\ijl15l.lib;%(AdditionalDependencies) + false + + + + + + + + + + + + + + + + + + + + + + + + Document + ml /c /Fo$(OutDir)%(Filename).obj %(FullPath) + ml /c /Fo$(OutDir)%(Filename).obj %(FullPath) + $(OutDir)%(Filename).obj + $(OutDir)%(Filename).obj + false + false + Object + Object + + + + + + + + + + diff --git a/rugburn_test.vcxproj.filters b/rugburn_test.vcxproj.filters new file mode 100644 index 0000000..c98e1a2 --- /dev/null +++ b/rugburn_test.vcxproj.filters @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +