From 4917383e6f52f0e44f63c60a645f1dd7e8f8d5f9 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Fri, 3 Sep 2021 13:49:01 -0500 Subject: Build thmviewer. --- src/build_all.cmd | 2 +- src/samples/samples.cmd | 18 ++++++++++++++++++ src/samples/samples.sln | 30 ++++++++++++++++++++++++++++++ src/samples/thmviewer/precomp.h | 1 + src/samples/thmviewer/thmviewer.vcxproj | 32 +++++++------------------------- 5 files changed, 57 insertions(+), 26 deletions(-) create mode 100644 src/samples/samples.cmd create mode 100644 src/samples/samples.sln diff --git a/src/build_all.cmd b/src/build_all.cmd index e631ed52..c59a6bc5 100644 --- a/src/build_all.cmd +++ b/src/build_all.cmd @@ -51,7 +51,7 @@ call ext\ext.cmd %_C% || exit /b :: samples -:: call samples\samples.cmd %_C% || exit /b +call samples\samples.cmd %_C% || exit /b :: integration tests diff --git a/src/samples/samples.cmd b/src/samples/samples.cmd new file mode 100644 index 00000000..8ce4ffe0 --- /dev/null +++ b/src/samples/samples.cmd @@ -0,0 +1,18 @@ +@setlocal +@pushd %~dp0 + +@set _C=Debug +:parse_args +@if /i "%1"=="release" set _C=Release +@if not "%1"=="" shift & goto parse_args + +@echo Building samples %_C% + +:: samples + +nuget restore || exit /b + +msbuild -t:Build -p:Configuration=%_C% || exit /b + +@popd +@endlocal diff --git a/src/samples/samples.sln b/src/samples/samples.sln new file mode 100644 index 00000000..7e2d0762 --- /dev/null +++ b/src/samples/samples.sln @@ -0,0 +1,30 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30711.63 +MinimumVisualStudioVersion = 15.0.26124.0 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "thmviewer", "thmviewer\thmviewer.vcxproj", "{95228C13-97F5-484A-B4A2-ECF4618B0881}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {95228C13-97F5-484A-B4A2-ECF4618B0881}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {95228C13-97F5-484A-B4A2-ECF4618B0881}.Debug|Any CPU.Build.0 = Debug|Win32 + {95228C13-97F5-484A-B4A2-ECF4618B0881}.Debug|x86.ActiveCfg = Debug|Win32 + {95228C13-97F5-484A-B4A2-ECF4618B0881}.Debug|x86.Build.0 = Debug|Win32 + {95228C13-97F5-484A-B4A2-ECF4618B0881}.Release|Any CPU.ActiveCfg = Release|Win32 + {95228C13-97F5-484A-B4A2-ECF4618B0881}.Release|x86.ActiveCfg = Release|Win32 + {95228C13-97F5-484A-B4A2-ECF4618B0881}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {537F1116-39FE-4AED-A9A2-35030E5750D5} + EndGlobalSection +EndGlobal diff --git a/src/samples/thmviewer/precomp.h b/src/samples/thmviewer/precomp.h index 15d889fc..f11d3534 100644 --- a/src/samples/thmviewer/precomp.h +++ b/src/samples/thmviewer/precomp.h @@ -18,6 +18,7 @@ #include "dutil.h" #include "apputil.h" #include "memutil.h" +#include "dictutil.h" #include "dirutil.h" #include "fileutil.h" #include "locutil.h" diff --git a/src/samples/thmviewer/thmviewer.vcxproj b/src/samples/thmviewer/thmviewer.vcxproj index e11551af..41cd9dc5 100644 --- a/src/samples/thmviewer/thmviewer.vcxproj +++ b/src/samples/thmviewer/thmviewer.vcxproj @@ -2,11 +2,6 @@ - - - - - Debug @@ -64,25 +59,12 @@ - - - - - - - + + - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - - - - - + + + + + \ No newline at end of file -- cgit v1.2.3-55-g6feb