aboutsummaryrefslogtreecommitdiff
path: root/src/balutil
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2018-12-29 22:26:48 -0600
committerSean Hall <r.sean.hall@gmail.com>2018-12-29 22:29:15 -0600
commit1dc08c5ec8e08f96e6e2d76a88bca1ed9d71a2d3 (patch)
treec7d348d42faee779bc52bacadf76b9bf7106d872 /src/balutil
parent60069b189db09521558b99827aee47fe3f81309b (diff)
downloadwix-1dc08c5ec8e08f96e6e2d76a88bca1ed9d71a2d3.tar.gz
wix-1dc08c5ec8e08f96e6e2d76a88bca1ed9d71a2d3.tar.bz2
wix-1dc08c5ec8e08f96e6e2d76a88bca1ed9d71a2d3.zip
Integrate into latest v4.
Diffstat (limited to 'src/balutil')
-rw-r--r--src/balutil/balutil.nuspec22
-rw-r--r--src/balutil/balutil.vcxproj94
-rw-r--r--src/balutil/build/WixToolset.BalUtil.props23
-rw-r--r--src/balutil/packages.config6
-rw-r--r--src/balutil/precomp.cpp3
5 files changed, 148 insertions, 0 deletions
diff --git a/src/balutil/balutil.nuspec b/src/balutil/balutil.nuspec
new file mode 100644
index 00000000..fb07def8
--- /dev/null
+++ b/src/balutil/balutil.nuspec
@@ -0,0 +1,22 @@
1<?xml version="1.0"?>
2<package >
3 <metadata>
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/balutil</projectUrl>
11 <requireLicenseAcceptance>false</requireLicenseAcceptance>
12 <description>$description$</description>
13 <copyright>$copyright$</copyright>
14 </metadata>
15
16 <files>
17 <file src="build\$id$.props" target="build\" />
18 <file src="inc\*" target="build\native\include" />
19 <file src="..\..\build\$configuration$\v140_xp\x86\balutil.lib" target="build\native\v140\x86" />
20 <file src="..\..\build\$configuration$\v141_xp\x86\balutil.lib" target="build\native\v141\x86" />
21 </files>
22</package>
diff --git a/src/balutil/balutil.vcxproj b/src/balutil/balutil.vcxproj
new file mode 100644
index 00000000..a8b97615
--- /dev/null
+++ b/src/balutil/balutil.vcxproj
@@ -0,0 +1,94 @@
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.4.0.1\build\WixToolset.BootstrapperCore.props" Condition="Exists('..\..\packages\WixToolset.BootstrapperCore.4.0.1\build\WixToolset.BootstrapperCore.props')" />
6 <Import Project="..\..\packages\WixToolset.DUtil.4.0.13\build\WixToolset.DUtil.props" Condition="Exists('..\..\packages\WixToolset.DUtil.4.0.13\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 <ProjectConfiguration Include="Debug|x64">
18 <Configuration>Debug</Configuration>
19 <Platform>x64</Platform>
20 </ProjectConfiguration>
21 <ProjectConfiguration Include="Release|x64">
22 <Configuration>Release</Configuration>
23 <Platform>x64</Platform>
24 </ProjectConfiguration>
25 </ItemGroup>
26
27 <PropertyGroup Label="Globals">
28 <ProjectGuid>{EDCB8095-0E6A-43E0-BC33-C4F762FC5CDB}</ProjectGuid>
29 <ConfigurationType>StaticLibrary</ConfigurationType>
30 <TargetName>balutil</TargetName>
31 <PlatformToolset>v141</PlatformToolset>
32 <CharacterSet>MultiByte</CharacterSet>
33 <Description>WiX Toolset Bootstrapper Application Layer native utility library</Description>
34 </PropertyGroup>
35
36 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
37 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
38 <Import Project="..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets" Condition="Exists('..\..\packages\Nerdbank.GitVersioning.2.1.65\build\Nerdbank.GitVersioning.targets')" />
39 <Import Project="..\NativeMultiTargeting.Build.props" />
40
41 <ImportGroup Label="ExtensionSettings">
42 </ImportGroup>
43
44 <ImportGroup Label="Shared">
45 </ImportGroup>
46
47 <PropertyGroup>
48 <ProjectAdditionalIncludeDirectories>$(ProjectDir)..\inc</ProjectAdditionalIncludeDirectories>
49 </PropertyGroup>
50
51 <ItemGroup>
52 <ClCompile Include="BalBootstrapperEngine.cpp" />
53 <ClCompile Include="balcondition.cpp" />
54 <ClCompile Include="balinfo.cpp" />
55 <ClCompile Include="balretry.cpp" />
56 <ClCompile Include="balutil.cpp" />
57 <ClCompile Include="precomp.cpp">
58 <PrecompiledHeader>Create</PrecompiledHeader>
59 </ClCompile>
60 </ItemGroup>
61 <ItemGroup>
62 <ClInclude Include="inc\BAFunctions.h" />
63 <ClInclude Include="inc\BalBaseBAFunctions.h" />
64 <ClInclude Include="inc\BalBaseBAFunctionsProc.h" />
65 <ClInclude Include="inc\BalBaseBootstrapperApplication.h" />
66 <ClInclude Include="inc\BalBaseBootstrapperApplicationProc.h" />
67 <ClInclude Include="inc\BalBootstrapperEngine.h" />
68 <ClInclude Include="inc\balcondition.h" />
69 <ClInclude Include="inc\balinfo.h" />
70 <ClInclude Include="inc\balretry.h" />
71 <ClInclude Include="inc\balutil.h" />
72 <ClInclude Include="inc\IBAFunctions.h" />
73 <ClInclude Include="precomp.h" />
74 </ItemGroup>
75
76 <ItemGroup>
77 <None Include="packages.config" />
78 </ItemGroup>
79
80 <Target Name="Pack"
81 DependsOnTargets="GetBuildVersion">
82 <Exec Command='nuget pack balutil.nuspec -OutputDirectory "$(BaseOutputPath)$(Configuration)" -Properties Configuration=$(Configuration);Id=WixToolset.BalUtil;Version="$(BuildVersionSimple)";Authors="$(Authors)";Copyright="$(Copyright)";Description="$(Description)";Title="$(Title)"' />
83 </Target>
84
85 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
86 <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
87 <PropertyGroup>
88 <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>
89 </PropertyGroup>
90 <Error Condition="!Exists('..\..\packages\WixToolset.BootstrapperCore.4.0.1\build\WixToolset.BootstrapperCore.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\WixToolset.BootstrapperCore.4.0.1\build\WixToolset.BootstrapperCore.props'))" />
91 <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'))" />
92 <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'))" />
93 </Target>
94</Project>
diff --git a/src/balutil/build/WixToolset.BalUtil.props b/src/balutil/build/WixToolset.BalUtil.props
new file mode 100644
index 00000000..6275e0e8
--- /dev/null
+++ b/src/balutil/build/WixToolset.BalUtil.props
@@ -0,0 +1,23 @@
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 ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
5 <ItemDefinitionGroup>
6 <ClCompile>
7 <AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)native\include\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
8 </ClCompile>
9 <ResourceCompile>
10 <AdditionalIncludeDirectories>$(MSBuildThisFileDirectory)native\include\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
11 </ResourceCompile>
12 </ItemDefinitionGroup>
13 <ItemDefinitionGroup Condition=" $(PlatformToolset.ToLower().StartsWith('v140')) ">
14 <Link>
15 <AdditionalDependencies>$(MSBuildThisFileDirectory)native\lib\v140\$(PlatformTarget)\balutil.lib;%(AdditionalDependencies)</AdditionalDependencies>
16 </Link>
17 </ItemDefinitionGroup>
18 <ItemDefinitionGroup Condition=" $(PlatformToolset.ToLower().StartsWith('v141')) ">
19 <Link>
20 <AdditionalDependencies>$(MSBuildThisFileDirectory)native\lib\v141\$(PlatformTarget)\balutil.lib;%(AdditionalDependencies)</AdditionalDependencies>
21 </Link>
22 </ItemDefinitionGroup>
23</Project>
diff --git a/src/balutil/packages.config b/src/balutil/packages.config
new file mode 100644
index 00000000..52c84cf0
--- /dev/null
+++ b/src/balutil/packages.config
@@ -0,0 +1,6 @@
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.BootstrapperCore" version="4.0.1" targetFramework="native" />
5 <package id="WixToolset.DUtil" version="4.0.13" targetFramework="native" />
6</packages> \ No newline at end of file
diff --git a/src/balutil/precomp.cpp b/src/balutil/precomp.cpp
new file mode 100644
index 00000000..37664a1c
--- /dev/null
+++ b/src/balutil/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"