-
-
Notifications
You must be signed in to change notification settings - Fork 712
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1528 from AArnott/fix1526
Add incremental build support to MessagePack.MSBuild.Tasks
- Loading branch information
Showing
2 changed files
with
14 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 13 additions & 6 deletions
19
src/MessagePack.MSBuild.Tasks/build/MessagePack.MSBuild.Tasks.targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<GeneratedMessagePackFile Condition="'$(GeneratedMessagePackFile)'==''">$(IntermediateOutputPath)mpc_generated.cs</GeneratedMessagePackFile> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Include="$(GeneratedMessagePackFile)" /> | ||
<FileWrites Include="$(GeneratedMessagePackFile)" /> | ||
</ItemGroup> | ||
|
||
<UsingTask TaskName="MessagePackGenerator" AssemblyFile="MessagePack.MSBuild.Tasks.dll" /> | ||
|
||
<Target Name="GenerateMessagePackResolver" | ||
BeforeTargets="CoreCompile" | ||
DependsOnTargets="ResolveReferences"> | ||
DependsOnTargets="ResolveReferences" | ||
Inputs="@(Compile)" | ||
Outputs="$(GeneratedMessagePackFile)"> | ||
|
||
<MessagePackGenerator | ||
Compile="@(Compile)" | ||
IntermediateOutputPath="$(IntermediateOutputPath)" | ||
GeneratedOutputPath="$(GeneratedMessagePackFile)" | ||
ReferencePath="@(ReferencePath)" | ||
DefineConstants="$(DefineConstants)" | ||
Namespace="$(MessagePackGeneratedResolverNamespace)" | ||
ResolverName="$(MessagePackGeneratedResolverName)" | ||
UseMapMode="$(MessagePackGeneratedUsesMapMode)" | ||
> | ||
<Output TaskParameter="GeneratedOutputPath" ItemName="Compile" /> | ||
<Output TaskParameter="GeneratedOutputPath" ItemName="FileWrites" /> | ||
</MessagePackGenerator> | ||
/> | ||
</Target> | ||
</Project> |