Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ LSTools.VC.db
launchSettings.json

# Generated GpLex/GpPg files
ShiftReduceParserCode.cs
GplexBuffers.cs
*.lex.cs
*.yy.cs

Expand Down
30 changes: 28 additions & 2 deletions DebuggerFrontend/DebuggerFrontend.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="CommandLineArgumentsParser" Version="3.0.23" />
<PackageReference Include="YaccLexTools" Version="1.2.3" />
<PackageReference Include="Google.Protobuf" Version="3.25.1" />
<PackageReference Include="Grpc.Tools" Version="2.59.0">
<PrivateAssets>all</PrivateAssets>
Expand All @@ -23,9 +24,34 @@
<Protobuf Include="DbgProtocol.proto" GrpcServices="None" />
<Protobuf Include="debuginfo.proto" GrpcServices="None" />
</ItemGroup>
<ItemGroup Label="YaccLexBuild">
<YaccFile Include="ExpressionParser\Expression.yy">
<OutputFile>ExpressionParser\Expression.yy.cs</OutputFile>
<Arguments>/gplex /nolines</Arguments>
</YaccFile>
<LexFile Include="ExpressionParser\Expression.lex">
<OutputFile>ExpressionParser\Expression.lex.cs</OutputFile>
<Arguments>/noEmbedBuffers</Arguments>
</LexFile>
</ItemGroup>
<ItemGroup Label="YaccLexPack">
<!--Not technically neccisarry, just a qol change to nest generated .cs files in solution explorer-->
<Compile Update="ExpressionParser\Expression.yy.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ExpressionParser\Expression.yy</DependentUpon>
</Compile>
<Compile Update="ExpressionParser\Expression.lex.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ExpressionParser\Expression.lex</DependentUpon>
</Compile>

<!--Remove autogenerated files to prevent conflicts with imported files from LSLib-->
<Compile Remove="GplexBuffers.cs"/>
<Compile Remove="ShiftReduceParserCode.cs"/>
</ItemGroup>
<PropertyGroup>
<PreBuildEvent>"$(SolutionDir)\external\gppg\binaries\GpLex" /out:"$(SolutionDir)\DebuggerFrontend\ExpressionParser\Expression.lex.cs" "$(SolutionDir)\DebuggerFrontend\ExpressionParser\Expression.lex"
"$(SolutionDir)\external\gppg\binaries\Gppg" /out:"$(SolutionDir)\DebuggerFrontend\ExpressionParser\Expression.yy.cs" "$(SolutionDir)\DebuggerFrontend\ExpressionParser\Expression.yy"</PreBuildEvent>
<AssemblyTitle>Osiris VS Code Debugger Frontend</AssemblyTitle>
<Product>LSLib</Product>
<Copyright>Copyright © Norbyte 2012-2018</Copyright>
Expand Down
Loading