diff options
| author | Rob Mensching <rob@firegiant.com> | 2018-07-13 14:19:31 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2018-07-13 14:19:31 -0700 |
| commit | e6897a667c06125beced3921b16cf0e3a1b21bc1 (patch) | |
| tree | dcd69c76ecffdf8690bc3a50e90cbf1c6cfc0610 /src | |
| parent | 1c3d51462cc7574b318cba2f30552de50348f803 (diff) | |
| download | wix-e6897a667c06125beced3921b16cf0e3a1b21bc1.tar.gz wix-e6897a667c06125beced3921b16cf0e3a1b21bc1.tar.bz2 wix-e6897a667c06125beced3921b16cf0e3a1b21bc1.zip | |
Attempt to move wixnative.exe to independent runtime .nupkg
Diffstat (limited to 'src')
| -rw-r--r-- | src/WixToolset.Core.Native/WixNativeExe.cs | 2 | ||||
| -rw-r--r-- | src/WixToolset.Core.Native/WixToolset.Core.Native.csproj | 4 | ||||
| -rw-r--r-- | src/WixToolset.Core.Native/WixToolset.Core.Native.nuspec | 8 | ||||
| -rw-r--r-- | src/wixnative/runtime.win.WixToolset.Core.Native.nuspec | 21 | ||||
| -rw-r--r-- | src/wixnative/wixnative.vcxproj | 11 |
5 files changed, 40 insertions, 6 deletions
diff --git a/src/WixToolset.Core.Native/WixNativeExe.cs b/src/WixToolset.Core.Native/WixNativeExe.cs index 8626bea3..92dcfdda 100644 --- a/src/WixToolset.Core.Native/WixNativeExe.cs +++ b/src/WixToolset.Core.Native/WixNativeExe.cs | |||
| @@ -19,7 +19,7 @@ namespace WixToolset.Core.Native | |||
| 19 | 19 | ||
| 20 | static WixNativeExe() | 20 | static WixNativeExe() |
| 21 | { | 21 | { |
| 22 | PathToWixNativeExe = Path.Combine(Path.GetDirectoryName(new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath), "x86\\wixnative.exe"); | 22 | PathToWixNativeExe = Path.Combine(Path.GetDirectoryName(new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath), "wixnative.x86.exe"); |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | public WixNativeExe(params object[] args) | 25 | public WixNativeExe(params object[] args) |
diff --git a/src/WixToolset.Core.Native/WixToolset.Core.Native.csproj b/src/WixToolset.Core.Native/WixToolset.Core.Native.csproj index 51238020..a95f8852 100644 --- a/src/WixToolset.Core.Native/WixToolset.Core.Native.csproj +++ b/src/WixToolset.Core.Native/WixToolset.Core.Native.csproj | |||
| @@ -20,10 +20,10 @@ | |||
| 20 | 20 | ||
| 21 | <ItemGroup> | 21 | <ItemGroup> |
| 22 | <NativeProjectOutput Include="$(OutputPath)..\Win32\*.exe;$(OutputPath)..\Win32\*.pdb"> | 22 | <NativeProjectOutput Include="$(OutputPath)..\Win32\*.exe;$(OutputPath)..\Win32\*.pdb"> |
| 23 | <TargetRelativeFolder>x86\</TargetRelativeFolder> | 23 | <TargetRelativeFolder>.\</TargetRelativeFolder> |
| 24 | </NativeProjectOutput> | 24 | </NativeProjectOutput> |
| 25 | <NativeProjectOutput Include="$(OutputPath)..\x64\*.exe;$(OutputPath)..\x64\*.pdb"> | 25 | <NativeProjectOutput Include="$(OutputPath)..\x64\*.exe;$(OutputPath)..\x64\*.pdb"> |
| 26 | <TargetRelativeFolder>x64\</TargetRelativeFolder> | 26 | <TargetRelativeFolder>.\</TargetRelativeFolder> |
| 27 | </NativeProjectOutput> | 27 | </NativeProjectOutput> |
| 28 | 28 | ||
| 29 | <AllItemsFullPathWithTargetPath Include="@(NativeProjectOutput->'%(FullPath)')"> | 29 | <AllItemsFullPathWithTargetPath Include="@(NativeProjectOutput->'%(FullPath)')"> |
diff --git a/src/WixToolset.Core.Native/WixToolset.Core.Native.nuspec b/src/WixToolset.Core.Native/WixToolset.Core.Native.nuspec index 88dd4d34..3394f8ab 100644 --- a/src/WixToolset.Core.Native/WixToolset.Core.Native.nuspec +++ b/src/WixToolset.Core.Native/WixToolset.Core.Native.nuspec | |||
| @@ -10,19 +10,23 @@ | |||
| 10 | <requireLicenseAcceptance>false</requireLicenseAcceptance> | 10 | <requireLicenseAcceptance>false</requireLicenseAcceptance> |
| 11 | <description>$description$</description> | 11 | <description>$description$</description> |
| 12 | <copyright>$copyright$</copyright> | 12 | <copyright>$copyright$</copyright> |
| 13 | <!-- | 13 | |
| 14 | <dependencies> | 14 | <dependencies> |
| 15 | <dependency id="runtime.win.WixToolset.Core.Native" version="$version$" /> | ||
| 16 | <!-- | ||
| 15 | <dependency id="runtime.win-x86.WixToolset.Core.Native" version="$version$" /> | 17 | <dependency id="runtime.win-x86.WixToolset.Core.Native" version="$version$" /> |
| 16 | <dependency id="runtime.win-x64.WixToolset.Core.Native" version="$version$" /> | 18 | <dependency id="runtime.win-x64.WixToolset.Core.Native" version="$version$" /> |
| 19 | --> | ||
| 17 | </dependencies> | 20 | </dependencies> |
| 18 | --> | ||
| 19 | </metadata> | 21 | </metadata> |
| 20 | 22 | ||
| 21 | <files> | 23 | <files> |
| 22 | <file src="$id$.dll" target="lib\netstandard2.0" /> | 24 | <file src="$id$.dll" target="lib\netstandard2.0" /> |
| 25 | <!-- | ||
| 23 | <file src="..\Win32\wixnative.exe" target="lib\netstandard2.0\x86" /> | 26 | <file src="..\Win32\wixnative.exe" target="lib\netstandard2.0\x86" /> |
| 24 | <file src="..\Win32\wixnative.pdb" target="lib\netstandard2.0\x86" /> | 27 | <file src="..\Win32\wixnative.pdb" target="lib\netstandard2.0\x86" /> |
| 25 | <file src="..\x64\wixnative.exe" target="lib\netstandard2.0\x64" /> | 28 | <file src="..\x64\wixnative.exe" target="lib\netstandard2.0\x64" /> |
| 26 | <file src="..\x64\wixnative.pdb" target="lib\netstandard2.0\x64" /> | 29 | <file src="..\x64\wixnative.pdb" target="lib\netstandard2.0\x64" /> |
| 30 | --> | ||
| 27 | </files> | 31 | </files> |
| 28 | </package> | 32 | </package> |
diff --git a/src/wixnative/runtime.win.WixToolset.Core.Native.nuspec b/src/wixnative/runtime.win.WixToolset.Core.Native.nuspec new file mode 100644 index 00000000..d6f122cc --- /dev/null +++ b/src/wixnative/runtime.win.WixToolset.Core.Native.nuspec | |||
| @@ -0,0 +1,21 @@ | |||
| 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 | <licenseUrl>https://github.com/wixtoolset/Core.Native/blob/master/LICENSE.TXT</licenseUrl> | ||
| 9 | <projectUrl>https://github.com/wixtoolset/Core.Native</projectUrl> | ||
| 10 | <requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
| 11 | <description>$description$</description> | ||
| 12 | <copyright>$copyright$</copyright> | ||
| 13 | </metadata> | ||
| 14 | |||
| 15 | <files> | ||
| 16 | <file src="Win32\wixnative.x86.exe" target="runtimes\win\native" /> | ||
| 17 | <file src="Win32\wixnative.x86.pdb" target="runtimes\win\native" /> | ||
| 18 | <file src="x64\wixnative.amd64.exe" target="runtimes\win\native" /> | ||
| 19 | <file src="x64\wixnative.amd64.pdb" target="runtimes\win\native" /> | ||
| 20 | </files> | ||
| 21 | </package> | ||
diff --git a/src/wixnative/wixnative.vcxproj b/src/wixnative/wixnative.vcxproj index cfec54e4..d4b31fd8 100644 --- a/src/wixnative/wixnative.vcxproj +++ b/src/wixnative/wixnative.vcxproj | |||
| @@ -23,11 +23,16 @@ | |||
| 23 | </ProjectConfiguration> | 23 | </ProjectConfiguration> |
| 24 | </ItemGroup> | 24 | </ItemGroup> |
| 25 | 25 | ||
| 26 | <PropertyGroup> | ||
| 27 | <NameSuffix Condition=" '$(Platform)'=='Win32' ">x86</NameSuffix> | ||
| 28 | <NameSuffix Condition=" '$(Platform)'=='x64' ">amd64</NameSuffix> | ||
| 29 | </PropertyGroup> | ||
| 30 | |||
| 26 | <PropertyGroup Label="Globals"> | 31 | <PropertyGroup Label="Globals"> |
| 27 | <ProjectGuid>{8497EC72-B8D0-4272-A9D0-7E9D871CEFBF}</ProjectGuid> | 32 | <ProjectGuid>{8497EC72-B8D0-4272-A9D0-7E9D871CEFBF}</ProjectGuid> |
| 28 | <ConfigurationType>Application</ConfigurationType> | 33 | <ConfigurationType>Application</ConfigurationType> |
| 29 | <ProjectSubSystem>Console</ProjectSubSystem> | 34 | <ProjectSubSystem>Console</ProjectSubSystem> |
| 30 | <TargetName>wixnative</TargetName> | 35 | <TargetName>wixnative.$(NameSuffix)</TargetName> |
| 31 | <PlatformToolset>v141</PlatformToolset> | 36 | <PlatformToolset>v141</PlatformToolset> |
| 32 | <CharacterSet>Unicode</CharacterSet> | 37 | <CharacterSet>Unicode</CharacterSet> |
| 33 | <Description>Native component of WixToolset.Core</Description> | 38 | <Description>Native component of WixToolset.Core</Description> |
| @@ -69,6 +74,10 @@ | |||
| 69 | <None Include="packages.config" /> | 74 | <None Include="packages.config" /> |
| 70 | </ItemGroup> | 75 | </ItemGroup> |
| 71 | 76 | ||
| 77 | <Target Name="Pack" DependsOnTargets="GetBuildVersion"> | ||
| 78 | <Exec Command="nuget pack runtime.win.WixToolset.Core.Native.nuspec -BasePath "$(BaseOutputPath)\" -OutputDirectory "$(BaseOutputPath)\" -NoPackageAnalysis -Properties Configuration=$(Configuration);Id=runtime.win.WixToolset.Core.Native;Version="$(BuildVersionSimple)";Platform=$(PlatformTarget);Authors="$(Authors)";Copyright="$(Copyright)";Description="$(Description)";Title="$(Title)"" /> | ||
| 79 | </Target> | ||
| 80 | |||
| 72 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | 81 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
| 73 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | 82 | <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> |
| 74 | <PropertyGroup> | 83 | <PropertyGroup> |
