forked from facebook/yoga
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: The existing Yoga.vcxproj works great for Desktop apps, but breaks when you try to use the resulting DLL on mobile, Xbox, etc. This change compiles the DLL for the UWP and the Windows Store. Closes facebook#401 Reviewed By: emilsjolander Differential Revision: D4561354 Pulled By: splhack fbshipit-source-id: 643ad4ed1ffc73719d35974e2d357c37d5b1d1c4
- Loading branch information
1 parent
4fe0b81
commit b24e728
Showing
10 changed files
with
638 additions
and
19 deletions.
There are no files selected for viewing
131 changes: 131 additions & 0 deletions
131
csharp/Windows/Build/Facebook.Yoga.NativeInterop.Universal.targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<NativeRootPath>$(SolutionDir)..\Yoga\bin\Universal\</NativeRootPath> | ||
<NativeX86Path>$(NativeRootPath)x86\</NativeX86Path> | ||
<NativeX64Path>$(NativeRootPath)x64\</NativeX64Path> | ||
<NativeARMPath>$(NativeRootPath)ARM\</NativeARMPath> | ||
<NativeDLLMoniker>Yoga</NativeDLLMoniker> | ||
<CurrentPlatform Condition="$(PROCESSOR_ARCHITECTURE) =='AMD64' or $(PROCESSOR_ARCHITECTURE) == 'IA64' or $(PROCESSOR_ARCHITEW6432) == 'AMD64'">AMD64</CurrentPlatform> | ||
<CurrentPlatform Condition="$(PROCESSOR_ARCHITECTURE) =='ARM'">ARM</CurrentPlatform> | ||
</PropertyGroup> | ||
|
||
<Choose> | ||
<When Condition="$(Platform) == 'AnyCPU'"> | ||
<Choose> | ||
<When Condition="$(Prefer32Bit) == 'true'"> | ||
<ItemGroup Condition="$(CurrentPlatform) == 'x86' Or $(CurrentPlatform) == 'AMD64'"> | ||
<Content Include="$(NativeX86Path)$(Configuration)\$(NativeDLLMoniker).dll"> | ||
<Link>$(NativeDLLMoniker).dll</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>False</Visible> | ||
</Content> | ||
<Content Include="$(NativeX86Path)$(Configuration)\$(NativeDLLMoniker).pdb"> | ||
<Link>$(NativeDLLMoniker).pdb</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>False</Visible> | ||
</Content> | ||
</ItemGroup> | ||
<ItemGroup Condition="$(CurrentPlatform) == 'ARM'"> | ||
<Content Include="$(NativeARMPath)$(Configuration)\$(NativeDLLMoniker).dll"> | ||
<Link>$(NativeDLLMoniker).dll</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>False</Visible> | ||
</Content> | ||
<Content Include="$(NativeARMPath)$(Configuration)\$(NativeDLLMoniker).pdb"> | ||
<Link>$(NativeDLLMoniker).pdb</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>False</Visible> | ||
</Content> | ||
</ItemGroup> | ||
</When> | ||
<Otherwise> | ||
<ItemGroup Condition="$(CurrentPlatform) == 'x86'"> | ||
<Content Include="$(NativeX86Path)$(Configuration)\$(NativeDLLMoniker).dll"> | ||
<Link>$(NativeDLLMoniker).dll</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>False</Visible> | ||
</Content> | ||
<Content Include="$(NativeX86Path)$(Configuration)\$(NativeDLLMoniker).pdb"> | ||
<Link>$(NativeDLLMoniker).pdb</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>False</Visible> | ||
</Content> | ||
</ItemGroup> | ||
<ItemGroup Condition="$(CurrentPlatform) == 'AMD64'"> | ||
<Content Include="$(NativeX64Path)$(Configuration)\$(NativeDLLMoniker).dll"> | ||
<Link>$(NativeDLLMoniker).dll</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>False</Visible> | ||
</Content> | ||
<Content Include="$(NativeX64Path)$(Configuration)\$(NativeDLLMoniker).pdb"> | ||
<Link>$(NativeDLLMoniker).pdb</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>False</Visible> | ||
</Content> | ||
</ItemGroup> | ||
<ItemGroup Condition="$(CurrentPlatform) == 'ARM'"> | ||
<Content Include="$(NativeARMPath)$(Configuration)\$(NativeDLLMoniker).dll"> | ||
<Link>$(NativeDLLMoniker).dll</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>False</Visible> | ||
</Content> | ||
<Content Include="$(NativeARMPath)$(Configuration)\$(NativeDLLMoniker).pdb"> | ||
<Link>$(NativeDLLMoniker).pdb</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>False</Visible> | ||
</Content> | ||
</ItemGroup> | ||
</Otherwise> | ||
</Choose> | ||
</When> | ||
<Otherwise> | ||
<ItemGroup Condition="$(PlatformTarget) == 'x86'"> | ||
<Content Include="$(NativeX86Path)$(Configuration)\$(NativeDLLMoniker).dll"> | ||
<Link>$(NativeDLLMoniker).dll</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>False</Visible> | ||
</Content> | ||
<Content Include="$(NativeX86Path)$(Configuration)\$(NativeDLLMoniker).pdb"> | ||
<Link>$(NativeDLLMoniker).pdb</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>False</Visible> | ||
</Content> | ||
</ItemGroup> | ||
<ItemGroup Condition="$(PlatformTarget) == 'x64'"> | ||
<Content Include="$(NativeX64Path)$(Configuration)\$(NativeDLLMoniker).dll"> | ||
<Link>$(NativeDLLMoniker).dll</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>False</Visible> | ||
</Content> | ||
<Content Include="$(NativeX64Path)$(Configuration)\$(NativeDLLMoniker).pdb"> | ||
<Link>$(NativeDLLMoniker).pdb</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>False</Visible> | ||
</Content> | ||
</ItemGroup> | ||
<ItemGroup Condition="$(PlatformTarget) == 'ARM'"> | ||
<!--<Content Include="$(NativeARMPath)$(Configuration)\$(NativeDLLMoniker).dll"> | ||
<Link>$(NativeDLLMoniker).dll</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>False</Visible> | ||
</Content> | ||
<Content Include="$(NativeARMPath)$(Configuration)\$(NativeDLLMoniker).pdb"> | ||
<Link>$(NativeDLLMoniker).pdb</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>False</Visible> | ||
</Content>--> | ||
<Content Include="$(NativeX86Path)$(Configuration)\$(NativeDLLMoniker).dll"> | ||
<Link>$(NativeDLLMoniker).dll</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>False</Visible> | ||
</Content> | ||
<Content Include="$(NativeX86Path)$(Configuration)\$(NativeDLLMoniker).pdb"> | ||
<Link>$(NativeDLLMoniker).pdb</Link> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
<Visible>False</Visible> | ||
</Content> | ||
</ItemGroup> | ||
</Otherwise> | ||
</Choose> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.