mdoc needs a few extra things on windows
This commit is contained in:
Родитель
e40066b62f
Коммит
6edf0bb01f
47
build.cake
47
build.cake
|
@ -14,7 +14,7 @@ var XamarinComponentToolPath = GetToolPath ("../xamarin-component.exe");
|
|||
var CakeToolPath = GetToolPath ("Cake.exe");
|
||||
var NUnitConsoleToolPath = GetToolPath ("../NUnit.Console/tools/nunit3-console.exe");
|
||||
var GenApiToolPath = GetToolPath ("../genapi.exe");
|
||||
var MDocPath = GetMDocPath ();
|
||||
var MDocPath = GetToolPath ("../mdoc/mdoc.exe");
|
||||
|
||||
DirectoryPath ROOT_PATH = MakeAbsolute(Directory("."));
|
||||
DirectoryPath DEPOT_PATH = MakeAbsolute(ROOT_PATH.Combine("depot_tools"));
|
||||
|
@ -48,22 +48,13 @@ void ListEnvironmentVariables ()
|
|||
|
||||
FilePath GetToolPath (FilePath toolPath)
|
||||
{
|
||||
var appRoot = Context.Environment.GetApplicationRoot ();
|
||||
var appRootExe = appRoot.CombineWithFilePath (toolPath);
|
||||
if (FileExists (appRootExe))
|
||||
return appRootExe;
|
||||
var appRoot = Context.Environment.GetApplicationRoot ();
|
||||
var appRootExe = appRoot.CombineWithFilePath (toolPath);
|
||||
if (FileExists (appRootExe))
|
||||
return appRootExe;
|
||||
throw new FileNotFoundException ("Unable to find tool: " + appRootExe);
|
||||
}
|
||||
|
||||
FilePath GetMDocPath ()
|
||||
{
|
||||
FilePath mdocPath = GetToolPath ("../mdoc.exe");
|
||||
if (!FileExists (mdocPath)) {
|
||||
mdocPath = "mdoc";
|
||||
}
|
||||
return mdocPath;
|
||||
}
|
||||
|
||||
var RunNuGetRestore = new Action<FilePath> ((solution) =>
|
||||
{
|
||||
NuGetRestore (solution, new NuGetRestoreSettings {
|
||||
|
@ -97,10 +88,10 @@ var RunInstallNameTool = new Action<DirectoryPath, string, string, FilePath> ((d
|
|||
throw new InvalidOperationException ("install_name_tool is only available on Unix.");
|
||||
}
|
||||
|
||||
StartProcess ("install_name_tool", new ProcessSettings {
|
||||
Arguments = string.Format("-change {0} {1} \"{2}\"", oldName, newName, library),
|
||||
WorkingDirectory = directory,
|
||||
});
|
||||
StartProcess ("install_name_tool", new ProcessSettings {
|
||||
Arguments = string.Format("-change {0} {1} \"{2}\"", oldName, newName, library),
|
||||
WorkingDirectory = directory,
|
||||
});
|
||||
});
|
||||
|
||||
var RunLipo = new Action<DirectoryPath, FilePath, FilePath[]> ((directory, output, inputs) =>
|
||||
|
@ -114,25 +105,25 @@ var RunLipo = new Action<DirectoryPath, FilePath, FilePath[]> ((directory, outpu
|
|||
CreateDirectory (dir);
|
||||
}
|
||||
|
||||
var inputString = string.Join(" ", inputs.Select (i => string.Format ("\"{0}\"", i)));
|
||||
StartProcess ("lipo", new ProcessSettings {
|
||||
Arguments = string.Format("-create -output \"{0}\" {1}", output, inputString),
|
||||
WorkingDirectory = directory,
|
||||
});
|
||||
var inputString = string.Join(" ", inputs.Select (i => string.Format ("\"{0}\"", i)));
|
||||
StartProcess ("lipo", new ProcessSettings {
|
||||
Arguments = string.Format("-create -output \"{0}\" {1}", output, inputString),
|
||||
WorkingDirectory = directory,
|
||||
});
|
||||
});
|
||||
|
||||
var PackageNuGet = new Action<FilePath, DirectoryPath> ((nuspecPath, outputPath) =>
|
||||
{
|
||||
if (!DirectoryExists (outputPath)) {
|
||||
CreateDirectory (outputPath);
|
||||
}
|
||||
if (!DirectoryExists (outputPath)) {
|
||||
CreateDirectory (outputPath);
|
||||
}
|
||||
|
||||
NuGetPack (nuspecPath, new NuGetPackSettings {
|
||||
Verbosity = NuGetVerbosity.Detailed,
|
||||
OutputDirectory = outputPath,
|
||||
OutputDirectory = outputPath,
|
||||
BasePath = "./",
|
||||
ToolPath = NugetToolPath
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
var RunTests = new Action<FilePath> ((testAssembly) =>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<AttributeName>System.Reflection.AssemblyFileVersion("1.54.0.0")</AttributeName>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<AttributeName>System.Reflection.AssemblyInformationalVersion("1.54.0.0")</AttributeName>
|
||||
<AttributeName>System.Reflection.AssemblyInformationalVersion("1.54.0.0-{GIT_SHA}")</AttributeName>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<AttributeName>System.Reflection.AssemblyProduct("SkiaSharp")</AttributeName>
|
||||
|
@ -33,15 +33,9 @@
|
|||
<Attribute>
|
||||
<AttributeName>System.Reflection.AssemblyTrademark("")</AttributeName>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<AttributeName>System.Runtime.CompilerServices.CompilationRelaxations(8)</AttributeName>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<AttributeName>System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows=true)</AttributeName>
|
||||
</Attribute>
|
||||
<Attribute>
|
||||
<AttributeName>System.Runtime.Versioning.TargetFramework(".NETFramework,Version=v4.5", FrameworkDisplayName=".NET Framework 4.5")</AttributeName>
|
||||
</Attribute>
|
||||
</Attributes>
|
||||
</Assembly>
|
||||
</Assemblies>
|
||||
|
|
Двоичный файл не отображается.
Двоичный файл не отображается.
Загрузка…
Ссылка в новой задаче