Backport a few changes to fix test build issues.

This commit is contained in:
Rolf Bjarne Kvinge 2019-02-11 07:39:53 +01:00
Родитель 2a4815e7af
Коммит 962c4856d9
2 изменённых файлов: 21 добавлений и 0 удалений

Просмотреть файл

@ -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" />