mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-22 20:45:38 +00:00
Fix Xamarin project compiles (#725)
* Fix Generator.Rewrite failing on iOS builds * Fix incorrect path * Directly link to Xamarin.iOS facades * Fix Xamarin.Mac framework directory * Add TVOS/WatchOS framework directories * Add Android framework directory * Remove unused framework dirs for now Maybe we can add these back in later, when we have compiling support for these platforms. * Remove ProjectExtensions
This commit is contained in:
parent
f17fa4bc2d
commit
b16e7faacc
|
@ -53,7 +53,14 @@ namespace OpenTK.Rewrite
|
||||||
|
|
||||||
var framework_dir = Path.GetDirectoryName(typeof(object).Module.FullyQualifiedName);
|
var framework_dir = Path.GetDirectoryName(typeof(object).Module.FullyQualifiedName);
|
||||||
var framework_dirs = on_mono
|
var framework_dirs = on_mono
|
||||||
? new[] { framework_dir, Path.Combine(framework_dir, "Facades") }
|
? new[]
|
||||||
|
{
|
||||||
|
framework_dir,
|
||||||
|
Path.Combine(framework_dir, "Facades"),
|
||||||
|
"/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS",
|
||||||
|
"/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Facades",
|
||||||
|
"/Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mono/2.1"
|
||||||
|
}
|
||||||
: new[] { framework_dir };
|
: new[] { framework_dir };
|
||||||
|
|
||||||
if (IsZero(name.Version))
|
if (IsZero(name.Version))
|
||||||
|
|
|
@ -247,10 +247,10 @@
|
||||||
</Target>
|
</Target>
|
||||||
-->
|
-->
|
||||||
<Target Name="AfterBuild">
|
<Target Name="AfterBuild">
|
||||||
<Exec Command="$(OutputPath)..\..\..\..\Generator.Rewrite\bin\Debug\Rewrite.exe $(OutputPath)OpenTK.dll ..\..\OpenTK.snk -dllimport -debug" Condition="$(OS) == 'Windows_NT' and $(Configuration) == 'Debug'" />
|
<Exec Condition="$(OS) == 'Windows_NT' and $(Configuration) == 'Debug'" Command="$(OutputPath)..\..\..\..\Generator.Rewrite\bin\Debug\Rewrite.exe --assembly $(OutputPath)OpenTK.dll --signing-key ..\..\OpenTK.snk --debug" />
|
||||||
<Exec Command="$(OutputPath)..\..\..\..\Generator.Rewrite\bin\Release\Rewrite.exe $(OutputPath)OpenTK.dll ..\..\OpenTK.snk -dllimport" Condition="$(OS) == 'Windows_NT' and $(Configuration) == 'Release'" />
|
<Exec Condition="$(OS) == 'Windows_NT' and $(Configuration) == 'Release'" Command="$(OutputPath)..\..\..\..\Generator.Rewrite\bin\Release\Rewrite.exe --assembly $(OutputPath)OpenTK.dll --signing-key ..\..\OpenTK.snk" />
|
||||||
<Exec WorkingDirectory="$(SolutionDir)src/Generator.Rewrite/bin/Debug/" Command="mono ./Rewrite.exe $(SolutionDir)src/OpenTK/bin/Debug/iOS/OpenTK.dll $(SolutionDir)OpenTK.snk -dllimport -debug" Condition="$(OS) != 'Windows_NT' and $(Configuration) == 'Debug'" />
|
<Exec Condition="$(OS) != 'Windows_NT' and $(Configuration) == 'Debug'" Command="mono $(OutputPath)../../../../Generator.Rewrite/bin/Debug/Rewrite.exe --assembly $(OutputPath)OpenTK.dll --signing-key ../../OpenTK.snk --debug" />
|
||||||
<Exec WorkingDirectory="$(SolutionDir)src/Generator.Rewrite/bin/Release" Command="mono ./Rewrite.exe $(SolutionDir)src/OpenTK/bin/Release/iOS/OpenTK.dll $(SolutionDir)OpenTK.snk -dllimport" Condition="$(OS) != 'Windows_NT' and $(Configuration) == 'Release'" />
|
<Exec Condition="$(OS) != 'Windows_NT' and $(Configuration) == 'Release'" Command="mono $(OutputPath)../../../../Generator.Rewrite/bin/Release/Rewrite.exe --assembly $(OutputPath)OpenTK.dll --signing-key ../../OpenTK.snk" />
|
||||||
</Target>
|
</Target>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Analyzer Include="..\..\packages\StyleCop.Analyzers\analyzers\dotnet\cs\StyleCop.Analyzers.CodeFixes.dll">
|
<Analyzer Include="..\..\packages\StyleCop.Analyzers\analyzers\dotnet\cs\StyleCop.Analyzers.CodeFixes.dll">
|
||||||
|
|
Loading…
Reference in a new issue