Browse Source

Remove win x86 from the NuGet for smaller size

Too few people would use a win 32 host nowadays.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/1550/head
Dimitar Dobrev 5 years ago
parent
commit
605b10cfbd
  1. 2
      Directory.Build.props
  2. 2
      src/Parser/CppSharp.Parser.csproj

2
Directory.Build.props

@ -48,7 +48,7 @@ @@ -48,7 +48,7 @@
<DotNetCmd></DotNetCmd>
</PropertyGroup>
<Target Name="prepack" DependsOnTargets="Build" Condition="'$(IsPackable)' == 'true'">
<Target Name="prepack" DependsOnTargets="Build" Condition="'$(IsPackable)' == 'true' AND '$(Platform)' == 'x64'">
<Copy SourceFiles="$(TargetDir)ref\$(TargetFileName)" DestinationFolder="$(PackageDir)ref\$(GlobalTargetFramework)" Condition="'$(ProduceReferenceAssembly)' == 'true' AND '$(RID)' == 'win-x64'" />
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(PackageDir)runtimes\$(RID)\lib\$(GlobalTargetFramework)" />
</Target>

2
src/Parser/CppSharp.Parser.csproj

@ -29,7 +29,7 @@ @@ -29,7 +29,7 @@
<Copy SourceFiles="@(ClangHeaders)" DestinationFiles="@(ClangHeaders->'$(PackageDir)contentFiles\any\any\lib\%(RecursiveDir)%(Filename)%(Extension)')" />
</Target>
<Target Name="PackNativeLibs" AfterTargets="prepack">
<Target Name="PackNativeLibs" AfterTargets="prepack" Condition="'$(Platform)' == 'x64'">
<ItemGroup>
<NativeLibs Include="$(OutputPath)$(NativeTargetPrefix)CppSharp.CppParser.$(NativeTargetExt)" />
<NativeLibs Include="$(OutputPath)$(NativeTargetPrefix)Std-symbols.$(NativeTargetExt)" />

Loading…
Cancel
Save