mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[ntcoreffi] Use static runtime for ntcoreffi (#7422)
This avoids requiring users of this library to keep up to date with the latest MSVC runtimes.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import org.gradle.internal.os.OperatingSystem
|
||||
|
||||
plugins {
|
||||
id 'c'
|
||||
id 'cpp'
|
||||
@@ -119,6 +121,10 @@ task cppHeadersZip(type: Zip) {
|
||||
}
|
||||
}
|
||||
|
||||
if (OperatingSystem.current().isWindows() && !project.hasProperty('ntcoreffibuild')) {
|
||||
return
|
||||
}
|
||||
|
||||
build.dependsOn cppHeadersZip
|
||||
addTaskToCopyAllOutputs(cppHeadersZip)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user