-
Notifications
You must be signed in to change notification settings - Fork 1
/
GeomAPIgenerator.csproj
64 lines (50 loc) · 2.58 KB
/
GeomAPIgenerator.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
55
56
57
58
59
60
61
62
63
64
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<Configurations>Debug;Release</Configurations>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath></OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<NoWarn>1701;1702;CA1416</NoWarn>
<WarningsAsErrors>NU1605</WarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<NoWarn>1701;1702;CA1416</NoWarn>
<WarningsAsErrors>NU1605</WarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Compile Remove="Examples\**" />
<EmbeddedResource Remove="Examples\**" />
<None Remove="Examples\**" />
</ItemGroup>
<ItemGroup>
<Compile Remove="Engine\**" />
<EmbeddedResource Remove="Engine\**" />
<None Remove="Engine\**" />
</ItemGroup>
<ItemGroup>
<Compile Remove="API.generated\geom.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="Engine\engine.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="EngineEx_Template.cs" />
<EmbeddedResource Include="EngineEx_Template.h" />
</ItemGroup>
<ItemGroup>
<None Include="API.generated\geom.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.8.0" />
<PackageReference Include="System.CodeDom" Version="6.0.0" />
</ItemGroup>
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="
echo Check RDF engine includes
if .%25RDF_ENGINE_INCLUDE%25.==.. goto IncUpdated
echo Update RDF engine includes 
xcopy %25RDF_ENGINE_INCLUDE%25engine.h Engine /F /Y
xcopy %25RDF_ENGINE_INCLUDE%25engine.cs Engine /F /Y
:IncUpdated

echo Check RDF engine binaries
if .%25RDF_ENGINE_LIB%25.==.. goto LibUpdated
echo Update RDF engine binaries
copy %25RDF_ENGINE_LIB%25Debug\engine.lib Engine\Debug /Y
copy %25RDF_ENGINE_LIB%25Debug\engine.dll Engine\Debug /Y
copy %25RDF_ENGINE_LIB%25Release\engine.lib Engine\Release /Y
copy %25RDF_ENGINE_LIB%25Release\engine.dll Engine\Release /Y
:LibUpdated
" />
</Target>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="@echo copy Engine\$(ConfigurationName)\engine.dll $(OutDir) /Y
copy Engine\$(ConfigurationName)\engine.dll $(OutDir) /Y" />
</Target>
</Project>