From bf6602ebffcbe87ca2579a2d1e3ec1c4d1f823f5 Mon Sep 17 00:00:00 2001 From: Andrew Forster Date: Thu, 5 Jan 2017 07:09:19 -0800 Subject: [PATCH] Update C# wrapper to support both desktop and UWP projects Summary: The C# wrapper project has been changed to a NETStandard (1.1) PCL allowing it to be consumed by any project targeting .NET4.5 or greater including .NETCore and UWP projects... The C# wrapper uses P/Invoke to call into the Native Yoga DLL... The "Yoga" C++ project has been updated to support ARM builds... Added the ability to generate nuget packages for the C# wrapper that supports copying the native DLLs to the target output directory. Closes: https://github.com/facebook/yoga/pull/283 Reviewed By: splhack, emilsjolander Differential Revision: D4381455 Pulled By: JoelMarcey fbshipit-source-id: e6dc4190caa824ac63d5d5ee2eb4c7914efbb00f --- csharp/Facebook.Yoga.sln | 46 -- .../Facebook.Yoga.Shared.projitems | 40 ++ .../Facebook.Yoga/Facebook.Yoga.Shared.shproj | 13 + csharp/Facebook.Yoga/Facebook.Yoga.xproj | 21 - csharp/Facebook.Yoga/Native.cs | 170 +++---- .../Build/Facebook.Yoga.NativeInterop.targets | 131 ++++++ .../Facebook.Yoga.Desktop.Tests.csproj | 104 +++++ .../Properties/AssemblyInfo.cs | 28 ++ .../packages.config | 4 + csharp/Windows/Facebook.Yoga.Desktop.sln | 102 +++++ .../Assets/LockScreenLogo.scale-200.png | Bin 0 -> 1430 bytes .../Assets/SplashScreen.scale-200.png | Bin 0 -> 7700 bytes .../Assets/Square150x150Logo.scale-200.png | Bin 0 -> 2937 bytes .../Assets/Square44x44Logo.scale-200.png | Bin 0 -> 1647 bytes ...x44Logo.targetsize-24_altform-unplated.png | Bin 0 -> 1255 bytes .../Assets/StoreLogo.png | Bin 0 -> 1451 bytes .../Assets/Wide310x150Logo.scale-200.png | Bin 0 -> 3204 bytes .../Facebook.Yoga.Universal.Tests.csproj | 143 ++++++ .../Package.appxmanifest | 45 ++ .../Properties/AssemblyInfo.cs | 30 ++ .../Properties/UnitTestApp.rd.xml | 29 ++ .../UnitTestApp.xaml | 8 + .../UnitTestApp.xaml.cs | 102 +++++ .../YogaNodeTest.cs | 417 ++++++++++++++++++ .../project.json | 16 + csharp/Windows/Facebook.Yoga.Universal.sln | 105 +++++ csharp/Windows/Facebook.Yoga.sln | 125 ++++++ .../Facebook.Yoga/Facebook.Yoga.csproj | 113 +++++ .../Facebook.Yoga/Properties/AssemblyInfo.cs | 15 +- csharp/Windows/Facebook.Yoga/project.json | 12 + csharp/Yoga/Yoga.rc | Bin 0 -> 4528 bytes csharp/Yoga/Yoga.vcxproj | 100 ++++- csharp/Yoga/Yoga.vcxproj.filters | 10 +- csharp/Yoga/resource.h | 14 + csharp/nuget/Facebook.Yoga.Native.nuspec | 38 ++ csharp/nuget/Facebook.Yoga.Native.targets | 36 ++ csharp/nuget/Facebook.Yoga.nuspec | 46 ++ csharp/nuget/Facebook.Yoga.targets | 51 +++ csharp/nuget/_._ | 0 .../Facebook.Yoga.Shared.Tests.projitems | 28 ++ .../Facebook.Yoga.Shared.Tests.shproj | 13 + 41 files changed, 1986 insertions(+), 169 deletions(-) delete mode 100644 csharp/Facebook.Yoga.sln create mode 100644 csharp/Facebook.Yoga/Facebook.Yoga.Shared.projitems create mode 100644 csharp/Facebook.Yoga/Facebook.Yoga.Shared.shproj delete mode 100644 csharp/Facebook.Yoga/Facebook.Yoga.xproj create mode 100644 csharp/Windows/Build/Facebook.Yoga.NativeInterop.targets create mode 100644 csharp/Windows/Facebook.Yoga.Desktop.Tests/Facebook.Yoga.Desktop.Tests.csproj create mode 100644 csharp/Windows/Facebook.Yoga.Desktop.Tests/Properties/AssemblyInfo.cs create mode 100644 csharp/Windows/Facebook.Yoga.Desktop.Tests/packages.config create mode 100644 csharp/Windows/Facebook.Yoga.Desktop.sln create mode 100644 csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/LockScreenLogo.scale-200.png create mode 100644 csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/SplashScreen.scale-200.png create mode 100644 csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/Square150x150Logo.scale-200.png create mode 100644 csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/Square44x44Logo.scale-200.png create mode 100644 csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/Square44x44Logo.targetsize-24_altform-unplated.png create mode 100644 csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/StoreLogo.png create mode 100644 csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/Wide310x150Logo.scale-200.png create mode 100644 csharp/Windows/Facebook.Yoga.Universal.Tests/Facebook.Yoga.Universal.Tests.csproj create mode 100644 csharp/Windows/Facebook.Yoga.Universal.Tests/Package.appxmanifest create mode 100644 csharp/Windows/Facebook.Yoga.Universal.Tests/Properties/AssemblyInfo.cs create mode 100644 csharp/Windows/Facebook.Yoga.Universal.Tests/Properties/UnitTestApp.rd.xml create mode 100644 csharp/Windows/Facebook.Yoga.Universal.Tests/UnitTestApp.xaml create mode 100644 csharp/Windows/Facebook.Yoga.Universal.Tests/UnitTestApp.xaml.cs create mode 100644 csharp/Windows/Facebook.Yoga.Universal.Tests/YogaNodeTest.cs create mode 100644 csharp/Windows/Facebook.Yoga.Universal.Tests/project.json create mode 100644 csharp/Windows/Facebook.Yoga.Universal.sln create mode 100644 csharp/Windows/Facebook.Yoga.sln create mode 100644 csharp/Windows/Facebook.Yoga/Facebook.Yoga.csproj rename csharp/{ => Windows}/Facebook.Yoga/Properties/AssemblyInfo.cs (53%) create mode 100644 csharp/Windows/Facebook.Yoga/project.json create mode 100644 csharp/Yoga/Yoga.rc create mode 100644 csharp/Yoga/resource.h create mode 100644 csharp/nuget/Facebook.Yoga.Native.nuspec create mode 100644 csharp/nuget/Facebook.Yoga.Native.targets create mode 100644 csharp/nuget/Facebook.Yoga.nuspec create mode 100644 csharp/nuget/Facebook.Yoga.targets create mode 100644 csharp/nuget/_._ create mode 100644 csharp/tests/Facebook.Yoga/Facebook.Yoga.Shared.Tests.projitems create mode 100644 csharp/tests/Facebook.Yoga/Facebook.Yoga.Shared.Tests.shproj diff --git a/csharp/Facebook.Yoga.sln b/csharp/Facebook.Yoga.sln deleted file mode 100644 index 3e8b4078..00000000 --- a/csharp/Facebook.Yoga.sln +++ /dev/null @@ -1,46 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Yoga", "Yoga\Yoga.vcxproj", "{0446C86B-F47B-4C46-B673-C7AE0CFF35D5}" -EndProject -Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Facebook.Yoga", "Facebook.Yoga\Facebook.Yoga.xproj", "{75BB7605-E54B-4EDE-8F5A-FF1F24464236}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|Any CPU.ActiveCfg = Debug|Win32 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x64.ActiveCfg = Debug|x64 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x64.Build.0 = Debug|x64 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x86.ActiveCfg = Debug|Win32 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x86.Build.0 = Debug|Win32 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|Any CPU.ActiveCfg = Release|Win32 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x64.ActiveCfg = Release|x64 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x64.Build.0 = Release|x64 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x86.ActiveCfg = Release|Win32 - {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x86.Build.0 = Release|Win32 - {75BB7605-E54B-4EDE-8F5A-FF1F24464236}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {75BB7605-E54B-4EDE-8F5A-FF1F24464236}.Debug|Any CPU.Build.0 = Debug|Any CPU - {75BB7605-E54B-4EDE-8F5A-FF1F24464236}.Debug|x64.ActiveCfg = Debug|Any CPU - {75BB7605-E54B-4EDE-8F5A-FF1F24464236}.Debug|x64.Build.0 = Debug|Any CPU - {75BB7605-E54B-4EDE-8F5A-FF1F24464236}.Debug|x86.ActiveCfg = Debug|Any CPU - {75BB7605-E54B-4EDE-8F5A-FF1F24464236}.Debug|x86.Build.0 = Debug|Any CPU - {75BB7605-E54B-4EDE-8F5A-FF1F24464236}.Release|Any CPU.ActiveCfg = Release|Any CPU - {75BB7605-E54B-4EDE-8F5A-FF1F24464236}.Release|Any CPU.Build.0 = Release|Any CPU - {75BB7605-E54B-4EDE-8F5A-FF1F24464236}.Release|x64.ActiveCfg = Release|Any CPU - {75BB7605-E54B-4EDE-8F5A-FF1F24464236}.Release|x64.Build.0 = Release|Any CPU - {75BB7605-E54B-4EDE-8F5A-FF1F24464236}.Release|x86.ActiveCfg = Release|Any CPU - {75BB7605-E54B-4EDE-8F5A-FF1F24464236}.Release|x86.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/csharp/Facebook.Yoga/Facebook.Yoga.Shared.projitems b/csharp/Facebook.Yoga/Facebook.Yoga.Shared.projitems new file mode 100644 index 00000000..5889d249 --- /dev/null +++ b/csharp/Facebook.Yoga/Facebook.Yoga.Shared.projitems @@ -0,0 +1,40 @@ + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + true + 91c42d32-291d-4b72-90b4-551663d60b8b + + + Facebook.Yoga.Shared + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/csharp/Facebook.Yoga/Facebook.Yoga.Shared.shproj b/csharp/Facebook.Yoga/Facebook.Yoga.Shared.shproj new file mode 100644 index 00000000..6d2da463 --- /dev/null +++ b/csharp/Facebook.Yoga/Facebook.Yoga.Shared.shproj @@ -0,0 +1,13 @@ + + + + 91c42d32-291d-4b72-90b4-551663d60b8b + 14.0 + + + + + + + + diff --git a/csharp/Facebook.Yoga/Facebook.Yoga.xproj b/csharp/Facebook.Yoga/Facebook.Yoga.xproj deleted file mode 100644 index 0341d153..00000000 --- a/csharp/Facebook.Yoga/Facebook.Yoga.xproj +++ /dev/null @@ -1,21 +0,0 @@ - - - - 14.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - - - - - 75bb7605-e54b-4ede-8f5a-ff1f24464236 - Facebook.Yoga - .\obj - .\bin\ - v4.5.2 - - - - 2.0 - - - diff --git a/csharp/Facebook.Yoga/Native.cs b/csharp/Facebook.Yoga/Native.cs index 36a54733..cb7371d3 100644 --- a/csharp/Facebook.Yoga/Native.cs +++ b/csharp/Facebook.Yoga/Native.cs @@ -1,4 +1,4 @@ -/** +/** * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * @@ -42,75 +42,75 @@ namespace Facebook.Yoga } } - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGInteropSetLogger( [MarshalAs(UnmanagedType.FunctionPtr)] YogaLogger.Func func); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YGNodeHandle YGNodeNew(); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeFree(IntPtr node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeReset(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern int YGNodeGetInstanceCount(); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGSetExperimentalFeatureEnabled( YogaExperimentalFeature feature, bool enabled); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern bool YGIsExperimentalFeatureEnabled( YogaExperimentalFeature feature); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeInsertChild(YGNodeHandle node, YGNodeHandle child, uint index); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeRemoveChild(YGNodeHandle node, YGNodeHandle child); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeCalculateLayout(YGNodeHandle node, float availableWidth, float availableHeight, YogaDirection parentDirection); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeMarkDirty(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] [return: MarshalAs(UnmanagedType.I1)] public static extern bool YGNodeIsDirty(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodePrint(YGNodeHandle node, YogaPrintOptions options); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] [return: MarshalAs(UnmanagedType.I1)] public static extern bool YGValueIsUndefined(float value); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeCopyStyle(YGNodeHandle dstNode, YGNodeHandle srcNode); #region YG_NODE_PROPERTY - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeSetMeasureFunc( YGNodeHandle node, [MarshalAs(UnmanagedType.FunctionPtr)] YogaMeasureFunc measureFunc); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] [return: MarshalAs(UnmanagedType.FunctionPtr)] public static extern YogaMeasureFunc YGNodeGetMeasureFunc(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeSetHasNewLayout(YGNodeHandle node, [MarshalAs(UnmanagedType.I1)] bool hasNewLayout); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] [return: MarshalAs(UnmanagedType.I1)] public static extern bool YGNodeGetHasNewLayout(YGNodeHandle node); @@ -118,206 +118,206 @@ namespace Facebook.Yoga #region YG_NODE_STYLE_PROPERTY - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetDirection(YGNodeHandle node, YogaDirection direction); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YogaDirection YGNodeStyleGetDirection(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetFlexDirection(YGNodeHandle node, YogaFlexDirection flexDirection); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YogaFlexDirection YGNodeStyleGetFlexDirection(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetJustifyContent(YGNodeHandle node, YogaJustify justifyContent); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YogaJustify YGNodeStyleGetJustifyContent(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetAlignContent(YGNodeHandle node, YogaAlign alignContent); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YogaAlign YGNodeStyleGetAlignContent(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetAlignItems(YGNodeHandle node, YogaAlign alignItems); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YogaAlign YGNodeStyleGetAlignItems(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetAlignSelf(YGNodeHandle node, YogaAlign alignSelf); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YogaAlign YGNodeStyleGetAlignSelf(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetPositionType(YGNodeHandle node, YogaPositionType positionType); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YogaPositionType YGNodeStyleGetPositionType(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetFlexWrap(YGNodeHandle node, YogaWrap flexWrap); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YogaWrap YGNodeStyleGetFlexWrap(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetOverflow(YGNodeHandle node, YogaOverflow flexWrap); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YogaOverflow YGNodeStyleGetOverflow(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetFlex(YGNodeHandle node, float flex); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetFlexGrow(YGNodeHandle node, float flexGrow); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern float YGNodeStyleGetFlexGrow(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetFlexShrink(YGNodeHandle node, float flexShrink); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern float YGNodeStyleGetFlexShrink(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetFlexBasis(YGNodeHandle node, float flexBasis); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetFlexBasisPercent(YGNodeHandle node, float flexBasis); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YogaValue YGNodeStyleGetFlexBasis(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetWidth(YGNodeHandle node, float width); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetWidthPercent(YGNodeHandle node, float width); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YogaValue YGNodeStyleGetWidth(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetHeight(YGNodeHandle node, float height); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetHeightPercent(YGNodeHandle node, float height); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YogaValue YGNodeStyleGetHeight(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetMinWidth(YGNodeHandle node, float minWidth); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetMinWidthPercent(YGNodeHandle node, float minWidth); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YogaValue YGNodeStyleGetMinWidth(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetMinHeight(YGNodeHandle node, float minHeight); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetMinHeightPercent(YGNodeHandle node, float minHeight); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YogaValue YGNodeStyleGetMinHeight(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetMaxWidth(YGNodeHandle node, float maxWidth); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetMaxWidthPercent(YGNodeHandle node, float maxWidth); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YogaValue YGNodeStyleGetMaxWidth(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetMaxHeight(YGNodeHandle node, float maxHeight); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetMaxHeightPercent(YGNodeHandle node, float maxHeight); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YogaValue YGNodeStyleGetMaxHeight(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetAspectRatio(YGNodeHandle node, float aspectRatio); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern float YGNodeStyleGetAspectRatio(YGNodeHandle node); #endregion #region YG_NODE_STYLE_EDGE_PROPERTY - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetPosition(YGNodeHandle node, YogaEdge edge, float position); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetPositionPercent(YGNodeHandle node, YogaEdge edge, float position); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YogaValue YGNodeStyleGetPosition(YGNodeHandle node, YogaEdge edge); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetMargin(YGNodeHandle node, YogaEdge edge, float margin); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetMarginPercent(YGNodeHandle node, YogaEdge edge, float margin); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YogaValue YGNodeStyleGetMargin(YGNodeHandle node, YogaEdge edge); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetPadding(YGNodeHandle node, YogaEdge edge, float padding); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetPaddingPercent(YGNodeHandle node, YogaEdge edge, float padding); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YogaValue YGNodeStyleGetPadding(YGNodeHandle node, YogaEdge edge); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern void YGNodeStyleSetBorder(YGNodeHandle node, YogaEdge edge, float border); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern float YGNodeStyleGetBorder(YGNodeHandle node, YogaEdge edge); #endregion #region YG_NODE_LAYOUT_PROPERTY - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern float YGNodeLayoutGetLeft(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern float YGNodeLayoutGetTop(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern float YGNodeLayoutGetRight(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern float YGNodeLayoutGetBottom(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern float YGNodeLayoutGetWidth(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern float YGNodeLayoutGetHeight(YGNodeHandle node); - [DllImport(DllName)] + [DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)] public static extern YogaDirection YGNodeLayoutGetDirection(YGNodeHandle node); #endregion } -} +} \ No newline at end of file diff --git a/csharp/Windows/Build/Facebook.Yoga.NativeInterop.targets b/csharp/Windows/Build/Facebook.Yoga.NativeInterop.targets new file mode 100644 index 00000000..9681d324 --- /dev/null +++ b/csharp/Windows/Build/Facebook.Yoga.NativeInterop.targets @@ -0,0 +1,131 @@ + + + + $(SolutionDir)..\Yoga\bin\ + $(NativeRootPath)x86\ + $(NativeRootPath)x64\ + $(NativeRootPath)ARM\ + Yoga + AMD64 + ARM + + + + + + + + + $(NativeDLLMoniker).dll + PreserveNewest + False + + + $(NativeDLLMoniker).pdb + PreserveNewest + False + + + + + $(NativeDLLMoniker).dll + PreserveNewest + False + + + $(NativeDLLMoniker).pdb + PreserveNewest + False + + + + + + + $(NativeDLLMoniker).dll + PreserveNewest + False + + + $(NativeDLLMoniker).pdb + PreserveNewest + False + + + + + $(NativeDLLMoniker).dll + PreserveNewest + False + + + $(NativeDLLMoniker).pdb + PreserveNewest + False + + + + + $(NativeDLLMoniker).dll + PreserveNewest + False + + + $(NativeDLLMoniker).pdb + PreserveNewest + False + + + + + + + + + $(NativeDLLMoniker).dll + PreserveNewest + False + + + $(NativeDLLMoniker).pdb + PreserveNewest + False + + + + + $(NativeDLLMoniker).dll + PreserveNewest + False + + + $(NativeDLLMoniker).pdb + PreserveNewest + False + + + + + + $(NativeDLLMoniker).dll + PreserveNewest + False + + + $(NativeDLLMoniker).pdb + PreserveNewest + False + + + + + \ No newline at end of file diff --git a/csharp/Windows/Facebook.Yoga.Desktop.Tests/Facebook.Yoga.Desktop.Tests.csproj b/csharp/Windows/Facebook.Yoga.Desktop.Tests/Facebook.Yoga.Desktop.Tests.csproj new file mode 100644 index 00000000..7ae64e28 --- /dev/null +++ b/csharp/Windows/Facebook.Yoga.Desktop.Tests/Facebook.Yoga.Desktop.Tests.csproj @@ -0,0 +1,104 @@ + + + + + Debug + AnyCPU + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3} + Library + Properties + Facebook.Yoga + Facebook.Yoga.Desktop.Tests + v4.5.1 + 512 + + + + true + bin\x64\Debug\ + DEBUG;TRACE + full + x64 + prompt + MinimumRecommendedRules.ruleset + true + + + bin\x64\Release\ + TRACE + true + pdbonly + x64 + prompt + MinimumRecommendedRules.ruleset + + + true + bin\x86\Debug\ + DEBUG;TRACE + full + x86 + prompt + MinimumRecommendedRules.ruleset + + + bin\x86\Release\ + TRACE + true + pdbonly + x86 + prompt + MinimumRecommendedRules.ruleset + + + true + bin\Debug\ + DEBUG;TRACE + true + full + AnyCPU + prompt + MinimumRecommendedRules.ruleset + + + bin\Release\ + TRACE + true + pdbonly + AnyCPU + prompt + MinimumRecommendedRules.ruleset + + + + ..\packages\NUnit.2.6.4\lib\nunit.framework.dll + True + + + + + + + + + + + + + {3aace384-fdec-4d91-a3b2-eeb21b46c9ad} + Facebook.Yoga + + + + + + + + + + + This project references a native interop target that is missing. The missing build target is {0}. + + + + \ No newline at end of file diff --git a/csharp/Windows/Facebook.Yoga.Desktop.Tests/Properties/AssemblyInfo.cs b/csharp/Windows/Facebook.Yoga.Desktop.Tests/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..3947118c --- /dev/null +++ b/csharp/Windows/Facebook.Yoga.Desktop.Tests/Properties/AssemblyInfo.cs @@ -0,0 +1,28 @@ +/** + * Copyright (c) 2014-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +using System.Reflection; +using System.Resources; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Facebook.Yoga.Desktop.Tests")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Facebook, Inc.")] +[assembly: AssemblyProduct("Facebook.Yoga")] +[assembly: AssemblyCopyright("Copyright (c) 2014-present, Facebook, Inc.")] + +[assembly: ComVisible(false)] + +[assembly: Guid("ac23f444-5545-4196-8b9f-5c1f6b3e7fb3")] + +[assembly: NeutralResourcesLanguage("en")] + +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] + diff --git a/csharp/Windows/Facebook.Yoga.Desktop.Tests/packages.config b/csharp/Windows/Facebook.Yoga.Desktop.Tests/packages.config new file mode 100644 index 00000000..b25e5bda --- /dev/null +++ b/csharp/Windows/Facebook.Yoga.Desktop.Tests/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/csharp/Windows/Facebook.Yoga.Desktop.sln b/csharp/Windows/Facebook.Yoga.Desktop.sln new file mode 100644 index 00000000..5738d062 --- /dev/null +++ b/csharp/Windows/Facebook.Yoga.Desktop.sln @@ -0,0 +1,102 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{5289E508-8386-45A1-A12B-258A5899CD45}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Native", "Native", "{51A8E803-C084-431F-9130-F277481C2BB2}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NETStandard", "NETStandard", "{DCF7899B-A487-49C0-BCDE-DC088B6750C2}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "yoga", "..\Yoga\Yoga.vcxproj", "{0446C86B-F47B-4C46-B673-C7AE0CFF35D5}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{39A2FFDA-C093-4FA6-8143-45B5019E7DAC}" +EndProject +Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared", "..\Facebook.Yoga\Facebook.Yoga.Shared.shproj", "{91C42D32-291D-4B72-90B4-551663D60B8B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga", "Facebook.Yoga\Facebook.Yoga.csproj", "{3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}" + ProjectSection(ProjectDependencies) = postProject + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5} = {0446C86B-F47B-4C46-B673-C7AE0CFF35D5} + EndProjectSection +EndProject +Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared.Tests", "..\tests\Facebook.Yoga\Facebook.Yoga.Shared.Tests.shproj", "{4EDC82D9-A201-4831-8FE0-98F468F8E4AE}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.Desktop.Tests", "Facebook.Yoga.Desktop.Tests\Facebook.Yoga.Desktop.Tests.csproj", "{AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}" +EndProject +Global + GlobalSection(SharedMSBuildProjectFiles) = preSolution + ..\Facebook.Yoga\Facebook.Yoga.Shared.projitems*{3aace384-fdec-4d91-a3b2-eeb21b46c9ad}*SharedItemsImports = 4 + ..\tests\Facebook.Yoga\Facebook.Yoga.Shared.Tests.projitems*{4edc82d9-a201-4831-8fe0-98f468f8e4ae}*SharedItemsImports = 13 + ..\Facebook.Yoga\Facebook.Yoga.Shared.projitems*{91c42d32-291d-4b72-90b4-551663d60b8b}*SharedItemsImports = 13 + ..\tests\Facebook.Yoga\Facebook.Yoga.Shared.Tests.projitems*{ac23f444-5545-4196-8b9f-5c1f6b3e7fb3}*SharedItemsImports = 4 + EndGlobalSection + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|ARM = Debug|ARM + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|ARM = Release|ARM + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|ARM.ActiveCfg = Debug|ARM + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|ARM.Build.0 = Debug|ARM + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x64.ActiveCfg = Debug|x64 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x64.Build.0 = Debug|x64 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x86.ActiveCfg = Debug|Win32 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x86.Build.0 = Debug|Win32 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|Any CPU.ActiveCfg = Release|Win32 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|ARM.ActiveCfg = Release|ARM + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|ARM.Build.0 = Release|ARM + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x64.ActiveCfg = Release|x64 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x64.Build.0 = Release|x64 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x86.ActiveCfg = Release|Win32 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x86.Build.0 = Release|Win32 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|ARM.ActiveCfg = Debug|ARM + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|ARM.Build.0 = Debug|ARM + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|x64.ActiveCfg = Debug|x64 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|x64.Build.0 = Debug|x64 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|x86.ActiveCfg = Debug|x86 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|x86.Build.0 = Debug|x86 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|Any CPU.Build.0 = Release|Any CPU + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|ARM.ActiveCfg = Release|ARM + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|ARM.Build.0 = Release|ARM + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|x64.ActiveCfg = Release|x64 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|x64.Build.0 = Release|x64 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|x86.ActiveCfg = Release|x86 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|x86.Build.0 = Release|x86 + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|ARM.ActiveCfg = Debug|Any CPU + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|ARM.Build.0 = Debug|Any CPU + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|x64.ActiveCfg = Debug|x64 + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|x64.Build.0 = Debug|x64 + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|x86.ActiveCfg = Debug|x86 + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|x86.Build.0 = Debug|x86 + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|Any CPU.Build.0 = Release|Any CPU + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|ARM.ActiveCfg = Release|Any CPU + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|ARM.Build.0 = Release|Any CPU + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|x64.ActiveCfg = Release|x64 + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|x64.Build.0 = Release|x64 + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|x86.ActiveCfg = Release|x86 + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5} = {51A8E803-C084-431F-9130-F277481C2BB2} + {91C42D32-291D-4B72-90B4-551663D60B8B} = {39A2FFDA-C093-4FA6-8143-45B5019E7DAC} + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD} = {DCF7899B-A487-49C0-BCDE-DC088B6750C2} + {4EDC82D9-A201-4831-8FE0-98F468F8E4AE} = {39A2FFDA-C093-4FA6-8143-45B5019E7DAC} + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3} = {5289E508-8386-45A1-A12B-258A5899CD45} + EndGlobalSection +EndGlobal diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/LockScreenLogo.scale-200.png b/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/LockScreenLogo.scale-200.png new file mode 100644 index 0000000000000000000000000000000000000000..428cabb6d4d90c813a047d943ad15481b8d875a9 GIT binary patch literal 1430 zcmb7EZ%i9y7;lk(-O7~WTqGpB+>%Yy>;37q*E=oHzfdNBQekYEF|K!4sHMHqJ8X$y zq%n0hIG7&@E@4KLjb(w^?1Q=?DZ@C887xC3StiC0f+hvJ4;pYdydqUTkR{&bz4xBy zp5O2Jz3=n97p<)>&)ZYDM<$cy*()p#X+}~bH(Po(WURj}O>)6eZjz196#XU{nJvaD zqf8d-+q*$$Nw&gYaYB&E_D!dT{3bujN=}E}VytU5FVDvE;)pVi5SyC`^?FY(pg#Be z^2$WwUdd(o*#Edai#hqsV<$^T{xD1IGP||fGHz-P10gEp^@|<@Xk>XO2OO`e1Ijl}9>63UM)WX-KnO``H57sY+ZR{@ycl3zl*3{JLf$r?KuMMX zY!yX61;fE$P#x5$`9KSdk|YTu7>r?%6afjHK9LSVKH*TB!NLhl!0i{^ybnk*(oViZ zG=ShXt)#Z9>R)1?pr%v0)eP^2L$n`8)d=kM!s%#1ba4O4*fm-2N5gA@3U0K-Y) zhtgmv)uR)o0wpz6O~Bpa_R(z?p6T#%KGAM5fYKK=>t-o}b`cnYX(5coXh_H4G(@^E z7D6%9iJ^>Mi|C0o&u)0sY{PB1(QHF7D~eiilSzYGbS4zRG#H{oENQIWCy2C<;nKO? zQtoZ6>5*8<9N=h?57hB|Te=HsTX~TeT6sTUHg8oOc&5SaWBH&^oGQ~ltF~|f_iG$$ z3-DfGYo96iE*dz3BN3Mdg$NfxKs1hX5Q(D%GwtXI$-XoSRvhNhC}M-pCCnyW5#X;#l`jvz1NAb6wCq;~Z}7neX`P zgNK$tAG$i2 z_eJ~r@{Pz~aL|;!1t#-#N!+EoxpB))UhL;wiFWW=Y4|-L1 zRmSAx)&2ns()BfR1j^4kNWEKWw@lycor|f!WUL#gGbx*fZ?9FJzHwBGjlZRzU`IBN znzEX%71Y>Ar)u^WDik>r7w6{-lZ6>f)X;PNy^rs#yt8@2YK||jYlqec&eUHxUK!rqF&xg%VcFvy;QB=1lmoJdy-e&B}w2 z{ONePz3gyuO4Xm=)t|{`uR`(y=$7gs5zV^j*!K&=DNDbP^%eE}e0EVGd^O>^Q#AV} ozLfjf(kItd)cvut`o>FF9&U~~C&n|BvVo?>YmrmY(9R#*-w3(;g8%>k literal 0 HcmV?d00001 diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/SplashScreen.scale-200.png b/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/SplashScreen.scale-200.png new file mode 100644 index 0000000000000000000000000000000000000000..d1937479a72894c367fbe8c74fa7905b1cca46d0 GIT binary patch literal 7700 zcmeHM`&X0a9e)Be;w3BuWg5Hy;nHfWv>3`9Xix}51<}ze`qmT6_3RZe1uLsoUqo!u z4F^?zbn28TV7JdVVgJC+>HH;}!yCRl z&*$^~d@s-Q4Z)I`k*b)Wp1>GW7}AngG3M9Dn9mx2IeufiyzT&AWTmT87c=X*>9=6` z6(pr6G4_YwP8{9v0_^dd(y~h#3;2eP?39t7`Q;JpsL6Tv$Tz0=S;4ZYLQI}N?l z&^ryi)6hE&|A%Q<5IgI!b=;AL#ECQL9yO$7BwH67cOEL()fHuxv8*VYjP+iMZME?D z=)->_V~>mK?zXGjM|RXdYyYP&>y5;QuO1xfJ~{B@?2Z$ItLxuC^;E`g2jcUQ+ap7H z?SCBPXI%TCV^5cyW$qR6kb1Uu6>23t(9*Yd|;46xAR)1HkxX{n*n!{M(4>Rh){ ziVF{6qQM7`pEbJN^zlickGJM=BhT{wef9pA7Q{JjJRY52)$o7))8I(`v#-A^m<-ne zL^50zQpR>rF+PRvDYL6kO#kTetx;2z*KEy^u&xgdLQ?=xn*S5pQCt6mH#q>^ew?@D(%PMhSe0b``nQvxvA1IcttG zRr3Uy0?45h?)pr~Pg?@wUn-@(C6K?0;{S_7TZ3c>ZZ8Ixx&Q?bdkH_;RP7H)!#-s8 zqfqP0op8CF!vD;nT}obVk^EhDy#n%M$V>b(?(-;u>;~kMFzZD(gkq^tNreWu+)Wuv zHS>=`A$bX9?1V%69+7RJjLmeZH6$jC3=IraM);1pArS^``#l-2z@RK|AVcd?$GS0O zbUL*8l(VZu@Bs{}%v)sWxtx6Hyig5kZ5nG`1)?dV)^MpC&4{BEMQTasG#cnH#9ZEyM*5?VAL-L=d@2f$TS{ke7!+ zk~0y!FJ^%ETZgus+Ui3b=+Jp4MKMM4HWJ=t;3_)_;!lu3$+!p*f8;3irzS-W?NZW$ zQgS9>AwC^k(;ZqfE&KxTh9+_0b%zb%!o=nqPBV+xr-TRQVf%u!*DYdZmv_lSCcWY<$yyw zmF})K+$W;_+Nq=GoA4V-$tdL~M=Y?X;L2W~FmDo4S)W*0o( zweYq8B8DK{I+wa76n+d3oot&WI0v$9pGPv_b5zI-87e4Ng5Br zyE#Y_R>4a{Eg-MD)R`ZHcn|JYXM#y_2)BtqUN+U(<-KSjF#?eI49<5gPJqz|E~jg( zvLkRA6OT*`fowgMO4x}6W9o>r;e9h8 zSp@MhDV&XfOaUYp8E@;2Z9QSy&R%=?lK`Q|p%v~N>l&K1;{1cdRa^eC?VDS&uCCYn zSl8|SD_m+ZG4bS|hvuCN(COhL``IG{=UaY|T7mAy*5OWh3DPEqD?iAlwC7TBsh*vX zt;Yh5BoURWB@Hx^Y-p4g9Vlod^`#;PK-?oK0dJb-AZ+(Yx`*QIML_P6bR6%Xz~w$* zNR+r022CW9hryF^|MYm~tXjkk?dksEY3q*C0AclZQ@=EKr1vG{9D3%x|G2g3=f3!l zQ+<=!2k+M0D)CCg5MO?fhA$-z^#9vpo5_dCA6SCmG4`P%js*BWxp8;kxRrin(NE>i kPuugzhu7zGYQ!HY@uP1DG8Wf;Y3aNw?Oy8W|Ne>eA1lu8Pyhe` literal 0 HcmV?d00001 diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/Square150x150Logo.scale-200.png b/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/Square150x150Logo.scale-200.png new file mode 100644 index 0000000000000000000000000000000000000000..eb507ab9ce4c7a3f916b4b5f0edd7f2dea44cd7a GIT binary patch literal 2937 zcmeHIdrVVT7{4vO8*PDUl{$&C>9`_&Og99vn#C3fww*A@+Fh$7x6#F_6P(wJMMKe&B;?6m z-^q9St$8myD_RgIz%VRYJtZR#!#FbZMZN?(pROn`h96F0UX}{m{zd;C^w+`v@huEY9@3tK>r6K*ro!I=rq0aH z*rlTA`;Q)(Qi%P{XU}dNWJ^eNrr#TJ*Yd!%{pX57w#o`K!6z*|nc8bfpwuEJfupsU z3H2&Z{+-tNqjx_V*4Qzsy>eAW!c*iLMUaxBmukz7c+5KJqWRBX*I z4K`HeENWM3X0>_Tp1;<*SVoe}3OK>?~pG%?b z!H>oMWt;V|P8jxZN~L8at98QPn1IMxW(?Mkm%4cl73qmdmB3^q>B&w_f(e)Ol&6k{ ziNAX8ruo?>zJB=3prW+`P>Lfz6xStfA;{v@x|>VWf$&CA$+Bnz9n07WpMZoAN*6B! z$R_uj_s^f%=4rV0c~i4zXv2>^+as#$CY-M(V;q`9S)v?8?|I0RLLLkYCpkhxD39Ta z-8?CpqfML*6FFs0!fc~(nMo2GHegi?^H>F_q`y$LyVV7dl$B$|rf-#DVIznF*8-t()Vt<1(MX5Wm=1cL-e#h*Imlg)@vkRg$9hvA=O8k;#5~7 zrF_HM&96HXOqq}>-!KsLX+4i*EcRHA_*vVXIW8k%RXT<oY7itU%ziT;^cA)&y z7Y&x8J&Tuj^rZPqI`{fF)R`=kh;N|@ac$uy6z)r~qSPk`PCP1Y`@p8NK+8Jm+S}sN ot-t&w0Zj`!7aI?q>sfv5pMbnEJp(9gTT1%=;!lvI6;>1s;*b3=DjSL74G){)!Z!;0;d~$B>G+w-**NGAQsI*l_T_J^x|u!rqnd zZ{F=Ju5UJx$Tql^u;ySy^G3F0-eXcdrb9s>*qHyW6Z6{k%Z5LIeq``;^>bP0l+dJ` zSFEgLr(jc*l4j+STAW;zSx}OhpQixgCnn{Wme?vODOBX<*p2gC8p#jrRpW;=jvA^7U&!58R+Nc>cdnQmjtDz;a6Q8Qdy9yACy|0Us{x$3RJEP z(+soz*Q}aqZU2K(rGI}YQDOTo*Y34=-My9$(DMpF9 zX2~Xrx|V51DY}M6hDk<-$rh#t7UnQ>u;~X%n_9XV8o3!5xf&X}nm8F5Te!FwI$By< zxVl-oxWV*#<`tJD<|U`X?9K$*4b^LiSFe?GQEFmIeo;t%evYk@BPcW#0y6ST@{2R_ z3lyB46^slFO%yc3GxJjN%ZoKZ(FF0eOKMSOS!#+~QGTuhIGn9AvA7}CJk`=5&Dc=a zJk8u(H_^l-RoBwQ&|Ejk!rUyy)XdPr%)~+osy_uO{J_y_1r!1LqX6a{D+`lk%VY~9 zOWiaBBXeCt!&DR9BujG>-4siseTt)-h87?>KtS@71Iy9fOa8}Kk(xc1mgQL&f*0dv_6 z^)Ckdr1<`}$d)}m#J)lJQHPhqT$aUeFCFW9dt+M7jYYYaCQmh)xco}&^-#HzKn_(%lJ4UPNv ze=vPw_vEC;JGCdpCt}~QD{Lw{zwvc_!s8wPbHteITWloU0-lNsQTUYDbT*igE`0g{ln63f)JiGRA1q`gHyR|TJL;Y z$rNt%LE_Ukf6*P68tawi*^l*2ZOW_uFWgi3;B(V9S&7?WT(hDb7~j21in36e8#{wd zu39AfSIA{Ymac;H+_P5kDFw96t}08Es(8oe%W9-?wAXQ8`2&+X*(dykCOBHIt4Psc z2sbejY0?&xa*Hhi4nx?5rLglwJ%TN8m+1L>)ScQl`@ zHWxgz_t`_mC*G;nukJNHnbp4gl=ADy7I!Ds>*pSe>eL_l#{FC7Mx(9F4BdS!5)2Y? N>rUwEDY+q+l>lUub7%kn literal 0 HcmV?d00001 diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/Square44x44Logo.targetsize-24_altform-unplated.png b/csharp/Windows/Facebook.Yoga.Universal.Tests/Assets/Square44x44Logo.targetsize-24_altform-unplated.png new file mode 100644 index 0000000000000000000000000000000000000000..69053b72810086fc7dc13a2cebd28f3d6573c889 GIT binary patch literal 1255 zcmaJ>Yitx%6rSz_yITvy#Rr6hVVaOuxjXNjow3_?ySt_9wrkxq0^x_u<4(J_^KfSB zE+hu4xB;p`Yc$b>WTQWX7(kL@qJONR3Qc^3pBNIfnkX@f(LbUj_0G17{n0SVopaB* z=R2=^&OJU-+|wT27R4~EJwKQ&A^M2FS~sBo_m$M&h_tw+J^k3ZZ?@k=OlT}UoW`&V zC)@7GVZ=x5!Tm0VZM@{Kmdn;@4GGD7Ha$96`0eYR0Sw1pp1--g+&yz@?#l;>4~(~e zzx8VHCrs?y_k`_ggq!^N60MY>NA=8tqz;rvB z7P8P)owDtfEfe=G%8E7Rr3e)1N(zQOJbc%%>Bbug#Z}87tFlefaf&nyKd*+i>y_aD zVXUj|jvlfhS%R)L<){#;cQnDMcK3GVE23zmC!O+G*_0=MWJli2({wq;!@Bf-VR^<~RsMjuwED6cQSrppywMNvz_v zHT7HRQzSuo*v)XHB&UjMk`aMUF#@1z$N@zZIG~A)s%TKuRhS@16e8)j&YD(gico+0 z+q;8-nBJ-_s}s<}p{b<^hv@A&YZnirF}m%KVD&rY`e#RagP%<&WjL&Y7Y5=K<%F9bLDN9uHlT#IIc$-S~sJH+kRpp67jj z&+~iU=XtNAY)f%$RC1I=B8jz>7_H)t1*a@hT+<2zgW?v(TZ{FQf$7wrMM3J&mFgst z!OrN1RD>w6^ORKc63Md@!5Mam`-l;h+bu?2Wv$`P%wT*o5;Iz~_mQtLx!tecbL@48 z?^ayTNbe7U4@Q=! zy-ttdSTBAt*b6 zA(#@v7>t5cG)_UJ9b+IALv0vJtCfhF2>DqHkLe94hUJlF1T&$i3D*-Qwa%a?F{RFo zm`zv+YjN`e<)+zCY^NA|1*?84R%7t8l)!l_Ij%m`1!c9I!11-52QV0xs}5vuce)wQ z$L9pg^iS4C*6VC!8MBvj0n7KSajwCEC0G)%=b;c`CkTkbaTX$Rlz?n%Ld7Ums9J@q z!4*8S>i(9?su49}9-a^#jT)y(T8)vA9l;0)MOhrOkpvDgBu3j9mbBBX3WP<9aIke& zwNgkW_Gj?ZuMu-_u>vIug?xlH+w$#1pPObZj8M;Q6!IC zU;_R_yMA4`l9hdJchv6--~M^OJQpV-4qq^8H!hx*XMGlpGRmR+q5O3({+0e)*}a$M z?2eJ9S$r-v>XRdtRNTpv-I;y4-^|M^Dt1lZ8_U1i@0&`z8GpZjX>ltu(p7Qm*mqxS zO6=M^6?=SJi+ZAduY6$a@xG?98aiz%u~v7wCb3a=wP0I{sY`KGdm`)d40lF4TUaP+R#{F-;!s}m@E_Jd^_e=0ZmFxPJAaV4WP>C!aA|bMhk;=UaNuKFf3Ej! zSs?pSj8Pw;0Z{*Z_^U&SP>}Ak6aH{p$C)3+QTAb2{G9^DP0r~%EF}=d1)&V zDGOYG(2*IFZF<<2GdcWu+xphJ*uJ#roS|N5A#N(=<_-(7d$fj1pwk;SJV@n+<G;bCG?gZ+ z3BcR>z^&3K#4**`MYRAA4v|0V+s#Mc0EiNE%%+#OzIG*;LIE2$;AyBIzGyPHUixfj z$GHT6{>fDU8=7cfPkSivKgxlSI-~_%iJ*j+ z!>wNwX6ArdnoN;e^~&n|_|UX)L@Z%INsaVm(h(M!0DnO#Fgjk&3=LhfkgS?%uCuUV ze=((dMhZUM=kytmjbCjhSK;5&$5h-nMec5NeW-h7{RvxS#j|9 zNy1c~$O?VYFfpOP-gV0E6`#bMec z(HJ0AX}rl2+I+wU%?wh|ioKI-9j|AR@6m5IPUrvfob|-MiCr9f==efd*4#TqYc1o6 zRUv!vy7M=WKw|Zvc6Um!ZS0-1wzN0#4hCAvtv+lK)^yK23;b<%wB{RadMDmrw$9Os z9Rx9D_i`3{Rkrv0VXl9P6wMUeK8xG|VE5ce<)UE(;;aKK@wcf(zGdEv+Y{%uAL2a4U{ZlLV7!g2`gAM9bAgh9J zR=yN(6VVEZwcE)+n?mPVWsgea|4FCYFJ;4|j}WFR?| z`eaK2W;Yw~1&bV!BGczmSFG3HHnns%IGIf($(>yHi^mrVw(<`HeJvhmS9jWUdY(&< zmM^Z64*EwNUYw8S-XqZ3uO%^Qqyqgl5-%pAKYaP8fBfxdg}=);MZq7t z^!R`Bg-y UcXQbQB(_cN%ozFFI`;?ZAE!g|jsO4v literal 0 HcmV?d00001 diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/Facebook.Yoga.Universal.Tests.csproj b/csharp/Windows/Facebook.Yoga.Universal.Tests/Facebook.Yoga.Universal.Tests.csproj new file mode 100644 index 00000000..d83cf0d9 --- /dev/null +++ b/csharp/Windows/Facebook.Yoga.Universal.Tests/Facebook.Yoga.Universal.Tests.csproj @@ -0,0 +1,143 @@ + + + + + Debug + x86 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73} + AppContainerExe + Properties + Facebook.Yoga.Universal.Tests + Facebook.Yoga.Universal.Tests + en-US + UAP + 10.0.10586.0 + 10.0.10240.0 + 14 + 512 + {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Facebook.Yoga.Universal.Tests_TemporaryKey.pfx + 14.0 + + + true + bin\x86\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + x86 + false + prompt + true + + + bin\x86\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + x86 + false + prompt + true + true + + + true + bin\ARM\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + ARM + false + prompt + true + + + bin\ARM\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + ARM + false + prompt + true + true + + + true + bin\x64\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + x64 + false + prompt + true + + + bin\x64\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + x64 + false + prompt + true + true + + + + + + + + + + + UnitTestApp.xaml + + + + + + MSBuild:Compile + Designer + + + + + Designer + + + + + + + + + + + + + + + + {3aace384-fdec-4d91-a3b2-eeb21b46c9ad} + Facebook.Yoga + + + + 14.0 + + + + + + This project references a native interop target that is missing. The missing build target is {0}. + + + + \ No newline at end of file diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/Package.appxmanifest b/csharp/Windows/Facebook.Yoga.Universal.Tests/Package.appxmanifest new file mode 100644 index 00000000..d4ec072f --- /dev/null +++ b/csharp/Windows/Facebook.Yoga.Universal.Tests/Package.appxmanifest @@ -0,0 +1,45 @@ + + + + + + + + + Facebook.Yoga.Universal.Tests + anforste + Assets\StoreLogo.png + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/Properties/AssemblyInfo.cs b/csharp/Windows/Facebook.Yoga.Universal.Tests/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..2f35c3d3 --- /dev/null +++ b/csharp/Windows/Facebook.Yoga.Universal.Tests/Properties/AssemblyInfo.cs @@ -0,0 +1,30 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Facebook.Yoga.Universal.Tests")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("BlueJeans")] +[assembly: AssemblyProduct("Facebook.Yoga.Universal.Tests")] +[assembly: AssemblyCopyright("Copyright © BlueJeans 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] +[assembly: AssemblyMetadata("TargetPlatform","UAP")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: ComVisible(false)] \ No newline at end of file diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/Properties/UnitTestApp.rd.xml b/csharp/Windows/Facebook.Yoga.Universal.Tests/Properties/UnitTestApp.rd.xml new file mode 100644 index 00000000..9263e4e5 --- /dev/null +++ b/csharp/Windows/Facebook.Yoga.Universal.Tests/Properties/UnitTestApp.rd.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/UnitTestApp.xaml b/csharp/Windows/Facebook.Yoga.Universal.Tests/UnitTestApp.xaml new file mode 100644 index 00000000..d8e15f82 --- /dev/null +++ b/csharp/Windows/Facebook.Yoga.Universal.Tests/UnitTestApp.xaml @@ -0,0 +1,8 @@ + + + diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/UnitTestApp.xaml.cs b/csharp/Windows/Facebook.Yoga.Universal.Tests/UnitTestApp.xaml.cs new file mode 100644 index 00000000..b9564ac8 --- /dev/null +++ b/csharp/Windows/Facebook.Yoga.Universal.Tests/UnitTestApp.xaml.cs @@ -0,0 +1,102 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Runtime.InteropServices.WindowsRuntime; +using Windows.ApplicationModel; +using Windows.ApplicationModel.Activation; +using Windows.Foundation; +using Windows.Foundation.Collections; +using Windows.UI.Xaml; +using Windows.UI.Xaml.Controls; +using Windows.UI.Xaml.Controls.Primitives; +using Windows.UI.Xaml.Data; +using Windows.UI.Xaml.Input; +using Windows.UI.Xaml.Media; +using Windows.UI.Xaml.Navigation; + +namespace Facebook.Yoga.Universal.Tests +{ + /// + /// Provides application-specific behavior to supplement the default Application class. + /// + sealed partial class App : Application + { + /// + /// Initializes the singleton application object. This is the first line of authored code + /// executed, and as such is the logical equivalent of main() or WinMain(). + /// + public App() + { + this.InitializeComponent(); + this.Suspending += OnSuspending; + } + + /// + /// Invoked when the application is launched normally by the end user. Other entry points + /// will be used such as when the application is launched to open a specific file. + /// + /// Details about the launch request and process. + protected override void OnLaunched(LaunchActivatedEventArgs e) + { + +#if DEBUG + if (System.Diagnostics.Debugger.IsAttached) + { + this.DebugSettings.EnableFrameRateCounter = true; + } +#endif + + Frame rootFrame = Window.Current.Content as Frame; + + // Do not repeat app initialization when the Window already has content, + // just ensure that the window is active + if (rootFrame == null) + { + // Create a Frame to act as the navigation context and navigate to the first page + rootFrame = new Frame(); + + rootFrame.NavigationFailed += OnNavigationFailed; + + if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) + { + //TODO: Load state from previously suspended application + } + + // Place the frame in the current Window + Window.Current.Content = rootFrame; + } + + Microsoft.VisualStudio.TestPlatform.TestExecutor.UnitTestClient.CreateDefaultUI(); + + // Ensure the current window is active + Window.Current.Activate(); + + Microsoft.VisualStudio.TestPlatform.TestExecutor.UnitTestClient.Run(e.Arguments); + } + + /// + /// Invoked when Navigation to a certain page fails + /// + /// The Frame which failed navigation + /// Details about the navigation failure + void OnNavigationFailed(object sender, NavigationFailedEventArgs e) + { + throw new Exception("Failed to load Page " + e.SourcePageType.FullName); + } + + /// + /// Invoked when application execution is being suspended. Application state is saved + /// without knowing whether the application will be terminated or resumed with the contents + /// of memory still intact. + /// + /// The source of the suspend request. + /// Details about the suspend request. + private void OnSuspending(object sender, SuspendingEventArgs e) + { + var deferral = e.SuspendingOperation.GetDeferral(); + //TODO: Save application state and stop any background activity + deferral.Complete(); + } + } +} diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/YogaNodeTest.cs b/csharp/Windows/Facebook.Yoga.Universal.Tests/YogaNodeTest.cs new file mode 100644 index 00000000..1030fe10 --- /dev/null +++ b/csharp/Windows/Facebook.Yoga.Universal.Tests/YogaNodeTest.cs @@ -0,0 +1,417 @@ +using System; +using Microsoft.VisualStudio.TestPlatform.UnitTestFramework; +using Facebook.Yoga; + +namespace Facebook.Yoga.Universal.Tests +{ + [TestClass] + public class YogaNodeTest + { + [TestMethod] + public void TestAddChildGetParent() + { + YogaNode parent = new YogaNode(); + YogaNode child = new YogaNode(); + + Assert.IsNull(child.Parent); + Assert.AreEqual(0, parent.Count); + + parent.Insert(0, child); + + Assert.AreEqual(1, parent.Count); + Assert.AreEqual(child, parent[0]); + Assert.AreEqual(parent, child.Parent); + + parent.RemoveAt(0); + + Assert.IsNull(child.Parent); + Assert.AreEqual(0, parent.Count); + } + + [TestMethod] + public void TestChildren() + { + YogaNode parent = new YogaNode(); + foreach (YogaNode node in parent) + { + Assert.Fail(node.ToString()); + } + + YogaNode child0 = new YogaNode(); + Assert.AreEqual(-1, parent.IndexOf(child0)); + parent.Insert(0, child0); + foreach (YogaNode node in parent) + { + Assert.AreEqual(0, parent.IndexOf(node)); + } + + YogaNode child1 = new YogaNode(); + parent.Insert(1, child1); + int index = 0; + foreach (YogaNode node in parent) + { + Assert.AreEqual(index++, parent.IndexOf(node)); + } + + parent.RemoveAt(0); + Assert.AreEqual(-1, parent.IndexOf(child0)); + Assert.AreEqual(0, parent.IndexOf(child1)); + + parent.Clear(); + Assert.AreEqual(0, parent.Count); + + parent.Clear(); + Assert.AreEqual(0, parent.Count); + } + + [TestMethod] + public void TestRemoveAtFromEmpty() + { + YogaNode parent = new YogaNode(); + + try + { + parent.RemoveAt(0); + } + catch (System.NullReferenceException) + { + return; + } + + Assert.Fail("Excepted exception of type 'System.NullReferenceException'."); + } + + [TestMethod] + public void TestRemoveAtOutOfRange() + { + YogaNode parent = new YogaNode(); + YogaNode child = new YogaNode(); + parent.Insert(0, child); + + try + { + parent.RemoveAt(1); + } + catch (System.ArgumentOutOfRangeException) + { + return; + } + + Assert.Fail("Excepted exception of type 'System.ArgumentOutOfRangeException'."); + } + + [TestMethod] + public void TestCannotAddChildToMultipleParents() + { + YogaNode parent1 = new YogaNode(); + YogaNode parent2 = new YogaNode(); + YogaNode child = new YogaNode(); + + parent1.Insert(0, child); + + try + { + parent2.Insert(0, child); + } + catch (System.InvalidOperationException) + { + return; + } + + Assert.Fail("Excepted exception of type 'System.InvalidOperationException'."); + } + + [TestMethod] + public void TestReset() + { + int instanceCount = YogaNode.GetInstanceCount(); + YogaNode node = new YogaNode(); + Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); + node.Reset(); + Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); + } + + [TestMethod] + public void TestResetParent() + { + YogaNode parent = new YogaNode(); + YogaNode child = new YogaNode(); + parent.Insert(0, child); + + try + { + parent.Reset(); + } + catch (System.InvalidOperationException) + { + return; + } + + Assert.Fail("Excepted exception of type 'System.InvalidOperationException'."); + } + + [TestMethod] + public void TestResetChild() + { + YogaNode parent = new YogaNode(); + YogaNode child = new YogaNode(); + parent.Insert(0, child); + + try + { + child.Reset(); + } + catch (System.InvalidOperationException) + { + return; + } + + Assert.Fail("Excepted exception of type 'System.InvalidOperationException'."); + } + + [TestMethod] + public void TestClear() + { + int instanceCount = YogaNode.GetInstanceCount(); + YogaNode parent = new YogaNode(); + Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); + YogaNode child = new YogaNode(); + Assert.AreEqual(instanceCount + 2, YogaNode.GetInstanceCount()); + parent.Insert(0, child); + Assert.AreEqual(1, parent.Count); + Assert.AreEqual(parent, child.Parent); + parent.Clear(); + Assert.AreEqual(0, parent.Count); + Assert.IsNull(child.Parent); + Assert.AreEqual(instanceCount + 2, YogaNode.GetInstanceCount()); + } + + [TestMethod] + public void TestMeasureFunc() + { + YogaNode node = new YogaNode(); + node.SetMeasureFunction((_, width, widthMode, height, heightMode) => { + return MeasureOutput.Make(100, 150); + }); + node.CalculateLayout(); + Assert.AreEqual(100, node.LayoutWidth); + Assert.AreEqual(150, node.LayoutHeight); + } + + [TestMethod] + public void TestMeasureFuncWithFloat() + { + YogaNode node = new YogaNode(); + node.SetMeasureFunction((_, width, widthMode, height, heightMode) => { + return MeasureOutput.Make(123.4f, 81.7f); + }); + node.CalculateLayout(); + Assert.AreEqual(123, node.LayoutWidth); + Assert.AreEqual(81, node.LayoutHeight); + } + + [TestMethod] + public void TestChildWithMeasureFunc() + { + YogaNode node = new YogaNode(); + + node.SetMeasureFunction((_, width, widthMode, height, heightMode) => { + return MeasureOutput.Make(100, 150); + }); + YogaNode child = new YogaNode(); + + try + { + node.Insert(0, child); + } + catch (System.InvalidOperationException) + { + return; + } + + Assert.Fail("Excepted exception of type 'System.InvalidOperationException'."); + } + + [TestMethod] + public void TestMeasureFuncWithChild() + { + YogaNode node = new YogaNode(); + YogaNode child = new YogaNode(); + node.Insert(0, child); + + try + { + node.SetMeasureFunction((_, width, widthMode, height, heightMode) => { + return MeasureOutput.Make(100, 150); + }); + } + catch (System.InvalidOperationException) + { + return; + } + + Assert.Fail("Excepted exception of type 'System.InvalidOperationException'."); + } + + [TestMethod] + public void TestPrint() + { + YogaNode parent = new YogaNode(); + parent.Width = 100; + parent.Height = 120; + YogaNode child0 = new YogaNode(); + child0.Width = 30; + child0.Height = 40; + YogaNode child1 = new YogaNode(); + child1.Width = 35; + child1.Height = 45; + parent.Insert(0, child0); + parent.Insert(0, child1); + parent.CalculateLayout(); + Assert.AreEqual(parent.Print(), "{layout: {width: 100, height: 120, top: 0, left: 0}, flexDirection: 'column', alignItems: 'stretch', flexGrow: 0, flexShrink: 0, overflow: 'visible', width: 100, height: 120, children: [\n {layout: {width: 35, height: 45, top: 0, left: 0}, flexDirection: 'column', alignItems: 'stretch', flexGrow: 0, flexShrink: 0, overflow: 'visible', width: 35, height: 45, },\n {layout: {width: 30, height: 40, top: 45, left: 0}, flexDirection: 'column', alignItems: 'stretch', flexGrow: 0, flexShrink: 0, overflow: 'visible', width: 30, height: 40, },\n]},\n"); + } + + [TestMethod] + public void TestCopyStyle() + { + YogaNode node0 = new YogaNode(); + Assert.IsTrue(YogaConstants.IsUndefined(node0.MaxHeight)); + + YogaNode node1 = new YogaNode(); + node1.MaxHeight = 100; + + node0.CopyStyle(node1); + Assert.AreEqual(100, node0.MaxHeight); + } + +#if !UNITY_EDITOR + private void ForceGC() + { + GC.Collect(GC.MaxGeneration); + GC.WaitForPendingFinalizers(); + } + + [TestMethod] + public void TestDestructor() + { + ForceGC(); + int instanceCount = YogaNode.GetInstanceCount(); + TestDestructorForGC(instanceCount); + ForceGC(); + Assert.AreEqual(instanceCount, YogaNode.GetInstanceCount()); + } + + private void TestDestructorForGC(int instanceCount) + { + YogaNode node = new YogaNode(); + Assert.IsNotNull(node); + Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); + node = null; + } + + [TestMethod] + public void TestDestructorWithChildren() + { + ForceGC(); + int instanceCount = YogaNode.GetInstanceCount(); + TestDestructorWithChildrenForGC1(instanceCount); + ForceGC(); + Assert.AreEqual(instanceCount, YogaNode.GetInstanceCount()); + } + + private void TestDestructorWithChildrenForGC1(int instanceCount) + { + YogaNode node = new YogaNode(); + Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); + + TestDestructorWithChildrenForGC2(node, instanceCount + 1); + ForceGC(); + Assert.AreEqual(instanceCount + 2, YogaNode.GetInstanceCount()); + + TestDestructorWithChildrenForGC2(node, instanceCount + 2); + ForceGC(); + Assert.AreEqual(instanceCount + 3, YogaNode.GetInstanceCount()); + + node = null; + } + + private void TestDestructorWithChildrenForGC2(YogaNode parent, int instanceCount) + { + YogaNode child = new YogaNode(); + Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); + + parent.Insert(0, child); + child = null; + } + + [TestMethod] + public void TestParentDestructor() + { + ForceGC(); + int instanceCount = YogaNode.GetInstanceCount(); + YogaNode child = new YogaNode(); + Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); + + TestParentDestructorForGC(child, instanceCount + 1); + ForceGC(); + + Assert.IsNull(child.Parent); + Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); + } + + private void TestParentDestructorForGC(YogaNode child, int instanceCount) + { + YogaNode parent = new YogaNode(); + Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); + parent.Insert(0, child); + } + + [TestMethod] + public void TestClearWithChildDestructor() + { + ForceGC(); + int instanceCount = YogaNode.GetInstanceCount(); + YogaNode node = new YogaNode(); + Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); + TestClearWithChildDestructorForGC(node, instanceCount + 1); + ForceGC(); + Assert.AreEqual(instanceCount + 2, YogaNode.GetInstanceCount()); + node.Clear(); + Assert.AreEqual(0, node.Count); + ForceGC(); + Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); + } + + private void TestClearWithChildDestructorForGC(YogaNode parent, int instanceCount) + { + YogaNode child = new YogaNode(); + Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); + parent.Insert(0, child); + } + + [TestMethod] + public void TestMeasureFuncWithDestructor() + { + ForceGC(); + int instanceCount = YogaNode.GetInstanceCount(); + YogaNode parent = new YogaNode(); + Assert.AreEqual(instanceCount + 1, YogaNode.GetInstanceCount()); + TestMeasureFuncWithDestructorForGC(parent); + ForceGC(); + Assert.AreEqual(instanceCount + 2, YogaNode.GetInstanceCount()); + parent.CalculateLayout(); + Assert.AreEqual(120, (int)parent.LayoutWidth); + Assert.AreEqual(130, (int)parent.LayoutHeight); + } + + private void TestMeasureFuncWithDestructorForGC(YogaNode parent) + { + YogaNode child = new YogaNode(); + parent.Insert(0, child); + child.SetMeasureFunction((_, width, widthMode, height, heightMode) => { + return MeasureOutput.Make(120, 130); + }); + } +#endif + } +} \ No newline at end of file diff --git a/csharp/Windows/Facebook.Yoga.Universal.Tests/project.json b/csharp/Windows/Facebook.Yoga.Universal.Tests/project.json new file mode 100644 index 00000000..32d92747 --- /dev/null +++ b/csharp/Windows/Facebook.Yoga.Universal.Tests/project.json @@ -0,0 +1,16 @@ +{ + "dependencies": { + "Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2" + }, + "frameworks": { + "uap10.0": {} + }, + "runtimes": { + "win10-arm": {}, + "win10-arm-aot": {}, + "win10-x86": {}, + "win10-x86-aot": {}, + "win10-x64": {}, + "win10-x64-aot": {} + } +} \ No newline at end of file diff --git a/csharp/Windows/Facebook.Yoga.Universal.sln b/csharp/Windows/Facebook.Yoga.Universal.sln new file mode 100644 index 00000000..6fadb752 --- /dev/null +++ b/csharp/Windows/Facebook.Yoga.Universal.sln @@ -0,0 +1,105 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{5289E508-8386-45A1-A12B-258A5899CD45}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Native", "Native", "{51A8E803-C084-431F-9130-F277481C2BB2}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NETStandard", "NETStandard", "{DCF7899B-A487-49C0-BCDE-DC088B6750C2}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "yoga", "..\Yoga\Yoga.vcxproj", "{0446C86B-F47B-4C46-B673-C7AE0CFF35D5}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{39A2FFDA-C093-4FA6-8143-45B5019E7DAC}" +EndProject +Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared", "..\Facebook.Yoga\Facebook.Yoga.Shared.shproj", "{91C42D32-291D-4B72-90B4-551663D60B8B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga", "Facebook.Yoga\Facebook.Yoga.csproj", "{3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}" + ProjectSection(ProjectDependencies) = postProject + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5} = {0446C86B-F47B-4C46-B673-C7AE0CFF35D5} + EndProjectSection +EndProject +Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared.Tests", "..\tests\Facebook.Yoga\Facebook.Yoga.Shared.Tests.shproj", "{4EDC82D9-A201-4831-8FE0-98F468F8E4AE}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.Universal.Tests", "Facebook.Yoga.Universal.Tests\Facebook.Yoga.Universal.Tests.csproj", "{0C76D2FE-6767-44FE-B03D-21B2076BAA73}" +EndProject +Global + GlobalSection(SharedMSBuildProjectFiles) = preSolution + ..\Facebook.Yoga\Facebook.Yoga.Shared.projitems*{3aace384-fdec-4d91-a3b2-eeb21b46c9ad}*SharedItemsImports = 4 + ..\tests\Facebook.Yoga\Facebook.Yoga.Shared.Tests.projitems*{4edc82d9-a201-4831-8fe0-98f468f8e4ae}*SharedItemsImports = 13 + ..\Facebook.Yoga\Facebook.Yoga.Shared.projitems*{91c42d32-291d-4b72-90b4-551663d60b8b}*SharedItemsImports = 13 + EndGlobalSection + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|ARM = Debug|ARM + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|ARM = Release|ARM + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|ARM.ActiveCfg = Debug|ARM + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|ARM.Build.0 = Debug|ARM + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x64.ActiveCfg = Debug|x64 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x64.Build.0 = Debug|x64 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x86.ActiveCfg = Debug|Win32 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x86.Build.0 = Debug|Win32 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|Any CPU.ActiveCfg = Release|Win32 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|ARM.ActiveCfg = Release|ARM + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|ARM.Build.0 = Release|ARM + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x64.ActiveCfg = Release|x64 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x64.Build.0 = Release|x64 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x86.ActiveCfg = Release|Win32 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x86.Build.0 = Release|Win32 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|ARM.ActiveCfg = Debug|ARM + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|ARM.Build.0 = Debug|ARM + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|x64.ActiveCfg = Debug|x64 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|x64.Build.0 = Debug|x64 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|x86.ActiveCfg = Debug|x86 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|x86.Build.0 = Debug|x86 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|Any CPU.Build.0 = Release|Any CPU + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|ARM.ActiveCfg = Release|ARM + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|ARM.Build.0 = Release|ARM + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|x64.ActiveCfg = Release|x64 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|x64.Build.0 = Release|x64 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|x86.ActiveCfg = Release|x86 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|x86.Build.0 = Release|x86 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|Any CPU.ActiveCfg = Debug|x86 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|ARM.ActiveCfg = Debug|ARM + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|ARM.Build.0 = Debug|ARM + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|ARM.Deploy.0 = Debug|ARM + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x64.ActiveCfg = Debug|x64 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x64.Build.0 = Debug|x64 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x64.Deploy.0 = Debug|x64 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x86.ActiveCfg = Debug|x86 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x86.Build.0 = Debug|x86 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x86.Deploy.0 = Debug|x86 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|Any CPU.ActiveCfg = Release|x86 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|ARM.ActiveCfg = Release|ARM + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|ARM.Build.0 = Release|ARM + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|ARM.Deploy.0 = Release|ARM + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|x64.ActiveCfg = Release|x64 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|x64.Build.0 = Release|x64 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|x64.Deploy.0 = Release|x64 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|x86.ActiveCfg = Release|x86 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|x86.Build.0 = Release|x86 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|x86.Deploy.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5} = {51A8E803-C084-431F-9130-F277481C2BB2} + {91C42D32-291D-4B72-90B4-551663D60B8B} = {39A2FFDA-C093-4FA6-8143-45B5019E7DAC} + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD} = {DCF7899B-A487-49C0-BCDE-DC088B6750C2} + {4EDC82D9-A201-4831-8FE0-98F468F8E4AE} = {39A2FFDA-C093-4FA6-8143-45B5019E7DAC} + {0C76D2FE-6767-44FE-B03D-21B2076BAA73} = {5289E508-8386-45A1-A12B-258A5899CD45} + EndGlobalSection +EndGlobal diff --git a/csharp/Windows/Facebook.Yoga.sln b/csharp/Windows/Facebook.Yoga.sln new file mode 100644 index 00000000..5326a92a --- /dev/null +++ b/csharp/Windows/Facebook.Yoga.sln @@ -0,0 +1,125 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{5289E508-8386-45A1-A12B-258A5899CD45}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Native", "Native", "{51A8E803-C084-431F-9130-F277481C2BB2}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NETStandard", "NETStandard", "{DCF7899B-A487-49C0-BCDE-DC088B6750C2}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "yoga", "..\Yoga\Yoga.vcxproj", "{0446C86B-F47B-4C46-B673-C7AE0CFF35D5}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{39A2FFDA-C093-4FA6-8143-45B5019E7DAC}" +EndProject +Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared", "..\Facebook.Yoga\Facebook.Yoga.Shared.shproj", "{91C42D32-291D-4B72-90B4-551663D60B8B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga", "Facebook.Yoga\Facebook.Yoga.csproj", "{3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}" + ProjectSection(ProjectDependencies) = postProject + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5} = {0446C86B-F47B-4C46-B673-C7AE0CFF35D5} + EndProjectSection +EndProject +Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Facebook.Yoga.Shared.Tests", "..\tests\Facebook.Yoga\Facebook.Yoga.Shared.Tests.shproj", "{4EDC82D9-A201-4831-8FE0-98F468F8E4AE}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.Desktop.Tests", "Facebook.Yoga.Desktop.Tests\Facebook.Yoga.Desktop.Tests.csproj", "{AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Facebook.Yoga.Universal.Tests", "Facebook.Yoga.Universal.Tests\Facebook.Yoga.Universal.Tests.csproj", "{0C76D2FE-6767-44FE-B03D-21B2076BAA73}" +EndProject +Global + GlobalSection(SharedMSBuildProjectFiles) = preSolution + ..\Facebook.Yoga\Facebook.Yoga.Shared.projitems*{3aace384-fdec-4d91-a3b2-eeb21b46c9ad}*SharedItemsImports = 4 + ..\tests\Facebook.Yoga\Facebook.Yoga.Shared.Tests.projitems*{4edc82d9-a201-4831-8fe0-98f468f8e4ae}*SharedItemsImports = 13 + ..\Facebook.Yoga\Facebook.Yoga.Shared.projitems*{91c42d32-291d-4b72-90b4-551663d60b8b}*SharedItemsImports = 13 + ..\tests\Facebook.Yoga\Facebook.Yoga.Shared.Tests.projitems*{ac23f444-5545-4196-8b9f-5c1f6b3e7fb3}*SharedItemsImports = 4 + EndGlobalSection + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|ARM = Debug|ARM + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|ARM = Release|ARM + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|Any CPU.ActiveCfg = Debug|Win32 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|ARM.ActiveCfg = Debug|ARM + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|ARM.Build.0 = Debug|ARM + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x64.ActiveCfg = Debug|x64 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x64.Build.0 = Debug|x64 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x86.ActiveCfg = Debug|Win32 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Debug|x86.Build.0 = Debug|Win32 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|Any CPU.ActiveCfg = Release|Win32 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|ARM.ActiveCfg = Release|ARM + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|ARM.Build.0 = Release|ARM + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x64.ActiveCfg = Release|x64 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x64.Build.0 = Release|x64 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x86.ActiveCfg = Release|Win32 + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5}.Release|x86.Build.0 = Release|Win32 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|ARM.ActiveCfg = Debug|ARM + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|ARM.Build.0 = Debug|ARM + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|x64.ActiveCfg = Debug|x64 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|x64.Build.0 = Debug|x64 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|x86.ActiveCfg = Debug|x86 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Debug|x86.Build.0 = Debug|x86 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|Any CPU.Build.0 = Release|Any CPU + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|ARM.ActiveCfg = Release|ARM + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|ARM.Build.0 = Release|ARM + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|x64.ActiveCfg = Release|x64 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|x64.Build.0 = Release|x64 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|x86.ActiveCfg = Release|x86 + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD}.Release|x86.Build.0 = Release|x86 + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|ARM.ActiveCfg = Debug|Any CPU + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|ARM.Build.0 = Debug|Any CPU + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|x64.ActiveCfg = Debug|x64 + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|x64.Build.0 = Debug|x64 + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|x86.ActiveCfg = Debug|x86 + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Debug|x86.Build.0 = Debug|x86 + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|Any CPU.Build.0 = Release|Any CPU + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|ARM.ActiveCfg = Release|Any CPU + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|ARM.Build.0 = Release|Any CPU + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|x64.ActiveCfg = Release|x64 + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|x64.Build.0 = Release|x64 + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|x86.ActiveCfg = Release|x86 + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3}.Release|x86.Build.0 = Release|x86 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|Any CPU.ActiveCfg = Debug|x86 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|ARM.ActiveCfg = Debug|ARM + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|ARM.Build.0 = Debug|ARM + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|ARM.Deploy.0 = Debug|ARM + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x64.ActiveCfg = Debug|x64 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x64.Build.0 = Debug|x64 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x64.Deploy.0 = Debug|x64 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x86.ActiveCfg = Debug|x86 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x86.Build.0 = Debug|x86 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Debug|x86.Deploy.0 = Debug|x86 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|Any CPU.ActiveCfg = Release|x86 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|ARM.ActiveCfg = Release|ARM + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|ARM.Build.0 = Release|ARM + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|ARM.Deploy.0 = Release|ARM + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|x64.ActiveCfg = Release|x64 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|x64.Build.0 = Release|x64 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|x64.Deploy.0 = Release|x64 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|x86.ActiveCfg = Release|x86 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|x86.Build.0 = Release|x86 + {0C76D2FE-6767-44FE-B03D-21B2076BAA73}.Release|x86.Deploy.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {0446C86B-F47B-4C46-B673-C7AE0CFF35D5} = {51A8E803-C084-431F-9130-F277481C2BB2} + {91C42D32-291D-4B72-90B4-551663D60B8B} = {39A2FFDA-C093-4FA6-8143-45B5019E7DAC} + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD} = {DCF7899B-A487-49C0-BCDE-DC088B6750C2} + {4EDC82D9-A201-4831-8FE0-98F468F8E4AE} = {39A2FFDA-C093-4FA6-8143-45B5019E7DAC} + {AC23F444-5545-4196-8B9F-5C1F6B3E7FB3} = {5289E508-8386-45A1-A12B-258A5899CD45} + {0C76D2FE-6767-44FE-B03D-21B2076BAA73} = {5289E508-8386-45A1-A12B-258A5899CD45} + EndGlobalSection +EndGlobal diff --git a/csharp/Windows/Facebook.Yoga/Facebook.Yoga.csproj b/csharp/Windows/Facebook.Yoga/Facebook.Yoga.csproj new file mode 100644 index 00000000..1fe5a144 --- /dev/null +++ b/csharp/Windows/Facebook.Yoga/Facebook.Yoga.csproj @@ -0,0 +1,113 @@ + + + + + 14.0 + Debug + AnyCPU + {3AACE384-FDEC-4D91-A3B2-EEB21B46C9AD} + Library + Properties + Facebook.Yoga + Facebook.Yoga + en-US + 512 + {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + + + v5.0 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + true + bin\ARM\Debug\ + DEBUG;TRACE + true + full + ARM + prompt + MinimumRecommendedRules.ruleset + + + bin\ARM\Release\ + TRACE + true + true + pdbonly + ARM + prompt + MinimumRecommendedRules.ruleset + + + true + bin\x64\Debug\ + DEBUG;TRACE + true + full + x64 + prompt + MinimumRecommendedRules.ruleset + + + bin\x64\Release\ + TRACE + true + true + pdbonly + x64 + prompt + MinimumRecommendedRules.ruleset + + + true + bin\x86\Debug\ + DEBUG;TRACE + true + full + x86 + prompt + MinimumRecommendedRules.ruleset + + + bin\x86\Release\ + TRACE + true + true + pdbonly + x86 + prompt + MinimumRecommendedRules.ruleset + + + + + + + + + + + + \ No newline at end of file diff --git a/csharp/Facebook.Yoga/Properties/AssemblyInfo.cs b/csharp/Windows/Facebook.Yoga/Properties/AssemblyInfo.cs similarity index 53% rename from csharp/Facebook.Yoga/Properties/AssemblyInfo.cs rename to csharp/Windows/Facebook.Yoga/Properties/AssemblyInfo.cs index bc0b9929..c6fc18bb 100644 --- a/csharp/Facebook.Yoga/Properties/AssemblyInfo.cs +++ b/csharp/Windows/Facebook.Yoga/Properties/AssemblyInfo.cs @@ -11,22 +11,19 @@ using System.Reflection; using System.Resources; using System.Runtime.InteropServices; -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. +[assembly: AssemblyTitle("Facebook.Yoga")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Facebook, Inc.")] [assembly: AssemblyProduct("Facebook.Yoga")] -[assembly: AssemblyTrademark("Copyright (c) 2014-present, Facebook, Inc.")] +[assembly: AssemblyDescription("A subset of CSS's flexbox layout algorithm and box model.")] +[assembly: AssemblyCopyright("Copyright (c) 2014-present, Facebook, Inc.")] -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] -// The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("75bb7605-e54b-4ede-8f5a-ff1f24464236")] [assembly: NeutralResourcesLanguage("en")] -[assembly: AssemblyVersion("3.0.0.0")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] + diff --git a/csharp/Windows/Facebook.Yoga/project.json b/csharp/Windows/Facebook.Yoga/project.json new file mode 100644 index 00000000..58c1ea2a --- /dev/null +++ b/csharp/Windows/Facebook.Yoga/project.json @@ -0,0 +1,12 @@ +{ + "dependencies": { + "Microsoft.NETCore.Portable.Compatibility": "1.0.1", + "NETStandard.Library": "1.6.0" + }, + "frameworks": { + "netstandard1.1": {} + }, + "language": "en", + "supports": {}, + "version": "3.0.0-*" +} \ No newline at end of file diff --git a/csharp/Yoga/Yoga.rc b/csharp/Yoga/Yoga.rc new file mode 100644 index 0000000000000000000000000000000000000000..e684194ea734b79daafbf5f025bb7a856a5252ee GIT binary patch literal 4528 zcmdUzTW=CU6vxlAiQi$RFE%!9X&VzCTcFrTfs{*Z(uDK|5)m3MQ4>GA`uoo?Wfztz z)CbIFncXwzew(xW`nhL&7TLLV?be1iun~9L#=x4uMmDi)>+zPeH(Zf*?B4p^L*Qf9 zJ77ar(M@=|lV;HyFIY)9ByWTe%C%(#$k(c%i*;hop>Kx z)oNC^hUM+dD%P?KD*(;&T(**30;%zPZYMxWJO}yGVe_t_U05S4;+J_JxAD@zzF_|t z@5m2ztp3RF8CK`8Q~oFbKj5B^$e&~I)%n-cCH=p79t#@z?3myyWl|fv*UOFI`M`Ix z)}UQPboOMHKDMN28`@VFp{TTqpu-*!?snM!(wp>5Hqteu4{G}d| z)^8TGEyQTEx=LIdX{h(G>g?AEKf>Yx@d)r>Nt5bpfm5K)Ywip#^DfIzsWVZ>cLH40 z5g2FGbzu%CB7=9xyKsBlD*P*CV1o`+|0{~X{nYi2BHEqPLu%B11ov-tNCZpH9%bdM zYpA;w=r|3kB&p|&ljo3qq`#*VkMPse`1>(@ol}yUq^O{u=Y52Zx{jtaGjG+IXR2uE z@eUUDeZNd%1{= z;Wt^=Gn%yC6n4YfB#xSKxkS*G`}KKDyj h^WD>5vcZ>eEjH^}8ZOWGKAlJZwJd(OF2-G)egmAS6V(6! literal 0 HcmV?d00001 diff --git a/csharp/Yoga/Yoga.vcxproj b/csharp/Yoga/Yoga.vcxproj index 7303d22d..789cf9ba 100755 --- a/csharp/Yoga/Yoga.vcxproj +++ b/csharp/Yoga/Yoga.vcxproj @@ -1,10 +1,18 @@  + + Debug + ARM + Debug Win32 + + Release + ARM + Release Win32 @@ -23,7 +31,8 @@ Win32Proj yoga Yoga - 10.0.14393.0 + 8.1 + true @@ -32,6 +41,12 @@ v140 Unicode + + DynamicLibrary + true + v140 + Unicode + DynamicLibrary false @@ -39,6 +54,13 @@ true Unicode + + DynamicLibrary + false + v140 + true + Unicode + DynamicLibrary true @@ -60,9 +82,15 @@ + + + + + + @@ -72,15 +100,33 @@ true + bin\$(PlatformTarget)\$(Configuration)\ + obj\$(PlatformTarget)\$(Configuration)\ + + + true + bin\$(PlatformTarget)\$(Configuration)\ + obj\$(PlatformTarget)\$(Configuration)\ true + bin\$(PlatformTarget)\$(Configuration)\ + obj\$(PlatformTarget)\$(Configuration)\ false + bin\$(PlatformTarget)\$(Configuration)\ + obj\$(PlatformTarget)\$(Configuration)\ + + + false + bin\$(PlatformTarget)\$(Configuration)\ + obj\$(PlatformTarget)\$(Configuration)\ false + bin\$(PlatformTarget)\$(Configuration)\ + obj\$(PlatformTarget)\$(Configuration)\ @@ -97,12 +143,26 @@ true - + Level3 Disabled + WIN32;_DEBUG;_WINDOWS;_USRDLL;YOGA_EXPORTS;FB_ASSERTIONS_ENABLED=0;%(PreprocessorDefinitions) + true + $(ProjectDir)..\..\;%(AdditionalIncludeDirectories) + + + Windows + true + + + + + NotUsing + Level3 + Disabled _DEBUG;_WINDOWS;_USRDLL;YOGA_EXPORTS;FB_ASSERTIONS_ENABLED=0;%(PreprocessorDefinitions) true $(ProjectDir)..\..\;%(AdditionalIncludeDirectories) @@ -115,8 +175,25 @@ Level3 - - + NotUsing + MaxSpeed + true + true + WIN32;NDEBUG;_WINDOWS;_USRDLL;YOGA_EXPORTS;FB_ASSERTIONS_ENABLED=0;%(PreprocessorDefinitions) + true + $(ProjectDir)..\..\;%(AdditionalIncludeDirectories) + + + Windows + true + true + true + + + + + Level3 + NotUsing MaxSpeed true true @@ -134,8 +211,7 @@ Level3 - - + NotUsing MaxSpeed true true @@ -154,6 +230,7 @@ + @@ -164,21 +241,30 @@ false + false + + false false + false + + false + + + - + \ No newline at end of file diff --git a/csharp/Yoga/Yoga.vcxproj.filters b/csharp/Yoga/Yoga.vcxproj.filters index c3afcf63..46d05f8a 100755 --- a/csharp/Yoga/Yoga.vcxproj.filters +++ b/csharp/Yoga/Yoga.vcxproj.filters @@ -33,6 +33,9 @@ Header Files + + Header Files + @@ -51,4 +54,9 @@ Source Files - + + + Resource Files + + + \ No newline at end of file diff --git a/csharp/Yoga/resource.h b/csharp/Yoga/resource.h new file mode 100644 index 00000000..36cc8c0e --- /dev/null +++ b/csharp/Yoga/resource.h @@ -0,0 +1,14 @@ +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by Yoga.rc + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 101 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/csharp/nuget/Facebook.Yoga.Native.nuspec b/csharp/nuget/Facebook.Yoga.Native.nuspec new file mode 100644 index 00000000..5e90f2fa --- /dev/null +++ b/csharp/nuget/Facebook.Yoga.Native.nuspec @@ -0,0 +1,38 @@ + + + + Facebook.Yoga.Native + 1.0.1-pre + Facebook.Yoga.Native + Facebook + Facebook + https://github.com/facebook/css-layout/blob/master/LICENSE + https://github.com/facebook/css-layout + false + A subset of CSS's flexbox layout algorithm and box model. + Copyright 2016 Facebook + native flexbox flex-box css layout css-layout yoga facebook + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/csharp/nuget/Facebook.Yoga.Native.targets b/csharp/nuget/Facebook.Yoga.Native.targets new file mode 100644 index 00000000..3a2c7680 --- /dev/null +++ b/csharp/nuget/Facebook.Yoga.Native.targets @@ -0,0 +1,36 @@ + + + + + x86\%(Filename)%(Extension) + PreserveNewest + False + + + x64\%(Filename)%(Extension) + PreserveNewest + False + + + + + %(Filename)%(Extension) + PreserveNewest + False + + + + + %(Filename)%(Extension) + PreserveNewest + False + + + + + %(Filename)%(Extension) + PreserveNewest + False + + + diff --git a/csharp/nuget/Facebook.Yoga.nuspec b/csharp/nuget/Facebook.Yoga.nuspec new file mode 100644 index 00000000..599c3e77 --- /dev/null +++ b/csharp/nuget/Facebook.Yoga.nuspec @@ -0,0 +1,46 @@ + + + + Facebook.Yoga + 1.0.1-pre + Facebook.Yoga + Facebook + Facebook + https://github.com/facebook/css-layout/blob/master/LICENSE + https://github.com/facebook/css-layout + false + A subset of CSS's flexbox layout algorithm and box model. + Copyright 2016 Facebook + flexbox flex-box css layout css-layout yoga facebook native + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/csharp/nuget/Facebook.Yoga.targets b/csharp/nuget/Facebook.Yoga.targets new file mode 100644 index 00000000..799fdb78 --- /dev/null +++ b/csharp/nuget/Facebook.Yoga.targets @@ -0,0 +1,51 @@ + + + + + x86\%(Filename)%(Extension) + PreserveNewest + False + + + x64\%(Filename)%(Extension) + PreserveNewest + False + + + + + %(Filename)%(Extension) + PreserveNewest + False + + + %(Filename)%(Extension) + PreserveNewest + False + + + + + %(Filename)%(Extension) + PreserveNewest + False + + + %(Filename)%(Extension) + PreserveNewest + False + + + + + %(Filename)%(Extension) + PreserveNewest + False + + + %(Filename)%(Extension) + PreserveNewest + False + + + \ No newline at end of file diff --git a/csharp/nuget/_._ b/csharp/nuget/_._ new file mode 100644 index 00000000..e69de29b diff --git a/csharp/tests/Facebook.Yoga/Facebook.Yoga.Shared.Tests.projitems b/csharp/tests/Facebook.Yoga/Facebook.Yoga.Shared.Tests.projitems new file mode 100644 index 00000000..e593c942 --- /dev/null +++ b/csharp/tests/Facebook.Yoga/Facebook.Yoga.Shared.Tests.projitems @@ -0,0 +1,28 @@ + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + true + 4edc82d9-a201-4831-8fe0-98f468f8e4ae + + + Facebook.Yoga.Shared.Tests + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/csharp/tests/Facebook.Yoga/Facebook.Yoga.Shared.Tests.shproj b/csharp/tests/Facebook.Yoga/Facebook.Yoga.Shared.Tests.shproj new file mode 100644 index 00000000..75c61845 --- /dev/null +++ b/csharp/tests/Facebook.Yoga/Facebook.Yoga.Shared.Tests.shproj @@ -0,0 +1,13 @@ + + + + 4edc82d9-a201-4831-8fe0-98f468f8e4ae + 14.0 + + + + + + + +