-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix .NET Native compilation #2170
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,15 +11,14 @@ | |
<AssemblyName>Tests.UWP</AssemblyName> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reviewers can ignore changes to this file - since we don't run UWP tests automatically, the project file had rotted a little and needed to bring it up to date to be able to debug things. |
||
<DefaultLanguage>en-US</DefaultLanguage> | ||
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier> | ||
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.16299.0</TargetPlatformVersion> | ||
<TargetPlatformMinVersion>10.0.16299.0</TargetPlatformMinVersion> | ||
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.19041.0</TargetPlatformVersion> | ||
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion> | ||
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
<RealmWrappersPlatform>$(Platform)</RealmWrappersPlatform> | ||
<RealmWrappersPlatform Condition="'$(Platform)' == 'x86'">Win32</RealmWrappersPlatform> | ||
<WindowsXamlEnableOverview>true</WindowsXamlEnableOverview> | ||
<PackageCertificateKeyFile>Tests.UWP_TemporaryKey.pfx</PackageCertificateKeyFile> | ||
<RestoreProjectStyle>PackageReference</RestoreProjectStyle> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'"> | ||
|
@@ -123,21 +122,32 @@ | |
</Page> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.8" /> | ||
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.11" /> | ||
<PackageReference Include="NUnit.Xamarin.Realm" Version="3.12.0"/> | ||
<PackageReference Include="PCLStorage" Version="1.0.2" /> | ||
<PackageReference Include="Xamarin.Forms" Version="3.6.0.293080" /> | ||
<PackageReference Include="NUnit.Xamarin.Realm"> | ||
<Version>3.12.0</Version> | ||
</PackageReference> | ||
<PackageReference Include="Xamarin.Forms" Version="4.8.0.1687" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Realm.Tests\Realm.Tests.csproj"> | ||
<Project>{78799fcd-be2e-4ece-a52e-662846615b58}</Project> | ||
<Name>Realm.Tests</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<ItemGroup Condition="'$(UseRealmNupkgsWithVersion)' == ''"> | ||
<None Include="..\..\wrappers\build\WindowsStore\$(Configuration)-x64\realm-wrappers.dll" Condition="Exists('..\..\wrappers\build\WindowsStore\$(Configuration)-x64\realm-wrappers.dll')"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<None Include="..\..\wrappers\build\WindowsStore\$(Configuration)-Win32\realm-wrappers.dll" Condition="Exists('..\..\wrappers\build\WindowsStore\$(Configuration)-Win32\realm-wrappers.dll')"> | ||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
</None> | ||
<ProjectReference Include="..\..\Realm\Realm\Realm.csproj" PrivateAssets="None"> | ||
<Project>{C0DB0E07-4FBC-44D1-8E84-A074497385C6}</Project> | ||
<Name>Realm</Name> | ||
</ProjectReference> | ||
</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="..\..\Realm\Realm.Fody\InSolutionWeaver.props" Condition="'$(UseRealmNupkgsWithVersion)' == ''" /> | ||
</Project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,9 @@ if(APPLE) | |
endif() | ||
elseif(CMAKE_SYSTEM_NAME MATCHES "^Windows") | ||
add_definitions(/DWIN32_LEAN_AND_MEAN) | ||
add_compile_options( | ||
/MP # Enable multi-processor compilation | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @fealebenpae added this since it seemed like we didn't compile the wrapper sources in parallel. |
||
) | ||
|
||
# always produce a PDB | ||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Zi") | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the
[MarshalAs]
attribute frombool_value
appears to fix the issue.