-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathGPLEXv1.csproj
54 lines (47 loc) · 2.11 KB
/
GPLEXv1.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net20;netcoreapp2.0</TargetFrameworks>
<AssemblyName>Gplex</AssemblyName>
<RootNamespace>QUT.Gplex</RootNamespace>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
<!-- Pack settings -->
<PropertyGroup>
<NoPackageAnalysis>true</NoPackageAnalysis>
<NuspecFile>MSBuild/Gplex.nuspec</NuspecFile>
<IntermediatePackDir>$(MSBuildProjectDirectory)/bin/$(Configuration)/publish/</IntermediatePackDir>
<PublishDir>$(IntermediatePackDir)$(TargetFramework)/</PublishDir>
<NuspecProperties>publishDir=$([MSBuild]::NormalizeDirectory($(IntermediatePackDir)))</NuspecProperties>
</PropertyGroup>
<!-- Executes /t:Publish for all target frameworks before packing -->
<Target Name="NugetCrossTarget" AfterTargets="Build" Condition="'$(TargetFrameworks)' != ''">
<ItemGroup>
<_TargetFramework Include="$(TargetFrameworks)" />
</ItemGroup>
<MSBuild Projects="$(MSBuildProjectFullPath)" Targets="Publish" Properties="TargetFramework=%(_TargetFramework.Identity)" />
</Target>
<Target Name="NugetSingleTarget" AfterTargets="Build" Condition="'$(TargetFrameworks)' == ''">
<MSBuild Projects="$(MSBuildProjectFullPath)" Targets="Publish" />
</Target>
<ItemGroup>
<Compile Remove="SpecFiles\LookaheadHelper.cs" />
<EmbeddedResource Include="SpecFiles\GplexBuffers.txt" />
<EmbeddedResource Include="SpecFiles\gplexx.frame" />
<EmbeddedResource Include="SpecFiles\ResourceHeader.txt" />
</ItemGroup>
<ItemGroup>
<GplexFile Include="SpecFiles\gplex.lex">
<OutputFile>Scanner.cs</OutputFile>
</GplexFile>
<GppgFile Include="SpecFiles\gplex.y">
<OutputFile>Parser.cs</OutputFile>
<Arguments>/gplex /nolines</Arguments>
</GppgFile>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Gplex.Tool" Version="0.0.1-preview1" PrivateAssets="All" />
<PackageReference Include="Gppg.Tool" Version="0.0.1-preview1" PrivateAssets="All" />
</ItemGroup>
</Project>