diff options
author | Rob Mensching <rob@firegiant.com> | 2021-04-26 11:31:05 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2021-05-11 11:14:01 -0700 |
commit | df016066100df955d5ff98811e113fb2b1bd4b8a (patch) | |
tree | a27b35a3651ca7b1d8c4bb7c7483ec2f92583e08 /src/libs/wcautil/WixToolset.WcaUtil | |
parent | dc6022da6cdbb9d7ca54c4a36485ceead07feaaf (diff) | |
download | wix-df016066100df955d5ff98811e113fb2b1bd4b8a.tar.gz wix-df016066100df955d5ff98811e113fb2b1bd4b8a.tar.bz2 wix-df016066100df955d5ff98811e113fb2b1bd4b8a.zip |
Implement integrated build process
Diffstat (limited to 'src/libs/wcautil/WixToolset.WcaUtil')
-rw-r--r-- | src/libs/wcautil/WixToolset.WcaUtil/packages.config | 5 | ||||
-rw-r--r-- | src/libs/wcautil/WixToolset.WcaUtil/wcautil.nuspec | 29 | ||||
-rw-r--r-- | src/libs/wcautil/WixToolset.WcaUtil/wcautil.vcxproj | 31 |
3 files changed, 27 insertions, 38 deletions
diff --git a/src/libs/wcautil/WixToolset.WcaUtil/packages.config b/src/libs/wcautil/WixToolset.WcaUtil/packages.config deleted file mode 100644 index aa8b4077..00000000 --- a/src/libs/wcautil/WixToolset.WcaUtil/packages.config +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <packages> | ||
3 | <package id="Nerdbank.GitVersioning" version="2.1.65" developmentDependency="true" targetFramework="net40" /> | ||
4 | <package id="WixToolset.DUtil" version="4.0.72" targetFramework="native" /> | ||
5 | </packages> \ No newline at end of file | ||
diff --git a/src/libs/wcautil/WixToolset.WcaUtil/wcautil.nuspec b/src/libs/wcautil/WixToolset.WcaUtil/wcautil.nuspec index a57a5749..b9547a8b 100644 --- a/src/libs/wcautil/WixToolset.WcaUtil/wcautil.nuspec +++ b/src/libs/wcautil/WixToolset.WcaUtil/wcautil.nuspec | |||
@@ -1,30 +1,31 @@ | |||
1 | <?xml version="1.0"?> | 1 | <?xml version="1.0"?> |
2 | <package > | 2 | <package > |
3 | <metadata> | 3 | <metadata minClientVersion="4.0"> |
4 | <id>$id$</id> | 4 | <id>$id$</id> |
5 | <version>$version$</version> | 5 | <version>$version$</version> |
6 | <title>$title$</title> | ||
7 | <description>$description$</description> | ||
6 | <authors>$authors$</authors> | 8 | <authors>$authors$</authors> |
7 | <owners>$authors$</owners> | ||
8 | <license type="expression">MS-RL</license> | 9 | <license type="expression">MS-RL</license> |
9 | <projectUrl>https://github.com/wixtoolset/wcautil</projectUrl> | ||
10 | <requireLicenseAcceptance>false</requireLicenseAcceptance> | 10 | <requireLicenseAcceptance>false</requireLicenseAcceptance> |
11 | <description>$description$</description> | ||
12 | <copyright>$copyright$</copyright> | 11 | <copyright>$copyright$</copyright> |
12 | <projectUrl>$projectUrl$</projectUrl> | ||
13 | <repository type="$repositorytype$" url="$repositoryurl$" commit="$repositorycommit$" /> | ||
13 | <dependencies> | 14 | <dependencies> |
14 | <dependency id="WixToolset.DUtil" version="[4,5)" /> | 15 | <dependency id="WixToolset.DUtil" version="[4,5)" /> |
15 | </dependencies> | 16 | </dependencies> |
16 | </metadata> | 17 | </metadata> |
17 | 18 | ||
18 | <files> | 19 | <files> |
19 | <file src="build\$id$.props" target="build\" /> | 20 | <file src="$projectFolder$\build\$id$.props" target="build\" /> |
20 | <file src="inc\*" target="build\native\include" /> | 21 | <file src="$projectFolder$\inc\*" target="build\native\include" /> |
21 | <file src="..\..\build\$configuration$\v140\x64\wcautil.lib" target="build\native\v140\x64" /> | 22 | <file src="..\..\v140\x64\wcautil.lib" target="build\native\v140\x64" /> |
22 | <file src="..\..\build\$configuration$\v140\x86\wcautil.lib" target="build\native\v140\x86" /> | 23 | <file src="..\..\v140\x86\wcautil.lib" target="build\native\v140\x86" /> |
23 | <file src="..\..\build\$configuration$\v141\x64\wcautil.lib" target="build\native\v141\x64" /> | 24 | <file src="..\..\v141\x64\wcautil.lib" target="build\native\v141\x64" /> |
24 | <file src="..\..\build\$configuration$\v141\x86\wcautil.lib" target="build\native\v141\x86" /> | 25 | <file src="..\..\v141\x86\wcautil.lib" target="build\native\v141\x86" /> |
25 | <file src="..\..\build\$configuration$\v141\ARM64\wcautil.lib" target="build\native\v141\ARM64" /> | 26 | <file src="..\..\v141\ARM64\wcautil.lib" target="build\native\v141\ARM64" /> |
26 | <file src="..\..\build\$configuration$\v142\x64\wcautil.lib" target="build\native\v142\x64" /> | 27 | <file src="..\..\v142\x64\wcautil.lib" target="build\native\v142\x64" /> |
27 | <file src="..\..\build\$configuration$\v142\x86\wcautil.lib" target="build\native\v142\x86" /> | 28 | <file src="..\..\v142\x86\wcautil.lib" target="build\native\v142\x86" /> |
28 | <file src="..\..\build\$configuration$\v142\ARM64\wcautil.lib" target="build\native\v142\ARM64" /> | 29 | <file src="..\..\v142\ARM64\wcautil.lib" target="build\native\v142\ARM64" /> |
29 | </files> | 30 | </files> |
30 | </package> | 31 | </package> |
diff --git a/src/libs/wcautil/WixToolset.WcaUtil/wcautil.vcxproj b/src/libs/wcautil/WixToolset.WcaUtil/wcautil.vcxproj index 6876bd5b..377358ef 100644 --- a/src/libs/wcautil/WixToolset.WcaUtil/wcautil.vcxproj +++ b/src/libs/wcautil/WixToolset.WcaUtil/wcautil.vcxproj | |||
@@ -1,7 +1,7 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
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 | <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"> |
4 | <Import Project="..\..\packages\WixToolset.DUtil.4.0.72\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.72\build\WixToolset.DUtil.props')" /> | ||
5 | <ItemGroup Label="ProjectConfigurations"> | 5 | <ItemGroup Label="ProjectConfigurations"> |
6 | <ProjectConfiguration Include="Debug|ARM64"> | 6 | <ProjectConfiguration Include="Debug|ARM64"> |
7 | <Configuration>Debug</Configuration> | 7 | <Configuration>Debug</Configuration> |
@@ -28,6 +28,7 @@ | |||
28 | <Platform>x64</Platform> | 28 | <Platform>x64</Platform> |
29 | </ProjectConfiguration> | 29 | </ProjectConfiguration> |
30 | </ItemGroup> | 30 | </ItemGroup> |
31 | |||
31 | <PropertyGroup Label="Globals"> | 32 | <PropertyGroup Label="Globals"> |
32 | <ProjectGuid>{5B3714B6-3A76-463E-8595-D48DA276C512}</ProjectGuid> | 33 | <ProjectGuid>{5B3714B6-3A76-463E-8595-D48DA276C512}</ProjectGuid> |
33 | <ConfigurationType>StaticLibrary</ConfigurationType> | 34 | <ConfigurationType>StaticLibrary</ConfigurationType> |
@@ -36,14 +37,17 @@ | |||
36 | <PlatformToolset>v142</PlatformToolset> | 37 | <PlatformToolset>v142</PlatformToolset> |
37 | <CharacterSet>MultiByte</CharacterSet> | 38 | <CharacterSet>MultiByte</CharacterSet> |
38 | <Description>WiX Toolset Custom Action native utility library</Description> | 39 | <Description>WiX Toolset Custom Action native utility library</Description> |
40 | <PackageId>WixToolset.WcaUtil</PackageId> | ||
39 | </PropertyGroup> | 41 | </PropertyGroup> |
40 | 42 | ||
41 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | 43 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
42 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | 44 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
43 | <ImportGroup Label="Shared"> | 45 | |
44 | <Import Project="..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets" Condition="Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" /> | 46 | <Import Project="..\..\..\NativeMultiTargeting.Build.props" /> |
45 | </ImportGroup> | 47 | |
46 | <Import Project="..\NativeMultiTargeting.Build.props" /> | 48 | <PropertyGroup> |
49 | <ProjectAdditionalIncludeDirectories>..\..\dutil\WixToolset.DUtil\inc</ProjectAdditionalIncludeDirectories> | ||
50 | </PropertyGroup> | ||
47 | 51 | ||
48 | <ItemGroup> | 52 | <ItemGroup> |
49 | <ClCompile Include="exbinary.cpp" /> | 53 | <ClCompile Include="exbinary.cpp" /> |
@@ -75,20 +79,9 @@ | |||
75 | </ItemGroup> | 79 | </ItemGroup> |
76 | 80 | ||
77 | <ItemGroup> | 81 | <ItemGroup> |
78 | <None Include="packages.config" /> | 82 | <PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" /> |
83 | <PackageReference Include="GitInfo" PrivateAssets="All" /> | ||
79 | </ItemGroup> | 84 | </ItemGroup> |
80 | 85 | ||
81 | <Target Name="PackNativeNuget" | ||
82 | DependsOnTargets="GetBuildVersion"> | ||
83 | <Exec Command='nuget pack wcautil.nuspec -OutputDirectory "$(BaseOutputPath)$(Configuration)" -Properties Configuration=$(Configuration);Id=WixToolset.WcaUtil;Version="$(BuildVersionSimple)";Authors="$(Authors)";Copyright="$(Copyright)";Description="$(Description)";Title="$(Title)"' /> | ||
84 | </Target> | ||
85 | |||
86 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | 86 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
87 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | 87 | </Project> |
88 | <PropertyGroup> | ||
89 | <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> | ||
90 | </PropertyGroup> | ||
91 | <Error Condition="!Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets'))" /> | ||
92 | <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.72\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.72\build\WixToolset.DUtil.props'))" /> | ||
93 | </Target> | ||
94 | </Project> \ No newline at end of file | ||