Skip to content

Commit

Permalink
[WIP] ChiselIgnores
Browse files Browse the repository at this point in the history
  • Loading branch information
0xced committed Mar 5, 2024
1 parent 87025c9 commit 9a3dc6f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ChiselTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ public class ChiselTask : Task
/// </summary>
public ITaskItem[] ChiselPackages { get; set; } = [];

/// <summary>
/// The package references to ignore when building the dependency graph.
/// </summary>
public ITaskItem[] ChiselIgnores { get; set; } = [];

/// <summary>
/// The list of resolved runtime assemblies (<c>RuntimeCopyLocalItems</c>).
/// </summary>
Expand Down
4 changes: 4 additions & 0 deletions src/build/Chisel.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
<ChiselGraph Condition="$(ChiselGraph) == ''">$(MSBuildProjectName).Chisel.gv</ChiselGraph>
</PropertyGroup>

<ItemGroup>
<ChiselIgnores Include="NETStandard.Library" />
</ItemGroup>

<ItemDefinitionGroup>
<ChiselPackages>
<Visible>false</Visible>
Expand Down
2 changes: 2 additions & 0 deletions src/build/Chisel.targets
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<Target Name="Chisel" AfterTargets="ResolvePackageAssets" Condition="$(ChiselEnabled) == 'true'">
<ItemGroup>
<ChiselPackages Include="$(ChiselPackages)" />
<ChiselIgnores Include="$(ChiselIgnores)" />
</ItemGroup>
<ChiselTask
ProjectAssetsFile="$(ProjectAssetsFile)"
Expand All @@ -14,6 +15,7 @@
IntermediateOutputPath="$(IntermediateOutputPath)"
Graph="$(ChiselGraph)"
ChiselPackages="@(ChiselPackages)"
ChiselIgnores="@(ChiselIgnores)"
RuntimeAssemblies="@(RuntimeCopyLocalItems)"
NativeLibraries="@(NativeCopyLocalItems)">
<Output TaskParameter="RemoveRuntimeAssemblies" ItemName="ChiselRemoveRuntimeCopyLocalItems" />
Expand Down

0 comments on commit 9a3dc6f

Please sign in to comment.