make sure we copy and package the outputs
This commit is contained in:
Родитель
74996040bf
Коммит
c80c4b0d5f
|
@ -185,6 +185,13 @@ Task ("externals-native")
|
|||
// the second copy excludes the file version
|
||||
CopyFile (so, "./output/linux/" + arch + "/libSkiaSharp.so");
|
||||
}
|
||||
// copy libHarfBuzzSharp
|
||||
so = "./native-builds/lib/linux/" + arch + "/libHarfBuzzSharp.so." + VERSION_SONAME;
|
||||
if (FileExists (so)) {
|
||||
CopyFileToDirectory (so, "./output/linux/" + arch + "/");
|
||||
// the second copy excludes the file version
|
||||
CopyFile (so, "./output/linux/" + arch + "/libHarfBuzzSharp.so");
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -769,8 +776,27 @@ Task ("externals-linux")
|
|||
CopyFileToDirectory ("native-builds/libSkiaSharp_linux/bin/" + arch + "/libSkiaSharp.so." + VERSION_SONAME, "native-builds/lib/linux/" + arch);
|
||||
});
|
||||
|
||||
var buildHarfBuzzArch = new Action<string> ((arch) => {
|
||||
// build libHarfBuzzSharp
|
||||
// RunProcess ("make", new ProcessSettings {
|
||||
// Arguments = "clean",
|
||||
// WorkingDirectory = "native-builds/libHarfBuzzSharp_linux",
|
||||
// });
|
||||
RunProcess ("make", new ProcessSettings {
|
||||
Arguments = "ARCH=" + arch + " VERSION=" + VERSION_FILE,
|
||||
WorkingDirectory = "native-builds/libHarfBuzzSharp_linux",
|
||||
});
|
||||
|
||||
// copy libHarfBuzzSharp to output
|
||||
if (!DirectoryExists ("native-builds/lib/linux/" + arch)) {
|
||||
CreateDirectory ("native-builds/lib/linux/" + arch);
|
||||
}
|
||||
CopyFileToDirectory ("native-builds/libHarfBuzzSharp_linux/bin/" + arch + "/libHarfBuzzSharp.so." + VERSION_SONAME, "native-builds/lib/linux/" + arch);
|
||||
});
|
||||
|
||||
foreach (var arch in BUILD_ARCH) {
|
||||
buildArch (arch);
|
||||
buildHarfBuzzArch (arch);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -21,6 +21,6 @@
|
|||
<file src="output/portable/HarfBuzzSharp.dll" target="lib/portable-net45+win8+wpa81+wp8" />
|
||||
<!--<file src="output/docs/msxml/HarfBuzzSharp.xml" target="lib/portable-net45+win8+wpa81+wp8" />-->
|
||||
<!-- .NET Core -->
|
||||
<!--<file src="output/linux/x64/libHarfBuzzSharp.so" target="runtimes/linux-x64/native/libHarfBuzzSharp.so" />-->
|
||||
<file src="output/linux/x64/libHarfBuzzSharp.so" target="runtimes/linux-x64/native/libHarfBuzzSharp.so" />
|
||||
</files>
|
||||
</package>
|
Загрузка…
Ссылка в новой задаче