diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2021-09-03 13:49:01 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2021-11-01 16:34:09 -0500 |
commit | 4917383e6f52f0e44f63c60a645f1dd7e8f8d5f9 (patch) | |
tree | d668e8499163baf17c76b30ffd95ae809c129521 | |
parent | 293a609a10765c91dd5ef3f535d9f6f8699a075d (diff) | |
download | wix-4917383e6f52f0e44f63c60a645f1dd7e8f8d5f9.tar.gz wix-4917383e6f52f0e44f63c60a645f1dd7e8f8d5f9.tar.bz2 wix-4917383e6f52f0e44f63c60a645f1dd7e8f8d5f9.zip |
Build thmviewer.
-rw-r--r-- | src/build_all.cmd | 2 | ||||
-rw-r--r-- | src/samples/samples.cmd | 18 | ||||
-rw-r--r-- | src/samples/samples.sln | 30 | ||||
-rw-r--r-- | src/samples/thmviewer/precomp.h | 1 | ||||
-rw-r--r-- | src/samples/thmviewer/thmviewer.vcxproj | 32 |
5 files changed, 57 insertions, 26 deletions
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 | |||
51 | 51 | ||
52 | :: samples | 52 | :: samples |
53 | 53 | ||
54 | :: call samples\samples.cmd %_C% || exit /b | 54 | call samples\samples.cmd %_C% || exit /b |
55 | 55 | ||
56 | 56 | ||
57 | :: integration tests | 57 | :: 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 @@ | |||
1 | @setlocal | ||
2 | @pushd %~dp0 | ||
3 | |||
4 | @set _C=Debug | ||
5 | :parse_args | ||
6 | @if /i "%1"=="release" set _C=Release | ||
7 | @if not "%1"=="" shift & goto parse_args | ||
8 | |||
9 | @echo Building samples %_C% | ||
10 | |||
11 | :: samples | ||
12 | |||
13 | nuget restore || exit /b | ||
14 | |||
15 | msbuild -t:Build -p:Configuration=%_C% || exit /b | ||
16 | |||
17 | @popd | ||
18 | @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 @@ | |||
1 | | ||
2 | Microsoft Visual Studio Solution File, Format Version 12.00 | ||
3 | # Visual Studio Version 16 | ||
4 | VisualStudioVersion = 16.0.30711.63 | ||
5 | MinimumVisualStudioVersion = 15.0.26124.0 | ||
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "thmviewer", "thmviewer\thmviewer.vcxproj", "{95228C13-97F5-484A-B4A2-ECF4618B0881}" | ||
7 | EndProject | ||
8 | Global | ||
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
10 | Debug|Any CPU = Debug|Any CPU | ||
11 | Debug|x86 = Debug|x86 | ||
12 | Release|Any CPU = Release|Any CPU | ||
13 | Release|x86 = Release|x86 | ||
14 | EndGlobalSection | ||
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
16 | {95228C13-97F5-484A-B4A2-ECF4618B0881}.Debug|Any CPU.ActiveCfg = Debug|Win32 | ||
17 | {95228C13-97F5-484A-B4A2-ECF4618B0881}.Debug|Any CPU.Build.0 = Debug|Win32 | ||
18 | {95228C13-97F5-484A-B4A2-ECF4618B0881}.Debug|x86.ActiveCfg = Debug|Win32 | ||
19 | {95228C13-97F5-484A-B4A2-ECF4618B0881}.Debug|x86.Build.0 = Debug|Win32 | ||
20 | {95228C13-97F5-484A-B4A2-ECF4618B0881}.Release|Any CPU.ActiveCfg = Release|Win32 | ||
21 | {95228C13-97F5-484A-B4A2-ECF4618B0881}.Release|x86.ActiveCfg = Release|Win32 | ||
22 | {95228C13-97F5-484A-B4A2-ECF4618B0881}.Release|x86.Build.0 = Release|Win32 | ||
23 | EndGlobalSection | ||
24 | GlobalSection(SolutionProperties) = preSolution | ||
25 | HideSolutionNode = FALSE | ||
26 | EndGlobalSection | ||
27 | GlobalSection(ExtensibilityGlobals) = postSolution | ||
28 | SolutionGuid = {537F1116-39FE-4AED-A9A2-35030E5750D5} | ||
29 | EndGlobalSection | ||
30 | 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 @@ | |||
18 | #include "dutil.h" | 18 | #include "dutil.h" |
19 | #include "apputil.h" | 19 | #include "apputil.h" |
20 | #include "memutil.h" | 20 | #include "memutil.h" |
21 | #include "dictutil.h" | ||
21 | #include "dirutil.h" | 22 | #include "dirutil.h" |
22 | #include "fileutil.h" | 23 | #include "fileutil.h" |
23 | #include "locutil.h" | 24 | #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 @@ | |||
2 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> | 2 | <!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> |
3 | 3 | ||
4 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | 4 | <Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
5 | <Import Project="..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props" Condition="Exists('..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props')" /> | ||
6 | <Import Project="..\..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.props" Condition="Exists('..\..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.props')" /> | ||
7 | <Import Project="..\..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props" Condition="Exists('..\..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props')" /> | ||
8 | <Import Project="..\..\packages\WixToolset.DUtil.4.0.0-preview.0-build.1\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.0-preview.0-build.1\build\WixToolset.DUtil.props')" /> | ||
9 | |||
10 | <ItemGroup Label="ProjectConfigurations"> | 5 | <ItemGroup Label="ProjectConfigurations"> |
11 | <ProjectConfiguration Include="Debug|Win32"> | 6 | <ProjectConfiguration Include="Debug|Win32"> |
12 | <Configuration>Debug</Configuration> | 7 | <Configuration>Debug</Configuration> |
@@ -64,25 +59,12 @@ | |||
64 | <Manifest Include="thmviewer.manifest" /> | 59 | <Manifest Include="thmviewer.manifest" /> |
65 | </ItemGroup> | 60 | </ItemGroup> |
66 | 61 | ||
67 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | 62 | <ItemGroup> |
68 | <ImportGroup Label="ExtensionTargets"> | 63 | <PackageReference Include="WixToolset.DUtil" /> |
69 | <Import Project="..\..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.targets" Condition="Exists('..\..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.targets')" /> | ||
70 | <Import Project="..\..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.targets" Condition="Exists('..\..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.targets')" /> | ||
71 | <Import Project="..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.targets" Condition="Exists('..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.targets')" /> | ||
72 | <Import Project="..\..\packages\Nerdbank.GitVersioning.3.3.37\build\Nerdbank.GitVersioning.targets" Condition="Exists('..\..\packages\Nerdbank.GitVersioning.3.3.37\build\Nerdbank.GitVersioning.targets')" /> | ||
73 | </ImportGroup> | ||
74 | 64 | ||
75 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | 65 | <PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" /> |
76 | <PropertyGroup> | 66 | <PackageReference Include="GitInfo" PrivateAssets="All" /> |
77 | <ErrorText>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}.</ErrorText> | 67 | </ItemGroup> |
78 | </PropertyGroup> | 68 | |
79 | <Error Condition="!Exists('..\..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.props'))" /> | 69 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
80 | <Error Condition="!Exists('..\..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.Build.Tasks.Git.1.0.0\build\Microsoft.Build.Tasks.Git.targets'))" /> | ||
81 | <Error Condition="!Exists('..\..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.props'))" /> | ||
82 | <Error Condition="!Exists('..\..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.SourceLink.Common.1.0.0\build\Microsoft.SourceLink.Common.targets'))" /> | ||
83 | <Error Condition="!Exists('..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.props'))" /> | ||
84 | <Error Condition="!Exists('..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Microsoft.SourceLink.GitHub.1.0.0\build\Microsoft.SourceLink.GitHub.targets'))" /> | ||
85 | <Error Condition="!Exists('..\..\packages\Nerdbank.GitVersioning.3.3.37\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Nerdbank.GitVersioning.3.3.37\build\Nerdbank.GitVersioning.targets'))" /> | ||
86 | <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.0-preview.0-build.1\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.0-preview.0-build.1\build\WixToolset.DUtil.props'))" /> | ||
87 | </Target> | ||
88 | </Project> \ No newline at end of file | 70 | </Project> \ No newline at end of file |