Skip to content

Commit

Permalink
Updated the Coco build and .exe to use VS 2017 and a .NET version 4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
RustanLeino committed Feb 8, 2018
1 parent b7a56a4 commit ff4ddc4
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 45 deletions.
Binary file modified third_party/Coco/bin/Coco.exe
Binary file not shown.
87 changes: 42 additions & 45 deletions third_party/Coco/src/Coco.csproj
@@ -1,53 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Usage" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<Target Name="Usage">
<Message Text="Possible Targets:"/>
<Message Text=" clean: Full clean up."/>
<Message Text=" build: Build Coco/R."/>
<Message Text=" debug: Build Coco/R."/>
<Message Text=" self: Create the parser and scanner from the atg."/>
<Message Text=" "/>
<Message Text="Example: msbuild /t:clean"/>
</Target>

<Target Name="clean">
<Delete Files="$(AppName).exe" Condition="Exists('$(AppName).exe')"/>
<Delete Files="$(AppName).pdb" Condition="Exists('$(AppName).pdb')"/>
</Target>

<ItemGroup>
<Compile Include="Coco.cs" />
<Compile Include="Scanner.cs" />
<Compile Include="Tab.cs" />
<Compile Include="DFA.cs" />
<Compile Include="ParserGen.cs" />
<Compile Include="Parser.cs" />
</ItemGroup>

<Target Name="build">
<Message Text="Building Coco/R..."/>
<Csc Sources="@(Compile)" OutputAssembly="$(AppName).exe" EmitDebugInformation="false" Optimize="true"/>
</Target>

<Target Name="debug">
<Message Text="Building Debug Version of Coco/R..."/>
<Csc Sources="@(Compile)" OutputAssembly="$(AppName).exe" EmitDebugInformation="true"/>
</Target>

<Target Name="self">
<Message Text="Self Build Coco/R..."/>
<Exec Command="$(AppName).exe -namespace at.jku.ssw.Coco Coco.atg"/>
</Target>

<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<AppName>Coco</AppName>
<OutputPath>.</OutputPath>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{0E177C54-6936-4965-BFD8-17CEEFCCD630}</ProjectGuid>
<OutputType>Exe</OutputType>
<TargetFrameworkVersion>v1.1</TargetFrameworkVersion>
<RootNamespace>Coco</RootNamespace>
<AssemblyName>Coco</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\bin\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>

<ItemGroup>
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>
<ItemGroup>
<Compile Include="Coco.cs" />
<Compile Include="DFA.cs" />
<Compile Include="Parser.cs" />
<Compile Include="ParserGen.cs" />
<Compile Include="Scanner.cs" />
<Compile Include="Tab.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

0 comments on commit ff4ddc4

Please sign in to comment.