From d74e3dd4bcc573d0c4b1fb5c36c8bf0115cc21a1 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Sat, 28 Mar 2020 17:03:31 +1000 Subject: Add initial WixUtilBundleExtension. --- src/be/packages.config | 5 ++++ src/be/precomp.cpp | 3 +++ src/be/precomp.h | 25 ++++++++++++++++++ src/be/utilbe.cpp | 19 ++++++++++++++ src/be/utilbe.def | 8 ++++++ src/be/utilbe.vcxproj | 61 ++++++++++++++++++++++++++++++++++++++++++++ src/wixlib/UtilExtension.wxs | 4 +++ src/wixlib/packages.config | 2 +- src/wixlib/util.wixproj | 8 ++++-- 9 files changed, 132 insertions(+), 3 deletions(-) create mode 100644 src/be/packages.config create mode 100644 src/be/precomp.cpp create mode 100644 src/be/precomp.h create mode 100644 src/be/utilbe.cpp create mode 100644 src/be/utilbe.def create mode 100644 src/be/utilbe.vcxproj (limited to 'src') 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 @@ + + + + + \ 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 @@ +// 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. + +#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 @@ +#pragma once +// 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. + + +#if _WIN32_MSI < 150 +#define _WIN32_MSI 150 +#endif + +#include +#include +#include +#include + +#include + +#include + +#define MAXUINT USHRT_MAX + +#include "dutil.h" +#include "memutil.h" + +#include "BootstrapperEngine.h" +#include "BundleExtensionEngine.h" +#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 @@ +// 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. + +#include "precomp.h" + +// function definitions + +extern "C" HRESULT WINAPI BundleExtensionCreate( + __in const BUNDLE_EXTENSION_CREATE_ARGS* /*pArgs*/, + __inout BUNDLE_EXTENSION_CREATE_RESULTS* /*pResults*/ + ) +{ + HRESULT hr = S_OK; + + return hr; +} + +extern "C" void WINAPI BundleExtensionDestroy() +{ +} \ 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 @@ +; 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. + + +LIBRARY "utilbe" + +EXPORTS + BundleExtensionCreate + 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 @@ + + + + + + + + + + Debug + Win32 + + + Release + Win32 + + + + + {630C1EE7-2517-4A8C-83E3-DA1150308B58} + DynamicLibrary + utilbe + v141 + Unicode + utilbe.def + WiX Toolset Util BundleExtension + + + + + + + msi.lib + + + + + Create + + + + + + + + + + + + + + + + + + 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}. + + + + + diff --git a/src/wixlib/UtilExtension.wxs b/src/wixlib/UtilExtension.wxs index 28646ee1..50828416 100644 --- a/src/wixlib/UtilExtension.wxs +++ b/src/wixlib/UtilExtension.wxs @@ -418,4 +418,8 @@ + + + + diff --git a/src/wixlib/packages.config b/src/wixlib/packages.config index 06184af1..25b4e6a9 100644 --- a/src/wixlib/packages.config +++ b/src/wixlib/packages.config @@ -1,5 +1,5 @@  - + \ No newline at end of file diff --git a/src/wixlib/util.wixproj b/src/wixlib/util.wixproj index 21d96832..4db3b93d 100644 --- a/src/wixlib/util.wixproj +++ b/src/wixlib/util.wixproj @@ -1,7 +1,7 @@ - + {1ACFFEFD-505A-41A5-ACBF-A02B7B473AA2} @@ -26,6 +26,10 @@ + + utilbe + {630C1EE7-2517-4A8C-83E3-DA1150308B58} + utilca {076018F7-19BD-423A-ABBF-229273DA08D8} @@ -46,7 +50,7 @@ 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}. - + -- cgit v1.2.3-55-g6feb