From 8cf6be9d89f9a89ac1436439a7f36d2be10a87a3 Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Mon, 25 Feb 2013 12:12:09 -0600 Subject: [PATCH] Add initial Antlr4BuildTasks project, copied Antlr4.targets from Antlr3.targets --- runtime/CSharp/Antlr4.sln | 6 + .../CSharp/Antlr4BuildTasks/Antlr4.targets | 169 ++++++++++++++++++ .../Antlr4BuildTasks/Antlr4BuildTasks.csproj | 55 ++++++ .../Properties/AssemblyInfo.cs | 65 +++++++ 4 files changed, 295 insertions(+) create mode 100644 runtime/CSharp/Antlr4BuildTasks/Antlr4.targets create mode 100644 runtime/CSharp/Antlr4BuildTasks/Antlr4BuildTasks.csproj create mode 100644 runtime/CSharp/Antlr4BuildTasks/Properties/AssemblyInfo.cs diff --git a/runtime/CSharp/Antlr4.sln b/runtime/CSharp/Antlr4.sln index 11879f834..48614b757 100644 --- a/runtime/CSharp/Antlr4.sln +++ b/runtime/CSharp/Antlr4.sln @@ -15,6 +15,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Antlr4.Runtime.Test", "Antlr4.Runtime.Test\Antlr4.Runtime.Test.csproj", "{9D8C43DF-71F9-4CC9-83AD-A39FAEBCECA0}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Antlr4BuildTasks", "Antlr4BuildTasks\Antlr4BuildTasks.csproj", "{F63DFE80-AE1F-47A6-A31A-E39DA4C837BA}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -29,6 +31,10 @@ Global {9D8C43DF-71F9-4CC9-83AD-A39FAEBCECA0}.Debug|Any CPU.Build.0 = Debug|Any CPU {9D8C43DF-71F9-4CC9-83AD-A39FAEBCECA0}.Release|Any CPU.ActiveCfg = Release|Any CPU {9D8C43DF-71F9-4CC9-83AD-A39FAEBCECA0}.Release|Any CPU.Build.0 = Release|Any CPU + {F63DFE80-AE1F-47A6-A31A-E39DA4C837BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F63DFE80-AE1F-47A6-A31A-E39DA4C837BA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F63DFE80-AE1F-47A6-A31A-E39DA4C837BA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F63DFE80-AE1F-47A6-A31A-E39DA4C837BA}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/runtime/CSharp/Antlr4BuildTasks/Antlr4.targets b/runtime/CSharp/Antlr4BuildTasks/Antlr4.targets new file mode 100644 index 000000000..f79f7eadd --- /dev/null +++ b/runtime/CSharp/Antlr4BuildTasks/Antlr4.targets @@ -0,0 +1,169 @@ + + + + MSBuild + 3.5.0.1 + eb42632606e9261f + Antlr4BuildTask, Version=$(TaskVersion), Culture=neutral, PublicKeyToken=$(TaskKeyToken) + + + + + $(LoadTimeSensitiveTargets); + Antlr4Compile; + + + $(LoadTimeSensitiveProperties); + Antlr4CompileDependsOn; + + + + + $(MSBuildBinPath) + $(Antlr4BuildTaskPath) + $(MSBuildBinPath)\Antlr4\Antlr4.exe + $(Antlr4ToolPath) + + + + $(MSBuildProjectFile).Antlr4GeneratedCodeFileListAbsolute.txt + + + + + + + + Antlr4Compile; + Antlr4CompileAddFilesGenerated; + $(PrepareResourcesDependsOn) + + + + + + Antlr4CompileReadGeneratedFileList + + + + + + + + + + + + MSBuild:Compile + + false + false + + + + + + + + + + + + + DesignTimeGrammarCompilation; + $(CoreCompileDependsOn) + + + + + + + + + + + + + + + + <_IntellisenseOnlyCompile>false + <_IntellisenseOnlyCompile Condition="'$(BuildingProject)' != 'true'">true + + + + + + + + + + + + + + + + + + + + + + + <_GeneratedCodeFiles Include="@(Antlr4GeneratedCodeFiles)" /> + + + + diff --git a/runtime/CSharp/Antlr4BuildTasks/Antlr4BuildTasks.csproj b/runtime/CSharp/Antlr4BuildTasks/Antlr4BuildTasks.csproj new file mode 100644 index 000000000..94f66b0ab --- /dev/null +++ b/runtime/CSharp/Antlr4BuildTasks/Antlr4BuildTasks.csproj @@ -0,0 +1,55 @@ + + + + + Debug + AnyCPU + {F63DFE80-AE1F-47A6-A31A-E39DA4C837BA} + Library + Properties + Antlr4BuildTasks + Antlr4BuildTasks + v4.5 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/runtime/CSharp/Antlr4BuildTasks/Properties/AssemblyInfo.cs b/runtime/CSharp/Antlr4BuildTasks/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..9cb75a5c8 --- /dev/null +++ b/runtime/CSharp/Antlr4BuildTasks/Properties/AssemblyInfo.cs @@ -0,0 +1,65 @@ +/* + * [The "BSD license"] + * Copyright (c) 2013 Terence Parr + * Copyright (c) 2013 Sam Harwell + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Antlr4BuildTasks")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Tunnel Vision Laboratories, LLC")] +[assembly: AssemblyProduct("Antlr4BuildTasks")] +[assembly: AssemblyCopyright("Copyright © Sam Harwell 2013")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("e79060d9-d211-4367-925a-5541943d3857")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")]