Skip to content

Commit

Permalink
Remove win x86 from the NuGet for smaller size (#1550)
Browse files Browse the repository at this point in the history
Too few people would use a win 32 host nowadays.
  • Loading branch information
ddobrev authored Dec 15, 2020
1 parent 6c0058a commit e24277e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/Parser/CppSharp.Parser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -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)" />
Expand Down

0 comments on commit e24277e

Please sign in to comment.