aboutsummaryrefslogtreecommitdiff
path: root/src/stub
diff options
context:
space:
mode:
Diffstat (limited to 'src/stub')
-rw-r--r--src/stub/packages.config5
-rw-r--r--src/stub/precomp.cpp3
-rw-r--r--src/stub/runtime.win.WixToolset.Burn.nuspec20
-rw-r--r--src/stub/stub.rc11
-rw-r--r--src/stub/stub.vcxproj104
5 files changed, 132 insertions, 11 deletions
diff --git a/src/stub/packages.config b/src/stub/packages.config
new file mode 100644
index 00000000..883e8d91
--- /dev/null
+++ b/src/stub/packages.config
@@ -0,0 +1,5 @@
1<?xml version="1.0" encoding="utf-8"?>
2<packages>
3 <package id="Nerdbank.GitVersioning" version="2.1.65" targetFramework="native" developmentDependency="true" />
4 <package id="WixToolset.DUtil" version="4.0.13" targetFramework="native" />
5</packages> \ No newline at end of file
diff --git a/src/stub/precomp.cpp b/src/stub/precomp.cpp
new file mode 100644
index 00000000..37664a1c
--- /dev/null
+++ b/src/stub/precomp.cpp
@@ -0,0 +1,3 @@
1// 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
3#include "precomp.h"
diff --git a/src/stub/runtime.win.WixToolset.Burn.nuspec b/src/stub/runtime.win.WixToolset.Burn.nuspec
new file mode 100644
index 00000000..e296bf8f
--- /dev/null
+++ b/src/stub/runtime.win.WixToolset.Burn.nuspec
@@ -0,0 +1,20 @@
1<?xml version="1.0"?>
2<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
3 <metadata minClientVersion="4.0">
4 <id>$id$</id>
5 <version>$version$</version>
6 <authors>$authors$</authors>
7 <owners>$authors$</owners>
8 <!-- <license type="expression">MS-RL</license> -->
9 <licenseUrl>https://licenses.nuget.org/MS-RL</licenseUrl>
10 <projectUrl>https://github.com/wixtoolset/burn</projectUrl>
11 <requireLicenseAcceptance>false</requireLicenseAcceptance>
12 <description>$description$</description>
13 <copyright>$copyright$</copyright>
14 </metadata>
15
16 <files>
17 <file src="Win32\burn.x86.exe" target="runtimes\win-x86\native" />
18 <file src="Win32\burn.x86.pdb" target="runtimes\win-x86\native" />
19 </files>
20</package>
diff --git a/src/stub/stub.rc b/src/stub/stub.rc
index 5601703d..80e1aac4 100644
--- a/src/stub/stub.rc
+++ b/src/stub/stub.rc
@@ -1,14 +1,3 @@
1// 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. 1// 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 2
3#define VER_APP
4#define VER_ORIGINAL_FILENAME "setup.exe"
5#define VER_INTERNAL_NAME "setup"
6#define VER_FILE_DESCRIPTION "WiX Toolset Bootstrapper"
7#include "wix.rc"
8
91 ICON "stub.ico" 31 ICON "stub.ico"
10
11//#define MANIFEST_RESOURCE_ID 1
12#ifndef ARM // the ARM manifest is automatically injected but other platforms need it done manually.
13//MANIFEST_RESOURCE_ID RT_MANIFEST "stub.manifest"
14#endif
diff --git a/src/stub/stub.vcxproj b/src/stub/stub.vcxproj
new file mode 100644
index 00000000..89b811ca
--- /dev/null
+++ b/src/stub/stub.vcxproj
@@ -0,0 +1,104 @@
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. -->
3
4<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
5 <Import Project="..\..\packages\WixToolset.DUtil.4.0.13\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.13\build\WixToolset.DUtil.props')" />
6
7 <ItemGroup Label="ProjectConfigurations">
8 <ProjectConfiguration Include="Debug|Win32">
9 <Configuration>Debug</Configuration>
10 <Platform>Win32</Platform>
11 </ProjectConfiguration>
12 <ProjectConfiguration Include="Release|Win32">
13 <Configuration>Release</Configuration>
14 <Platform>Win32</Platform>
15 </ProjectConfiguration>
16 <ProjectConfiguration Include="Debug|x64">
17 <Configuration>Debug</Configuration>
18 <Platform>x64</Platform>
19 </ProjectConfiguration>
20 <ProjectConfiguration Include="Release|x64">
21 <Configuration>Release</Configuration>
22 <Platform>x64</Platform>
23 </ProjectConfiguration>
24 </ItemGroup>
25
26 <PropertyGroup>
27 <NameSuffix Condition=" '$(Platform)'=='Win32' ">x86</NameSuffix>
28 <NameSuffix Condition=" '$(Platform)'=='x64' ">amd64</NameSuffix>
29 </PropertyGroup>
30
31 <PropertyGroup Label="Globals">
32 <ProjectGuid>{C38373AA-882F-4F55-B03F-2AAB4BFBE3F1}</ProjectGuid>
33 <ConfigurationType>Application</ConfigurationType>
34 <ProjectSubSystem>Windows</ProjectSubSystem>
35 <TargetName>burn.$(NameSuffix)</TargetName>
36 <PlatformToolset>v141</PlatformToolset>
37 <CharacterSet>Unicode</CharacterSet>
38 <Description>Native component of WixToolset.Burn</Description>
39 </PropertyGroup>
40
41 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
42 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
43
44 <ImportGroup Label="ExtensionSettings">
45 </ImportGroup>
46
47 <ImportGroup Label="Shared">
48 <Import Project="..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets" Condition="Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" />
49 </ImportGroup>
50
51 <PropertyGroup>
52 <ProjectAdditionalIncludeDirectories>$(ProjectDir)..\engine\inc</ProjectAdditionalIncludeDirectories>
53 <ProjectAdditionalLinkLibraries>cabinet.lib;crypt32.lib;gdiplus.lib;msi.lib;rpcrt4.lib;shlwapi.lib;wininet.lib;wintrust.lib;wuguid.lib;engine.lib;engine.res</ProjectAdditionalLinkLibraries>
54 </PropertyGroup>
55
56 <ItemDefinitionGroup>
57 <Link>
58 <SwapRunFromCD>true</SwapRunFromCD>
59 <SwapRunFromNET>true</SwapRunFromNET>
60 <DelayLoadDLLs>cabinet.dll;crypt32.dll;gdiplus.dll;msi.dll;shlwapi.dll;version.dll;wininet.dll;wintrust.dll</DelayLoadDLLs>
61 </Link>
62 </ItemDefinitionGroup>
63
64 <ItemGroup>
65 <ClInclude Include="precomp.h" />
66 </ItemGroup>
67 <ItemGroup>
68 <ClCompile Include="precomp.cpp">
69 <PrecompiledHeader>Create</PrecompiledHeader>
70 </ClCompile>
71 <ClCompile Include="stub.cpp" />
72 <ClCompile Include="StubSection.cpp">
73 <!-- Workaround for VS2015 behavior change that omits the .wixburn section. -->
74 <RemoveUnreferencedCodeData>false</RemoveUnreferencedCodeData>
75 </ClCompile>
76 </ItemGroup>
77 <ItemGroup>
78 <Manifest Include="stub.manifest" />
79 </ItemGroup>
80 <ItemGroup>
81 <ResourceCompile Include="stub.rc" />
82 </ItemGroup>
83
84 <ItemGroup>
85 <ProjectReference Include="..\engine\engine.vcxproj" />
86 </ItemGroup>
87
88 <ItemGroup>
89 <None Include="packages.config" />
90 </ItemGroup>
91
92 <Target Name="Pack" DependsOnTargets="GetBuildVersion">
93 <Exec Command='nuget pack runtime.win.WixToolset.Burn.nuspec -BasePath "$(BaseOutputPath)$(Configuration)" -OutputDirectory "$(BaseOutputPath)$(Configuration)" -NoPackageAnalysis -Properties Configuration=$(Configuration);Id=runtime.win.WixToolset.Burn;Version="$(BuildVersionSimple)";Platform=$(PlatformTarget);Authors="$(Authors)";Copyright="$(Copyright)";Description="$(Description)";Title="$(Title)"' />
94 </Target>
95
96 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
97 <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
98 <PropertyGroup>
99 <ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.The missing file is {0}.</ErrorText>
100 </PropertyGroup>
101 <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'))" />
102 <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.13\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.13\build\WixToolset.DUtil.props'))" />
103 </Target>
104</Project>