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
This commit is contained in:
committed by
Facebook Github Bot
parent
6bcf0e3a50
commit
bf6602ebff
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
|
||||
<HasSharedItems>true</HasSharedItems>
|
||||
<SharedGUID>4edc82d9-a201-4831-8fe0-98f468f8e4ae</SharedGUID>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="Configuration">
|
||||
<Import_RootNamespace>Facebook.Yoga.Shared.Tests</Import_RootNamespace>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="$(MSBuildThisFileDirectory)YGAbsolutePositionTest.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)YGAlignContentTest.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)YGAlignItemsTest.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)YGAlignSelfTest.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)YGBorderTest.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)YGFlexDirectionTest.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)YGFlexTest.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)YGFlexWrapTest.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)YGJustifyContentTest.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)YGMarginTest.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)YGMinMaxDimensionTest.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)YGPaddingTest.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)YGRoundingTest.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)YogaNodeCreateTest.cs" />
|
||||
<Compile Include="$(MSBuildThisFileDirectory)YogaNodeTest.cs" />
|
||||
</ItemGroup>
|
||||
</Project>
|
13
csharp/tests/Facebook.Yoga/Facebook.Yoga.Shared.Tests.shproj
Normal file
13
csharp/tests/Facebook.Yoga/Facebook.Yoga.Shared.Tests.shproj
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>4edc82d9-a201-4831-8fe0-98f468f8e4ae</ProjectGuid>
|
||||
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" />
|
||||
<PropertyGroup />
|
||||
<Import Project="Facebook.Yoga.Shared.Tests.projitems" Label="Shared" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" />
|
||||
</Project>
|
Reference in New Issue
Block a user