Skip to content

Commit

Permalink
Merge pull request tunnelvisionlabs#319 from ltrzesniewski/ncrunch-su…
Browse files Browse the repository at this point in the history
…pport

Add support for NCrunch
  • Loading branch information
sharwell authored Feb 13, 2019
2 parents 135528b + a91f521 commit 4874e01
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions runtime/CSharp/Antlr4BuildTasks/Antlr4.CodeGenerator.targets
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,16 @@
</Choose>

<Import Condition="'$(Antlr4IsSdkProject)' == 'True'" Project="Antlr4.CodeGenerator.DefaultItems.targets" />

<!-- Support for NCrunch -->
<ItemGroup Condition="'$(NCrunch)' == '1'">
<!-- NCrunch tries to copy the fewest possible files to its build directory, those it misses are declared here. -->
<!-- The tools directory needs to be copied in projects that use packages.config. -->
<None Include="$(MSBuildThisFileDirectory)..\tools\**\*" Condition="'$(Antlr4IsSdkProject)' != 'True'" />
<!-- NCrunch only copies files from known item types, so we need to add ANTLR-specific items. -->
<None Include="@(Antlr4)" />
<None Include="@(Antlr4Tokens)" />
<None Include="@(Antlr4AbstractGrammar)" />
</ItemGroup>

</Project>

0 comments on commit 4874e01

Please sign in to comment.