Add basic Xamarin.Mac support #278

Closed
chamons wants to merge 11 commits from xamarin_mac_support into master
294 changed files with 2799 additions and 28777 deletions
Showing only changes of commit 59e950f41b - Show all commits

View File

@@ -541,7 +541,6 @@ namespace Facebook.Yoga
return new YogaSize { width = MeasureOutput.GetWidth(output), height = MeasureOutput.GetHeight(output) };
}
#if !MONOMAC
public string Print(YogaPrintOptions options =
YogaPrintOptions.Layout|YogaPrintOptions.Style|YogaPrintOptions.Children)
{
@@ -552,7 +551,6 @@ namespace Facebook.Yoga
YogaLogger.Logger = orig;
return sb.ToString();
}
#endif
public IEnumerator<YogaNode> GetEnumerator()
{

View File

@@ -7,7 +7,8 @@ using CoreGraphics;
namespace Facebook.Yoga.Mac
{
// We're actually abusing the Xamarin.Mac binding project
// to bundle in the static lib for us. There is no objective-c
// lib to bind, but the build will fail without ApiDefinition.cs
// Xamarin.Mac binding projects allow you to include native libraries inside C# DLLs for easy consumption
// later. However, the binding project build files currently assume you are binding some objective-c API
// and that you need an ApiDefinition.cs for that. yoga is all C APIs, so just include this "blank" file so
// the dylib gets packaged
}