mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
This will allow dependencies such as wpilibc to update to use wpiutil without breaking "normal" ntcore static library use in the meantime. This commit also restructures the gradle files by creating a new (placeholder) wpiutil project, and moving the ntcore project into a separate gradle file. Added toolchains/native.gradle (refactored from ntcore). Also fixes ntcore skipJava on Windows by providing an alternate .def file for this case.
26 lines
640 B
Groovy
26 lines
640 B
Groovy
import org.gradle.internal.os.OperatingSystem
|
|
|
|
ext.isArm = false
|
|
ext.buildPlatform = OperatingSystem.current().getFamilyName()
|
|
|
|
if (OperatingSystem.current().isLinux()) {
|
|
apply from: "${rootDir}/toolchains/linux.gradle"
|
|
} else if (OperatingSystem.current().isMacOsX()) {
|
|
apply from: "${rootDir}/toolchains/mac.gradle"
|
|
} else if (OperatingSystem.current().isWindows()) {
|
|
apply from: "${rootDir}/toolchains/windows.gradle"
|
|
} else {
|
|
throw new GradleException("${name} does not support building on ${ext.buildPlatform}.")
|
|
}
|
|
|
|
model {
|
|
platforms {
|
|
x86 {
|
|
architecture 'x86'
|
|
}
|
|
x64 {
|
|
architecture 'x86_64'
|
|
}
|
|
}
|
|
}
|