From 3480ec56611d6c8784b7610dcac818133318f675 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Sat, 29 Dec 2018 22:18:45 -0600 Subject: Integrate into latest v4 --- src/engine/engine.cpp | 1 + src/engine/engine.vcxproj | 174 +++++++++++++++++++++++++++++++++++++++++++++ src/engine/packages.config | 6 ++ src/engine/precomp.cpp | 3 + src/engine/precomp.h | 7 +- src/engine/variable.cpp | 1 + 6 files changed, 190 insertions(+), 2 deletions(-) create mode 100644 src/engine/engine.vcxproj create mode 100644 src/engine/packages.config create mode 100644 src/engine/precomp.cpp (limited to 'src/engine') diff --git a/src/engine/engine.cpp b/src/engine/engine.cpp index 3c0f09c9..190c327f 100644 --- a/src/engine/engine.cpp +++ b/src/engine/engine.cpp @@ -144,6 +144,7 @@ extern "C" HRESULT EngineRun( fXmlInitialized = TRUE; ovix.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEXW); + #pragma warning(suppress: 4996) if (!::GetVersionExW((LPOSVERSIONINFOW)&ovix)) { ExitWithLastError(hr, "Failed to get OS info."); diff --git a/src/engine/engine.vcxproj b/src/engine/engine.vcxproj new file mode 100644 index 00000000..169c47fa --- /dev/null +++ b/src/engine/engine.vcxproj @@ -0,0 +1,174 @@ + + + + + + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + + {8119537D-E1D9-6591-D51A-49768A2F9C37} + StaticLibrary + engine + v141 + Unicode + Native component of WixToolset.Burn + + + + + + + + + + + + + $(ProjectDir)..\inc + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Create + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Compiling message file... + mc.exe -h "$(IntDir)." -r "$(IntDir)." -A -c -z engine.messages "$(InputDir)engine.mc" +rc.exe -fo "$(OutDir)engine.res" "$(IntDir)engine.messages.rc" + $(IntDir)engine.messages.h;$(OutDir)engine.messages.rc + + + + + + + + rmj=4;rmm=0;rup=$(BuildNumber);szVerMajorMinorBuild="$(BuildVersion)";%(PreprocessorDefinitions) + + + + + + + + + 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/engine/packages.config b/src/engine/packages.config new file mode 100644 index 00000000..52c84cf0 --- /dev/null +++ b/src/engine/packages.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/engine/precomp.cpp b/src/engine/precomp.cpp new file mode 100644 index 00000000..37664a1c --- /dev/null +++ b/src/engine/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/engine/precomp.h b/src/engine/precomp.h index d3ebe354..477dc310 100644 --- a/src/engine/precomp.h +++ b/src/engine/precomp.h @@ -4,12 +4,15 @@ #define ExitTrace LogErrorString -#include - #include #include #include + +#pragma warning(push) +#pragma warning(disable:4458) // declaration of 'xxx' hides class member #include +#pragma warning(pop) + #include #include #include diff --git a/src/engine/variable.cpp b/src/engine/variable.cpp index ed4abea2..7377b116 100644 --- a/src/engine/variable.cpp +++ b/src/engine/variable.cpp @@ -1698,6 +1698,7 @@ static HRESULT InitializeVariableOsInfo( BURN_VARIANT value = { }; ovix.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEXW); + #pragma warning(suppress: 4996) if (!::GetVersionExW((LPOSVERSIONINFOW)&ovix)) { ExitWithLastError(hr, "Failed to get OS info."); -- cgit v1.2.3-55-g6feb