diff --git a/GPPG.csproj b/GPPG.csproj index 91c896e..14f1ade 100644 --- a/GPPG.csproj +++ b/GPPG.csproj @@ -1,121 +1,51 @@ - - - - Debug - AnyCPU - {AF1F8BCF-34FC-4A5E-9D45-BCC6031720BC} - Exe - false - Gppg - QUT.Gppg - - - - - 3.5 - v4.0 - - - - true - full - false - .\bin\Debug\ - TRACE;DEBUG;CODE_ANALYSIS - AllRules.ruleset - false - - - pdbonly - true - bin\Debug\ - TRACE - AllRules.ruleset - - - - - - - - - Designer - - - - - - Code - - - Code - - - Code - - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - Code - - - - - - - - - \ No newline at end of file + + + + Exe + net20;netcoreapp2.0 + Gppg + QUT.Gppg + false + true + + + + + true + MSBuild/Gppg.nuspec + $(MSBuildProjectDirectory)/bin/$(Configuration)/publish/ + $(IntermediatePackDir)$(TargetFramework)/ + publishDir=$([MSBuild]::NormalizeDirectory($(IntermediatePackDir))) + + + + + + <_TargetFramework Include="$(TargetFrameworks)" /> + + + + + + + + + + + ScanAction.cs + + + Scanner.cs + + + Parser.cs + /gplex /nolines + + + + + + + + + diff --git a/MSBuild/Gppg.nuspec b/MSBuild/Gppg.nuspec new file mode 100644 index 0000000..bec12af --- /dev/null +++ b/MSBuild/Gppg.nuspec @@ -0,0 +1,31 @@ + + + + Gppg.Tool + 0.0.1-preview1 + GPPG developers + Gardens Point Parser Generator (GPPG) binary and MSBuild targets for SDK-style projects + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/MSBuild/RunGppg.targets b/MSBuild/RunGppg.targets new file mode 100644 index 0000000..4f5b867 --- /dev/null +++ b/MSBuild/RunGppg.targets @@ -0,0 +1,40 @@ + + + <_GppgTool>dotnet "$(MSBuildThisFileDirectory)/netcoreapp2.0/Gppg.dll" + + + + + + %(Identity).cs + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/MSBuild/_._ b/MSBuild/_._ new file mode 100644 index 0000000..e69de29 diff --git a/MSBuild/build/Gppg.Tool.targets b/MSBuild/build/Gppg.Tool.targets new file mode 100644 index 0000000..243ba6b --- /dev/null +++ b/MSBuild/build/Gppg.Tool.targets @@ -0,0 +1,4 @@ + + + + diff --git a/MSBuild/buildCrossTargeting/Gppg.Tool.targets b/MSBuild/buildCrossTargeting/Gppg.Tool.targets new file mode 100644 index 0000000..4cf501b --- /dev/null +++ b/MSBuild/buildCrossTargeting/Gppg.Tool.targets @@ -0,0 +1,4 @@ + + + + diff --git a/ParserGenerator/SpecFiles/GenerateAll.bat b/ParserGenerator/SpecFiles/GenerateAll.bat deleted file mode 100644 index 14ae62d..0000000 --- a/ParserGenerator/SpecFiles/GenerateAll.bat +++ /dev/null @@ -1,19 +0,0 @@ - -REM generate a fresh copy of parser.cs -gppg /gplex /nolines gppg.y -move parser.cs .. - -REM generate a fresh copy of Scanner.cs -gplex gppg.lex -move Scanner.cs .. - -REM generate a fresh copy of ScanAction.cs -gplex ScanAction.lex -move ScanAction.cs .. - -if not exist GplexBuffers.cs goto finish -move GplexBuffers.cs .. - -:finish -REM Ended -