Skip to content

Commit 523253c

Browse files
committed
[WIP] Migrate visual tests project for macOS
1 parent e085af7 commit 523253c

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

.run/VisualTests.run.xml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="VisualTests" type="XamarinMacProject" factoryName="Xamarin.Mac">
3+
<option name="PROJECT_PATH" value="$PROJECT_DIR$/osu.Framework.Tests/osu.Framework.Tests.csproj" />
4+
<option name="PROGRAM_PARAMETERS" value="" />
5+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/osu.Framework.Tests/bin/Debug/net8.0-macos/osx-arm64" />
6+
<option name="PASS_PARENT_ENVS_MAC" value="1" />
7+
<method v="2">
8+
<option name="Build" />
9+
</method>
10+
</configuration>
11+
</component>

osu.Framework.Tests/Info.plist

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleIdentifier</key>
6+
<string>sh.ppy.osu-framework-visual-tests</string>
7+
<key>NSPrincipalClass</key>
8+
<string>NSApplication</string>
9+
</dict>
10+
</plist>

osu.Framework.Tests/osu.Framework.Tests.csproj

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup Label="Project">
3-
<TargetFramework>net8.0</TargetFramework>
4-
<OutputType>WinExe</OutputType>
3+
<TargetFrameworks>net8.0;net8.0-macos</TargetFrameworks>
4+
<OutputType>Exe</OutputType>
55
</PropertyGroup>
6+
<PropertyGroup Condition="$(TargetFramework.Contains('macos'))">
7+
<RuntimeIdentifier>osx-arm64</RuntimeIdentifier>
8+
<SupportedOSPlatformVersion>10.15</SupportedOSPlatformVersion>
9+
<NullabilityInfoContextSupport>true</NullabilityInfoContextSupport>
10+
</PropertyGroup>
11+
<Target Name="OsuFrameworkIOSRemoveMacOSFrameworks" Condition="$(TargetFramework.Contains('macos'))" BeforeTargets="_ComputeLinkNativeExecutableInputs" AfterTargets="_LoadLinkerOutput">
12+
<ItemGroup>
13+
<_LinkerFrameworks Remove="OpenGLES"/>
14+
</ItemGroup>
15+
</Target>
616
<PropertyGroup>
717
<GenerateProgramFile>false</GenerateProgramFile>
818
</PropertyGroup>

0 commit comments

Comments
 (0)