Skip to content

Commit

Permalink
Build separate NuGet packages for the tool and the runtime (allows se…
Browse files Browse the repository at this point in the history
…paration of VS2008 and VS2010+ features)
  • Loading branch information
sharwell committed Aug 6, 2013
1 parent 4de1e1b commit d27cd5f
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 62 deletions.
55 changes: 55 additions & 0 deletions build/Antlr4.Runtime.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Antlr4.Runtime</id>
<version>0.0.0</version>
<authors>Sam Harwell, Terence Parr</authors>
<owners>Sam Harwell</owners>
<description>The runtime library for parsers generated by the C# target of ANTLR 4. This package supports projects targeting .NET 2.0 or newer, and built using Visual Studio 2008 or newer.</description>
<language>en-us</language>
<projectUrl>https://github.com/sharwell/antlr4cs</projectUrl>
<licenseUrl>https://raw.github.com/sharwell/antlr4cs/master/LICENSE.txt</licenseUrl>
<iconUrl>https://raw.github.com/antlr/website-antlr4/master/images/icons/antlr.png</iconUrl>
<copyright>Copyright © Sam Harwell 2013</copyright>
<releaseNotes>https://github.com/sharwell/antlr4cs/releases/v$version$</releaseNotes>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<tags>antlr antlr4 parsing</tags>
<title>ANTLR 4 Runtime</title>
<summary>The runtime library for parsers generated by the C# target of ANTLR 4.</summary>
</metadata>
<files>
<!-- Runtime Libraries -->

<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v2.0\$Configuration$\Antlr4.Runtime.v2.0.dll" target="lib\net20"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v2.0\$Configuration$\Antlr4.Runtime.v2.0.pdb" target="lib\net20"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v2.0\$Configuration$\Antlr4.Runtime.v2.0.xml" target="lib\net20"/>

<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v3.0\$Configuration$\Antlr4.Runtime.v3.0.dll" target="lib\net30"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v3.0\$Configuration$\Antlr4.Runtime.v3.0.pdb" target="lib\net30"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v3.0\$Configuration$\Antlr4.Runtime.v3.0.xml" target="lib\net30"/>

<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v3.5\$Configuration$\Antlr4.Runtime.v3.5.dll" target="lib\net35"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v3.5\$Configuration$\Antlr4.Runtime.v3.5.pdb" target="lib\net35"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v3.5\$Configuration$\Antlr4.Runtime.v3.5.xml" target="lib\net35"/>

<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v4.0\$Configuration$\Antlr4.Runtime.v4.0.dll" target="lib\net40"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v4.0\$Configuration$\Antlr4.Runtime.v4.0.pdb" target="lib\net40"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v4.0\$Configuration$\Antlr4.Runtime.v4.0.xml" target="lib\net40"/>

<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v4.5\$Configuration$\Antlr4.Runtime.v4.5.dll" target="lib\net45"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v4.5\$Configuration$\Antlr4.Runtime.v4.5.pdb" target="lib\net45"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v4.5\$Configuration$\Antlr4.Runtime.v4.5.xml" target="lib\net45"/>

<file src="..\runtime\CSharp\Antlr4.Runtime\bin\CF3.5\$Configuration$\Antlr4.Runtime.CF3.5.dll" target="lib\net35-cf"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\CF3.5\$Configuration$\Antlr4.Runtime.CF3.5.pdb" target="lib\net35-cf"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\CF3.5\$Configuration$\Antlr4.Runtime.CF3.5.xml" target="lib\net35-cf"/>

<file src="..\runtime\CSharp\Antlr4.Runtime\bin\Portable\$Configuration$\Antlr4.Runtime.Portable.dll" target="lib\portable-net40"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\Portable\$Configuration$\Antlr4.Runtime.Portable.pdb" target="lib\portable-net40"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\Portable\$Configuration$\Antlr4.Runtime.Portable.xml" target="lib\portable-net40"/>

<!-- Source Code -->

<file exclude="..\runtime\CSharp\Antlr4.Runtime\obj\**\*.cs" src="..\runtime\CSharp\Antlr4.Runtime\**\*.cs" target="src"/>
</files>
</package>
34 changes: 34 additions & 0 deletions build/Antlr4.VS2008.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata minClientVersion="2.5">
<id>Antlr4.VS2008</id>
<version>0.0.0</version>
<authors>Sam Harwell, Terence Parr</authors>
<owners>Sam Harwell</owners>
<description>The C# target of the ANTLR 4 parser generator for Visual Studio 2008 projects. This package supports projects targeting .NET 2.0 or newer, and built using Visual Studio 2008.</description>
<language>en-us</language>
<projectUrl>https://github.com/sharwell/antlr4cs</projectUrl>
<licenseUrl>https://raw.github.com/sharwell/antlr4cs/master/LICENSE.txt</licenseUrl>
<iconUrl>https://raw.github.com/antlr/website-antlr4/master/images/icons/antlr.png</iconUrl>
<copyright>Copyright © Sam Harwell 2013</copyright>
<releaseNotes>https://github.com/sharwell/antlr4cs/releases/v$version$</releaseNotes>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<tags>antlr antlr4 parsing</tags>
<title>ANTLR 4 (Visual Studio 2008)</title>
<summary>The C# target of the ANTLR 4 parser generator for Visual Studio 2008 projects.</summary>
<dependencies>
<dependency id="Antlr4.Runtime" version="$version$" />
</dependencies>
</metadata>
<files>
<!-- Tools -->

<file src="$M2_REPO$\com\tunnelvisionlabs\antlr4-csharp\4.1-SNAPSHOT\antlr4-csharp-4.1-SNAPSHOT-complete.jar" target="tools"/>

<!-- Build Configuration -->

<file src="..\runtime\CSharp\Antlr4BuildTasks\bin\v3.5\$Configuration$\Antlr4.v3.5.props" target="build\Antlr4.props"/>
<file src="..\runtime\CSharp\Antlr4BuildTasks\bin\v3.5\$Configuration$\Antlr4.v3.5.targets" target="build\Antlr4.targets"/>
<file src="..\runtime\CSharp\Antlr4BuildTasks\bin\v3.5\$Configuration$\Antlr4BuildTasks.v3.5.dll" target="build"/>
</files>
</package>
68 changes: 8 additions & 60 deletions build/Antlr4.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<version>0.0.0</version>
<authors>Sam Harwell, Terence Parr</authors>
<owners>Sam Harwell</owners>
<description>The C# target of the ANTLR 4 parser generator. This package supports projects targeting .NET 2.0 or newer, and built using Visual Studio 2008 or newer.</description>
<description>The C# target of the ANTLR 4 parser generator for Visual Studio 2010+ projects. This package supports projects targeting .NET 2.0 or newer, and built using Visual Studio 2010 or newer.</description>
<language>en-us</language>
<projectUrl>https://github.com/sharwell/antlr4cs</projectUrl>
<licenseUrl>https://raw.github.com/sharwell/antlr4cs/master/LICENSE.txt</licenseUrl>
Expand All @@ -15,72 +15,20 @@
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<tags>antlr antlr4 parsing</tags>
<title>ANTLR 4</title>
<summary>The C# target of the ANTLR 4 parser generator.</summary>
<references>
<group targetFramework="net20">
<reference file="Antlr4.Runtime.v2.0.dll"/>
</group>
<group targetFramework="net30">
<reference file="Antlr4.Runtime.v3.0.dll"/>
</group>
<group targetFramework="net35">
<reference file="Antlr4.Runtime.v3.5.dll"/>
</group>
<group targetFramework="net40">
<reference file="Antlr4.Runtime.v4.0.dll"/>
</group>
<group targetFramework="net45">
<reference file="Antlr4.Runtime.v4.5.dll"/>
</group>
</references>
<summary>The C# target of the ANTLR 4 parser generator for Visual Studio 2010+ projects.</summary>
<dependencies>
<dependency id="Antlr4.Runtime" version="$version$" />
</dependencies>
</metadata>
<files>
<!-- Tools -->

<file src="$M2_REPO$\com\tunnelvisionlabs\antlr4-csharp\4.1-SNAPSHOT\antlr4-csharp-4.1-SNAPSHOT-complete.jar" target="tools"/>

<!-- Runtime Libraries -->

<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v2.0\$Configuration$\Antlr4.Runtime.v2.0.dll" target="lib\net20"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v2.0\$Configuration$\Antlr4.Runtime.v2.0.pdb" target="lib\net20"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v2.0\$Configuration$\Antlr4.Runtime.v2.0.xml" target="lib\net20"/>

<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v3.0\$Configuration$\Antlr4.Runtime.v3.0.dll" target="lib\net30"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v3.0\$Configuration$\Antlr4.Runtime.v3.0.pdb" target="lib\net30"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v3.0\$Configuration$\Antlr4.Runtime.v3.0.xml" target="lib\net30"/>

<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v3.5\$Configuration$\Antlr4.Runtime.v3.5.dll" target="lib\net35"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v3.5\$Configuration$\Antlr4.Runtime.v3.5.pdb" target="lib\net35"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v3.5\$Configuration$\Antlr4.Runtime.v3.5.xml" target="lib\net35"/>

<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v4.0\$Configuration$\Antlr4.Runtime.v4.0.dll" target="lib\net40"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v4.0\$Configuration$\Antlr4.Runtime.v4.0.pdb" target="lib\net40"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v4.0\$Configuration$\Antlr4.Runtime.v4.0.xml" target="lib\net40"/>

<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v4.5\$Configuration$\Antlr4.Runtime.v4.5.dll" target="lib\net45"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v4.5\$Configuration$\Antlr4.Runtime.v4.5.pdb" target="lib\net45"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\v4.5\$Configuration$\Antlr4.Runtime.v4.5.xml" target="lib\net45"/>

<file src="..\runtime\CSharp\Antlr4.Runtime\bin\CF3.5\$Configuration$\Antlr4.Runtime.CF3.5.dll" target="lib\net35-cf"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\CF3.5\$Configuration$\Antlr4.Runtime.CF3.5.pdb" target="lib\net35-cf"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\CF3.5\$Configuration$\Antlr4.Runtime.CF3.5.xml" target="lib\net35-cf"/>

<file src="..\runtime\CSharp\Antlr4.Runtime\bin\Portable\$Configuration$\Antlr4.Runtime.Portable.dll" target="lib\portable-net40"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\Portable\$Configuration$\Antlr4.Runtime.Portable.pdb" target="lib\portable-net40"/>
<file src="..\runtime\CSharp\Antlr4.Runtime\bin\Portable\$Configuration$\Antlr4.Runtime.Portable.xml" target="lib\portable-net40"/>

<!-- Build Configuration -->

<file src="..\runtime\CSharp\Antlr4BuildTasks\bin\v3.5\$Configuration$\Antlr4.v3.5.props" target="build\net35\Antlr4.props"/>
<file src="..\runtime\CSharp\Antlr4BuildTasks\bin\v3.5\$Configuration$\Antlr4.v3.5.targets" target="build\net35\Antlr4.targets"/>
<file src="..\runtime\CSharp\Antlr4BuildTasks\bin\v3.5\$Configuration$\Antlr4BuildTasks.v3.5.dll" target="build\net35"/>

<file src="..\runtime\CSharp\Antlr4BuildTasks\bin\v4.0\$Configuration$\Antlr4.v4.0.props" target="build\net40\Antlr4.props"/>
<file src="..\runtime\CSharp\Antlr4BuildTasks\bin\v4.0\$Configuration$\Antlr4.v4.0.targets" target="build\net40\Antlr4.targets"/>
<file src="..\runtime\CSharp\Antlr4BuildTasks\bin\v4.0\$Configuration$\Antlr4BuildTasks.v4.0.dll" target="build\net40"/>

<!-- Source Code -->

<file exclude="..\runtime\CSharp\Antlr4.Runtime\obj\**\*.cs" src="..\runtime\CSharp\Antlr4.Runtime\**\*.cs" target="src"/>
<file src="..\runtime\CSharp\Antlr4BuildTasks\bin\v4.0\$Configuration$\Antlr4.v4.0.props" target="build\Antlr4.props"/>
<file src="..\runtime\CSharp\Antlr4BuildTasks\bin\v4.0\$Configuration$\Antlr4.v4.0.targets" target="build\Antlr4.targets"/>
<file src="..\runtime\CSharp\Antlr4BuildTasks\bin\v4.0\$Configuration$\Antlr4BuildTasks.v4.0.dll" target="build"/>
</files>
</package>
2 changes: 1 addition & 1 deletion runtime/CSharp/Antlr4BuildTasks/Antlr4.v3.5.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<!-- Folder containing Antlr4BuildTasks.v3.5.dll -->
<Antlr4BuildTaskPath>.</Antlr4BuildTaskPath>
<!-- Path to the ANTLR tool itself -->
<Antlr4ToolPath>..\..\tools\antlr4-csharp-4.1-SNAPSHOT-complete.jar</Antlr4ToolPath>
<Antlr4ToolPath>..\tools\antlr4-csharp-4.1-SNAPSHOT-complete.jar</Antlr4ToolPath>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion runtime/CSharp/Antlr4BuildTasks/Antlr4.v4.0.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<!-- Folder containing Antlr4BuildTasks.v4.0.dll -->
<Antlr4BuildTaskPath>.</Antlr4BuildTaskPath>
<!-- Path to the ANTLR tool itself -->
<Antlr4ToolPath>..\..\tools\antlr4-csharp-4.1-SNAPSHOT-complete.jar</Antlr4ToolPath>
<Antlr4ToolPath>..\tools\antlr4-csharp-4.1-SNAPSHOT-complete.jar</Antlr4ToolPath>
</PropertyGroup>
</Project>

0 comments on commit d27cd5f

Please sign in to comment.