Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Xamarin project compiles #725

Merged
merged 8 commits into from Jan 23, 2018
Merged

Fix Xamarin project compiles #725

merged 8 commits into from Jan 23, 2018

Conversation

smoogipoo
Copy link

@smoogipoo smoogipoo commented Jan 22, 2018

Purpose of this PR

  • Fixes Generator.Rewrite not working on OpenTK.iOS and OpenTK.Android due to the Xamarin frameworks not being found by mono.
  • Adds MonoDevelop license header to csproj, in-line with OpenTK.csproj.
  • Updates post-build Generator.Rewrite step, in-line with OpenTK.csproj.

Testing status

  • Compiled OpenTK.iOS, ran using osu-framework on both the simulator and device.
    • As a note, I needed to remove the codeanalysis step, otherwise the compile would hang indefinitely. This happens with the OpenTK project too, so not sure what's up with that.
  • Haven't been able to compile OpenTK.Android yet.

Comments

  • We might need to do this for compiling Xamarin.Android on linux too - not entirely sure how that works/where it looks up the frameworks there.

</Policies>
</Properties>
</MonoDevelop>
</ProjectExtensions>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The <ProjectExtensions> block was probably included on accident - remove?

</Target>
<ProjectExtensions>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to include this. Remove.

@@ -53,7 +53,14 @@ public AssemblyDefinition Resolve(AssemblyNameReference name, ReaderParameters p

var framework_dir = Path.GetDirectoryName(typeof(object).Module.FullyQualifiedName);
var framework_dirs = on_mono
? new[] { framework_dir, Path.Combine(framework_dir, "Facades") }
? new[]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I worry that we'll have to maintain our own version of the resolver in the future because of this, though.

@Nihlus
Copy link
Contributor

Nihlus commented Jan 22, 2018

The project analysis simply takes a long time due to the size of the project.

@Nihlus Nihlus merged commit b16e7fa into opentk:develop Jan 23, 2018
VPeruS pushed a commit to VPeruS/opentk that referenced this pull request Jul 8, 2018
* 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
@peppy peppy deleted the fix-ios-compile branch June 4, 2019 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants