This commit is contained in:
SotoiGhost 2019-08-08 16:07:22 -05:00
Родитель 76f5c948df
Коммит 65db51d897
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 72EA2B8D62E38FAB
2 изменённых файлов: 20 добавлений и 12 удалений

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

@ -145,12 +145,12 @@ Task ("libs")
.Does(() =>
{
CleanVisualStudioSolution ();
RestoreVisualStudioSolution ();
var targets = $@"source\\{string.Join (@";source\\", SOURCES_TARGETS)}";
MSBuild(SOLUTION_PATH, c => {
c.Configuration = "Release";
c.Restore = true;
c.MaxCpuCount = 0;
c.Targets.Clear();
c.Targets.Add(targets);
@ -161,15 +161,13 @@ Task ("samples")
.IsDependentOn("libs")
.Does(() =>
{
var targets = $@"samples\\{string.Join (@";samples\\", SAMPLES_TARGETS)}";
MSBuild(SOLUTION_PATH, c => {
c.Configuration = "Release";
c.Restore = true;
c.MaxCpuCount = 0;
c.Targets.Clear();
c.Targets.Add(targets);
});
foreach (var target in SAMPLES_TARGETS)
MSBuild(SOLUTION_PATH, c => {
c.Configuration = "Release";
c.MaxCpuCount = 0;
c.Targets.Clear();
c.Targets.Add($@"samples\\{target}");
});
});
Task ("nuget")
@ -200,8 +198,8 @@ Task ("clean")
Force = true
};
// if (DirectoryExists ("./externals/"))
// DeleteDirectory ("./externals", deleteDirectorySettings);
if (DirectoryExists ("./externals/"))
DeleteDirectory ("./externals", deleteDirectorySettings);
if (DirectoryExists ("./output/"))
DeleteDirectory ("./output", deleteDirectorySettings);

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

@ -106,6 +106,16 @@ void CleanVisualStudioSolution ()
DeleteDirectories (objs, deleteDirectorySettings);
}
void RestoreVisualStudioSolution ()
{
MSBuild(SOLUTION_PATH, c => {
c.Restore = true;
c.MaxCpuCount = 0;
c.Targets.Clear();
c.Targets.Add("Restore");
});
}
void BuildXcodeFatLibrary (FilePath xcodeProject, string target, Platform [] platforms, string libraryTitle = null, string librarySuffix = null, DirectoryPath workingDirectory = null)
{
if (!IsRunningOnUnix())