Skip to content
Permalink
Browse files

[Build] Additional setup for macOS build

  • Loading branch information
xen2 committed Jan 13, 2019
1 parent 68bfba4 commit 33fea75c991f8974854c37fb7e533fa8008882e7
@@ -45,6 +45,7 @@
<XenkoPlatform Condition="'$(XenkoPlatform)' == '' And '$(TargetFrameworkIdentifier)' == 'MonoAndroid'">Android</XenkoPlatform>
<XenkoPlatform Condition="'$(XenkoPlatform)' == '' And '$(TargetFrameworkIdentifier)' == 'Xamarin.iOS'">iOS</XenkoPlatform>
<XenkoPlatform Condition="'$(XenkoPlatform)' == '' And $(RuntimeIdentifier.StartsWith('linux'))">Linux</XenkoPlatform>
<XenkoPlatform Condition="'$(XenkoPlatform)' == '' And $(RuntimeIdentifier.StartsWith('osx'))">macOS</XenkoPlatform>
<XenkoPlatform Condition="'$(XenkoPlatform)' == ''">Windows</XenkoPlatform>
</PropertyGroup>

@@ -111,7 +112,7 @@
<!-- List dependency files from .ssdeps -->
<PropertyGroup>
<_XenkoListDepsFilesDependsOn>ResolveAssemblyReferences</_XenkoListDepsFilesDependsOn>
<_XenkoListDepsFilesDependsOn Condition="'$(XenkoPlatform)' == 'Windows' Or '$(XenkoPlatform)' == 'Linux'">$(_XenkoListDepsFilesDependsOn);ResolvePackageAssets</_XenkoListDepsFilesDependsOn>
<_XenkoListDepsFilesDependsOn Condition="'$(XenkoPlatform)' == 'Windows' Or '$(XenkoPlatform)' == 'Linux' Or '$(XenkoPlatform)' == 'macOS'">$(_XenkoListDepsFilesDependsOn);ResolvePackageAssets</_XenkoListDepsFilesDependsOn>
</PropertyGroup>
<Target Name="_XenkoListDepsFiles" DependsOnTargets="$(_XenkoListDepsFilesDependsOn)">
<ItemGroup>
@@ -66,8 +66,9 @@ public static GraphicsPlatform GetDefaultGraphicsPlatform(this PlatformType plat
case PlatformType.iOS:
return GraphicsPlatform.OpenGLES;
case PlatformType.Linux:
case PlatformType.macOS:
return GraphicsPlatform.OpenGL;
case PlatformType.macOS:
return GraphicsPlatform.Vulkan;
default:
throw new ArgumentOutOfRangeException();
}
@@ -160,7 +160,7 @@
</PropertyGroup>

<PropertyGroup>
<XenkoUI Condition="'$(XenkoPlatform)' == 'Windows' Or '$(XenkoPlatform)' == 'Linux'">SDL</XenkoUI>
<XenkoUI Condition="'$(XenkoPlatform)' == 'Windows' Or '$(XenkoPlatform)' == 'Linux' Or '$(XenkoPlatform)' == 'macOS'">SDL</XenkoUI>
<XenkoUI Condition="'$(XenkoGraphicsApi)' == 'OpenGL'">$(XenkoUI);OPENTK</XenkoUI>
<XenkoUI Condition="'$(XenkoPlatform)' == 'Windows' AND $(TargetFramework.StartsWith('net4')) AND ('$(XenkoGraphicsApi)' == 'Direct3D11' Or '$(XenkoGraphicsApi)' == 'Direct3D12')">$(XenkoUI);WINFORMS;WPF</XenkoUI>

0 comments on commit 33fea75

Please sign in to comment.
You can’t perform that action at this time.