Build for Vulkan on all supported platforms (#1287)
This commit is contained in:
Родитель
7a4d067456
Коммит
e30ebdec35
|
@ -37,7 +37,8 @@ var UNSUPPORTED_TESTS = Argument ("unsupportedTests", "");
|
|||
var THROW_ON_TEST_FAILURE = Argument ("throwOnTestFailure", true);
|
||||
var NUGET_DIFF_PRERELEASE = Argument ("nugetDiffPrerelease", false);
|
||||
|
||||
var SUPPORT_VULKAN_VAR = Argument ("supportVulkan", EnvironmentVariable ("SUPPORT_VULKAN") ?? "false");
|
||||
var PLATFORM_SUPPORTS_VULKAN_TESTS = (IsRunningOnWindows () || IsRunningOnLinux ()).ToString ();
|
||||
var SUPPORT_VULKAN_VAR = Argument ("supportVulkan", EnvironmentVariable ("SUPPORT_VULKAN") ?? PLATFORM_SUPPORTS_VULKAN_TESTS);
|
||||
var SUPPORT_VULKAN = SUPPORT_VULKAN_VAR == "1" || SUPPORT_VULKAN_VAR.ToLower () == "true";
|
||||
|
||||
var NuGetToolPath = Context.Tools.Resolve ("nuget.exe");
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 5e82f5d99a2c77980efd793e0f9e4e89ee35f48d
|
||||
Subproject commit 25edafc506731ebc66032b3e3376142395879dd4
|
|
@ -5,6 +5,9 @@ DirectoryPath OUTPUT_PATH = MakeAbsolute(ROOT_PATH.Combine("output/native/androi
|
|||
|
||||
DirectoryPath ANDROID_NDK_HOME = Argument("ndk", EnvironmentVariable("ANDROID_NDK_HOME") ?? EnvironmentVariable("ANDROID_NDK_ROOT") ?? PROFILE_PATH.Combine("android-ndk").FullPath);
|
||||
|
||||
string SUPPORT_VULKAN_VAR = Argument ("supportVulkan", EnvironmentVariable ("SUPPORT_VULKAN") ?? "true");
|
||||
bool SUPPORT_VULKAN = SUPPORT_VULKAN_VAR == "1" || SUPPORT_VULKAN_VAR.ToLower () == "true";
|
||||
|
||||
Task("libSkiaSharp")
|
||||
.IsDependentOn("git-sync-deps")
|
||||
.WithCriteria(IsRunningOnMac() || IsRunningOnWindows())
|
||||
|
@ -33,6 +36,7 @@ Task("libSkiaSharp")
|
|||
$"skia_use_system_libpng=false " +
|
||||
$"skia_use_system_libwebp=false " +
|
||||
$"skia_use_system_zlib=false " +
|
||||
$"skia_use_vulkan={SUPPORT_VULKAN} ".ToLower () +
|
||||
$"extra_cflags=[ '-DSKIA_C_DLL', '-DHAVE_SYSCALL_GETRANDOM', '-DXML_DEV_URANDOM' ] " +
|
||||
$"ndk='{ANDROID_NDK_HOME}' " +
|
||||
$"ndk_api={(skiaArch == "x64" || skiaArch == "arm64" ? 21 : 16)}");
|
||||
|
|
|
@ -6,7 +6,7 @@ DirectoryPath OUTPUT_PATH = MakeAbsolute(ROOT_PATH.Combine("output/native"));
|
|||
string SUPPORT_GPU_VAR = Argument("supportGpu", EnvironmentVariable("SUPPORT_GPU") ?? "true").ToLower();
|
||||
bool SUPPORT_GPU = SUPPORT_GPU_VAR == "1" || SUPPORT_GPU_VAR == "true";
|
||||
|
||||
string SUPPORT_VULKAN_VAR = Argument ("supportVulkan", EnvironmentVariable ("SUPPORT_VULKAN") ?? "false");
|
||||
string SUPPORT_VULKAN_VAR = Argument ("supportVulkan", EnvironmentVariable ("SUPPORT_VULKAN") ?? "true");
|
||||
bool SUPPORT_VULKAN = SUPPORT_VULKAN_VAR == "1" || SUPPORT_VULKAN_VAR.ToLower () == "true";
|
||||
|
||||
string CC = Argument("cc", EnvironmentVariable("CC"));
|
||||
|
|
|
@ -398,7 +398,7 @@ stages:
|
|||
displayName: Tests (Windows)
|
||||
vmImage: $(VM_IMAGE_WINDOWS)
|
||||
target: tests
|
||||
additionalArgs: --skipExternals="all" --throwOnTestFailure=$(THROW_ON_TEST_FAILURE) --supportVulkan=true
|
||||
additionalArgs: --skipExternals="all" --throwOnTestFailure=$(THROW_ON_TEST_FAILURE)
|
||||
shouldPublish: false
|
||||
requiredArtifacts:
|
||||
- native_win32_x86_windows
|
||||
|
|
Загрузка…
Ссылка в новой задаче