diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2020-03-28 17:03:31 +1000 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2020-03-30 21:57:49 +1000 |
commit | d74e3dd4bcc573d0c4b1fb5c36c8bf0115cc21a1 (patch) | |
tree | 7d051293940bcc2778d0aa52f015e52506663faf /src/be | |
parent | e79d9190439e1f740d5646f2f30cccd57b328d17 (diff) | |
download | wix-d74e3dd4bcc573d0c4b1fb5c36c8bf0115cc21a1.tar.gz wix-d74e3dd4bcc573d0c4b1fb5c36c8bf0115cc21a1.tar.bz2 wix-d74e3dd4bcc573d0c4b1fb5c36c8bf0115cc21a1.zip |
Add initial WixUtilBundleExtension.
Diffstat (limited to 'src/be')
-rw-r--r-- | src/be/packages.config | 5 | ||||
-rw-r--r-- | src/be/precomp.cpp | 3 | ||||
-rw-r--r-- | src/be/precomp.h | 25 | ||||
-rw-r--r-- | src/be/utilbe.cpp | 19 | ||||
-rw-r--r-- | src/be/utilbe.def | 8 | ||||
-rw-r--r-- | src/be/utilbe.vcxproj | 61 |
6 files changed, 121 insertions, 0 deletions
diff --git a/src/be/packages.config b/src/be/packages.config new file mode 100644 index 00000000..f05546c5 --- /dev/null +++ b/src/be/packages.config | |||
@@ -0,0 +1,5 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <packages> | ||
3 | <package id="WixToolset.BootstrapperCore.Native" version="4.0.13" targetFramework="native" /> | ||
4 | <package id="WixToolset.DUtil" version="4.0.18" targetFramework="native" /> | ||
5 | </packages> \ No newline at end of file | ||
diff --git a/src/be/precomp.cpp b/src/be/precomp.cpp new file mode 100644 index 00000000..37664a1c --- /dev/null +++ b/src/be/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/be/precomp.h b/src/be/precomp.h new file mode 100644 index 00000000..9dc3c468 --- /dev/null +++ b/src/be/precomp.h | |||
@@ -0,0 +1,25 @@ | |||
1 | #pragma once | ||
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 | |||
5 | #if _WIN32_MSI < 150 | ||
6 | #define _WIN32_MSI 150 | ||
7 | #endif | ||
8 | |||
9 | #include <windows.h> | ||
10 | #include <msiquery.h> | ||
11 | #include <msidefs.h> | ||
12 | #include <stierr.h> | ||
13 | |||
14 | #include <strsafe.h> | ||
15 | |||
16 | #include <msxml2.h> | ||
17 | |||
18 | #define MAXUINT USHRT_MAX | ||
19 | |||
20 | #include "dutil.h" | ||
21 | #include "memutil.h" | ||
22 | |||
23 | #include "BootstrapperEngine.h" | ||
24 | #include "BundleExtensionEngine.h" | ||
25 | #include "BundleExtension.h" | ||
diff --git a/src/be/utilbe.cpp b/src/be/utilbe.cpp new file mode 100644 index 00000000..370669dd --- /dev/null +++ b/src/be/utilbe.cpp | |||
@@ -0,0 +1,19 @@ | |||
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" | ||
4 | |||
5 | // function definitions | ||
6 | |||
7 | extern "C" HRESULT WINAPI BundleExtensionCreate( | ||
8 | __in const BUNDLE_EXTENSION_CREATE_ARGS* /*pArgs*/, | ||
9 | __inout BUNDLE_EXTENSION_CREATE_RESULTS* /*pResults*/ | ||
10 | ) | ||
11 | { | ||
12 | HRESULT hr = S_OK; | ||
13 | |||
14 | return hr; | ||
15 | } | ||
16 | |||
17 | extern "C" void WINAPI BundleExtensionDestroy() | ||
18 | { | ||
19 | } \ No newline at end of file | ||
diff --git a/src/be/utilbe.def b/src/be/utilbe.def new file mode 100644 index 00000000..711b1a5c --- /dev/null +++ b/src/be/utilbe.def | |||
@@ -0,0 +1,8 @@ | |||
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 | |||
4 | LIBRARY "utilbe" | ||
5 | |||
6 | EXPORTS | ||
7 | BundleExtensionCreate | ||
8 | BundleExtensionDestroy | ||
diff --git a/src/be/utilbe.vcxproj b/src/be/utilbe.vcxproj new file mode 100644 index 00000000..963eac7f --- /dev/null +++ b/src/be/utilbe.vcxproj | |||
@@ -0,0 +1,61 @@ | |||
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.BootstrapperCore.Native.4.0.13\build\WixToolset.BootstrapperCore.Native.props" Condition="Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.13\build\WixToolset.BootstrapperCore.Native.props')" /> | ||
6 | <Import Project="..\..\packages\WixToolset.DUtil.4.0.18\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.18\build\WixToolset.DUtil.props')" /> | ||
7 | |||
8 | <ItemGroup Label="ProjectConfigurations"> | ||
9 | <ProjectConfiguration Include="Debug|Win32"> | ||
10 | <Configuration>Debug</Configuration> | ||
11 | <Platform>Win32</Platform> | ||
12 | </ProjectConfiguration> | ||
13 | <ProjectConfiguration Include="Release|Win32"> | ||
14 | <Configuration>Release</Configuration> | ||
15 | <Platform>Win32</Platform> | ||
16 | </ProjectConfiguration> | ||
17 | </ItemGroup> | ||
18 | |||
19 | <PropertyGroup Label="Globals"> | ||
20 | <ProjectGuid>{630C1EE7-2517-4A8C-83E3-DA1150308B58}</ProjectGuid> | ||
21 | <ConfigurationType>DynamicLibrary</ConfigurationType> | ||
22 | <TargetName>utilbe</TargetName> | ||
23 | <PlatformToolset>v141</PlatformToolset> | ||
24 | <CharacterSet>Unicode</CharacterSet> | ||
25 | <ProjectModuleDefinitionFile>utilbe.def</ProjectModuleDefinitionFile> | ||
26 | <Description>WiX Toolset Util BundleExtension</Description> | ||
27 | </PropertyGroup> | ||
28 | |||
29 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | ||
30 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | ||
31 | |||
32 | <PropertyGroup> | ||
33 | <ProjectAdditionalLinkLibraries>msi.lib</ProjectAdditionalLinkLibraries> | ||
34 | </PropertyGroup> | ||
35 | |||
36 | <ItemGroup> | ||
37 | <ClCompile Include="precomp.cpp"> | ||
38 | <PrecompiledHeader>Create</PrecompiledHeader> | ||
39 | </ClCompile> | ||
40 | <ClCompile Include="utilbe.cpp" /> | ||
41 | </ItemGroup> | ||
42 | |||
43 | <ItemGroup> | ||
44 | <ClInclude Include="precomp.h" /> | ||
45 | </ItemGroup> | ||
46 | |||
47 | <ItemGroup> | ||
48 | <None Include="packages.config" /> | ||
49 | <None Include="utilbe.def" /> | ||
50 | </ItemGroup> | ||
51 | |||
52 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | ||
53 | |||
54 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | ||
55 | <PropertyGroup> | ||
56 | <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> | ||
57 | </PropertyGroup> | ||
58 | <Error Condition="!Exists('..\..\packages\WixToolset.BootstrapperCore.Native.4.0.13\build\WixToolset.BootstrapperCore.Native.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.BootstrapperCore.Native.4.0.13\build\WixToolset.BootstrapperCore.Native.props'))" /> | ||
59 | <Error Condition="!Exists('..\..\packages\WixToolset.DUtil.4.0.18\build\WixToolset.DUtil.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.DUtil.4.0.18\build\WixToolset.DUtil.props'))" /> | ||
60 | </Target> | ||
61 | </Project> | ||