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 https://github.com/facebook/yoga/pull/401 Reviewed By: emilsjolander Differential Revision: D4561354 Pulled By: splhack fbshipit-source-id: 643ad4ed1ffc73719d35974e2d357c37d5b1d1c4
146 lines
7.2 KiB
XML
146 lines
7.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
|
<PropertyGroup>
|
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
|
<ProjectGuid>{0C76D2FE-6767-44FE-B03D-21B2076BAA73}</ProjectGuid>
|
|
<OutputType>AppContainerExe</OutputType>
|
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
<RootNamespace>Facebook.Yoga.Universal.Tests</RootNamespace>
|
|
<AssemblyName>Facebook.Yoga.Universal.Tests</AssemblyName>
|
|
<DefaultLanguage>en-US</DefaultLanguage>
|
|
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
|
|
<TargetPlatformVersion>10.0.10586.0</TargetPlatformVersion>
|
|
<TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
|
|
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
|
|
<FileAlignment>512</FileAlignment>
|
|
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
|
<PackageCertificateKeyFile>Facebook.Yoga.Universal.Tests_TemporaryKey.pfx</PackageCertificateKeyFile>
|
|
<UnitTestPlatformVersion Condition="'$(UnitTestPlatformVersion)' == ''">14.0</UnitTestPlatformVersion>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<OutputPath>bin\x86\Debug\</OutputPath>
|
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
<NoWarn>;2008</NoWarn>
|
|
<DebugType>full</DebugType>
|
|
<PlatformTarget>x86</PlatformTarget>
|
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<Prefer32Bit>true</Prefer32Bit>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
|
<OutputPath>bin\x86\Release\</OutputPath>
|
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
<Optimize>true</Optimize>
|
|
<NoWarn>;2008</NoWarn>
|
|
<DebugType>pdbonly</DebugType>
|
|
<PlatformTarget>x86</PlatformTarget>
|
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<Prefer32Bit>true</Prefer32Bit>
|
|
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<OutputPath>bin\ARM\Debug\</OutputPath>
|
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
<NoWarn>;2008</NoWarn>
|
|
<DebugType>full</DebugType>
|
|
<PlatformTarget>ARM</PlatformTarget>
|
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<Prefer32Bit>true</Prefer32Bit>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
|
|
<OutputPath>bin\ARM\Release\</OutputPath>
|
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
<Optimize>true</Optimize>
|
|
<NoWarn>;2008</NoWarn>
|
|
<DebugType>pdbonly</DebugType>
|
|
<PlatformTarget>ARM</PlatformTarget>
|
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<Prefer32Bit>true</Prefer32Bit>
|
|
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<OutputPath>bin\x64\Debug\</OutputPath>
|
|
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
<NoWarn>;2008</NoWarn>
|
|
<DebugType>full</DebugType>
|
|
<PlatformTarget>x64</PlatformTarget>
|
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<Prefer32Bit>true</Prefer32Bit>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
|
<OutputPath>bin\x64\Release\</OutputPath>
|
|
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
|
<Optimize>true</Optimize>
|
|
<NoWarn>;2008</NoWarn>
|
|
<DebugType>pdbonly</DebugType>
|
|
<PlatformTarget>x64</PlatformTarget>
|
|
<UseVSHostingProcess>false</UseVSHostingProcess>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<Prefer32Bit>true</Prefer32Bit>
|
|
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<!--A reference to the entire .Net Framework and Windows SDK are automatically included-->
|
|
<None Include="project.json" />
|
|
<SDKReference Include="MSTestFramework.Universal, Version=$(UnitTestPlatformVersion)" />
|
|
<SDKReference Include="TestPlatform.Universal, Version=$(UnitTestPlatformVersion)" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
<Compile Include="UnitTestApp.xaml.cs">
|
|
<DependentUpon>UnitTestApp.xaml</DependentUpon>
|
|
</Compile>
|
|
<Compile Include="YogaNodeTest.cs" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ApplicationDefinition Include="UnitTestApp.xaml">
|
|
<Generator>MSBuild:Compile</Generator>
|
|
<SubType>Designer</SubType>
|
|
</ApplicationDefinition>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<AppxManifest Include="Package.appxmanifest">
|
|
<SubType>Designer</SubType>
|
|
</AppxManifest>
|
|
<None Include="Facebook.Yoga.Universal.Tests_TemporaryKey.pfx" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Content Include="Properties\UnitTestApp.rd.xml" />
|
|
<Content Include="Assets\LockScreenLogo.scale-200.png" />
|
|
<Content Include="Assets\SplashScreen.scale-200.png" />
|
|
<Content Include="Assets\Square150x150Logo.scale-200.png" />
|
|
<Content Include="Assets\Square44x44Logo.scale-200.png" />
|
|
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
|
|
<Content Include="Assets\StoreLogo.png" />
|
|
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\Facebook.Yoga\Facebook.Yoga.csproj">
|
|
<Project>{3aace384-fdec-4d91-a3b2-eeb21b46c9ad}</Project>
|
|
<Name>Facebook.Yoga</Name>
|
|
</ProjectReference>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
|
|
</ItemGroup>
|
|
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' ">
|
|
<VisualStudioVersion>14.0</VisualStudioVersion>
|
|
</PropertyGroup>
|
|
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
|
|
<Import Project="$(SolutionDir)Build\Facebook.Yoga.NativeInterop.Universal.targets" Condition="Exists('$(SolutionDir)Build\Facebook.Yoga.NativeInterop.Universal.targets')" Label="ImportNativeInteropTargets" />
|
|
<Target Name="EnsureNativeInteropImports" BeforeTargets="PrepareForBuild">
|
|
<PropertyGroup>
|
|
<ErrorText>This project references a native interop target that is missing. The missing build target is {0}.</ErrorText>
|
|
</PropertyGroup>
|
|
<Error Condition="!Exists('$(SolutionDir)Build\Facebook.Yoga.NativeInterop.Universal.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)Build\Facebook.Yoga.NativeInterop.Universal.targets'))" />
|
|
</Target>
|
|
</Project> |