[build] Add platform check to doxygen plugin (#4862)

This allows the build to work on aarch64 and other platforms without downloadable doxygen binaries.
This commit is contained in:
Griffin Della Grotte
2022-12-27 23:43:21 -05:00
committed by GitHub
parent bc473240ae
commit bc3d01a721

View File

@@ -40,9 +40,16 @@ cppProjectZips.add(project(':wpinet').cppHeadersZip)
cppProjectZips.add(project(':wpiutil').cppHeadersZip)
doxygen {
executables {
doxygen version : '1.9.4',
baseURI : 'https://frcmaven.wpi.edu/artifactory/generic-release-mirror/doxygen'
// Doxygen binaries are only provided for x86_64 platforms
// Other platforms will need to provide doxygen via their system
// See below maven and https://doxygen.nl/download.html for provided binaries
String arch = System.getProperty("os.arch");
if (arch.equals("x86_64") || arch.equals("amd64")) {
executables {
doxygen version : '1.9.4',
baseURI : 'https://frcmaven.wpi.edu/artifactory/generic-release-mirror/doxygen'
}
}
}