blob: 39fdb6e90bdfcd7df6c21eee434fb423cdc901aa (
plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssemblyName>OpenTK</AssemblyName>
<AssemblyVersion>3.0.0</AssemblyVersion>
<PackageVersion>3.0.4</PackageVersion>
<Deterministic>true</Deterministic>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<EnableDefaultItems>false</EnableDefaultItems>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<ProduceReferenceAssembly>True</ProduceReferenceAssembly>
<ProduceReferenceAssemblyInOutDir>true</ProduceReferenceAssemblyInOutDir>
<DefineConstants>TIZEN;OPENGLES;SDL2;__MOBILE__</DefineConstants>
<NoWarn>$(NoWarn);CS3021</NoWarn>
</PropertyGroup>
<PropertyGroup>
<TizenNETVersion>5.0.0.14428</TizenNETVersion>
</PropertyGroup>
<PropertyGroup>
<IncludeBuildOutput>false</IncludeBuildOutput>
<NoPackageAnalysis>true</NoPackageAnalysis>
<NuspecFile>OpenTK.Tizen.nuspec</NuspecFile>
<NuspecBasePath>$(MSBuildThisFileDirectory)</NuspecBasePath>
<NuspecProperties>version=$(PackageVersion);configuration=$(Configuration);fxversion=$(TizenNETVersion)</NuspecProperties>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Tizen.NET" Version="$(TizenNETVersion)" />
</ItemGroup>
<ItemGroup>
<Compile Include="AutoGeneratedAttribute.cs" />
<Compile Include="CountAttribute.cs" />
<Compile Include="BindingsBase.cs" />
<Compile Include="BlittableValueType.cs" />
<Compile Include="Configuration.cs" />
<Compile Include="ContextHandle.cs" />
<Compile Include="DisplayDevice.cs" />
<Compile Include="DisplayIndex.cs" />
<Compile Include="DisplayResolution.cs" />
<Compile Include="Exceptions.cs" />
<Compile Include="FrameEventArgs.cs" />
<Compile Include="GameWindow.cs" />
<Compile Include="GameWindowFlags.cs" />
<Compile Include="IGameWindow.cs" />
<Compile Include="INativeWindow.cs" />
<Compile Include="IntPtrEqualityComparer.cs" />
<Compile Include="InteropHelper.cs" />
<Compile Include="KeyPressEventArgs.cs" />
<Compile Include="Minimal.cs" />
<Compile Include="MouseCursor.cs" />
<Compile Include="NativeWindow.cs" />
<Compile Include="Platform\iPhoneOS\iPhoneDisplayDeviceDriver.cs" />
<Compile Include="RewrittenAttribute.cs" />
<Compile Include="SlotAttribute.cs" />
<Compile Include="Toolkit.cs" />
<Compile Include="ToolkitOptions.cs" />
<Compile Include="WindowBorder.cs" />
<Compile Include="WindowIcon.cs" />
<Compile Include="WindowState.cs" />
<Compile Include="Input/*.cs" />
<Compile Include="Math/*.cs" />
<Compile Include="Graphics/*.cs" />
<Compile Include="Graphics/ES11/*.cs" />
<Compile Include="Graphics/ES20/*.cs" />
<Compile Include="Graphics/ES30/*.cs" />
<Compile Include="Platform/*.cs" />
<Compile Include="Platform/Dummy/*.cs" />
<Compile Include="Platform/SDL2/*.cs" />
<Compile Include="Platform/Tizen/*.cs" />
</ItemGroup>
<!-- Rewrite OpenTK.dll after building -->
<Target Name="_AfterBuild" AfterTargets="Build">
<!-- Copy dependent files to output dir -->
<ItemGroup>
<_DependentFilesToCopy Include="@(ResolvedCompileFileDefinitions)" Condition="'%(NuGetPackageId)' == 'Tizen.NET.API5'" />
</ItemGroup>
<Copy SourceFiles="@(_DependentFilesToCopy)" DestinationFolder="$(TargetDir)" />
<!-- Rewrite OpenTK.dll -->
<PropertyGroup>
<RewriteCmd>dotnet ../Generator.Rewrite/bin/$(Configuration)/netcoreapp3.1/Generator.Rewrite.dll</RewriteCmd>
<DebugOpt Condition="'$(Configuration)' == 'Debug'">--debug</DebugOpt>
</PropertyGroup>
<Exec Command="$(RewriteCmd) --assembly $(TargetPath) --dllimport $(DebugOpt)" />
</Target>
</Project>
|