Backport a few changes to fix test build issues.
This commit is contained in:
Родитель
2a4815e7af
Коммит
962c4856d9
|
@ -473,6 +473,24 @@ namespace Xamarin.Tests
|
|||
}
|
||||
}
|
||||
|
||||
public static string GetSdkPath (Profile profile, bool is_device)
|
||||
{
|
||||
switch (profile) {
|
||||
case Profile.iOS:
|
||||
return Path.Combine (MonoTouchRootDirectory, "SDKs", "MonoTouch." + (is_device ? "iphoneos" : "iphonesimulator") + ".sdk");
|
||||
case Profile.tvOS:
|
||||
return Path.Combine (MonoTouchRootDirectory, "SDKs", "Xamarin.AppleTV" + (is_device ? "OS" : "Simulator") + ".sdk");
|
||||
case Profile.watchOS:
|
||||
return Path.Combine (MonoTouchRootDirectory, "SDKs", "Xamarin.Watch" + (is_device ? "OS" : "Simulator") + ".sdk");
|
||||
case Profile.macOSFull:
|
||||
case Profile.macOSMobile:
|
||||
case Profile.macOSSystem:
|
||||
return Path.Combine (SdkRootXM, "lib");
|
||||
default:
|
||||
throw new NotImplementedException (profile.ToString ());
|
||||
}
|
||||
}
|
||||
|
||||
public static string GetCompiler (Profile profile, StringBuilder args, bool use_csc = false)
|
||||
{
|
||||
args.Append (" -lib:").Append (Path.GetDirectoryName (GetBaseLibrary (profile))).Append (' ');
|
||||
|
|
|
@ -108,6 +108,9 @@
|
|||
<Compile Include="src\RegistrarTests.cs" />
|
||||
<Compile Include="src\AssemblyReferencesTests.cs" />
|
||||
<Compile Include="src\PackageReferenceTests.cs" />
|
||||
<Compile Include="..\..\tools\mmp\SdkVersions.cs">
|
||||
<Link>SdkVersions.cs</Link>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Info.plist" />
|
||||
|
|
Загрузка…
Ссылка в новой задаче