From bc3d01a72166ecc0d5e4366f8e5fb63d54bd0282 Mon Sep 17 00:00:00 2001 From: Griffin Della Grotte Date: Tue, 27 Dec 2022 23:43:21 -0500 Subject: [PATCH] [build] Add platform check to doxygen plugin (#4862) This allows the build to work on aarch64 and other platforms without downloadable doxygen binaries. --- docs/build.gradle | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/build.gradle b/docs/build.gradle index 60ed707615..e00e0f3a41 100644 --- a/docs/build.gradle +++ b/docs/build.gradle @@ -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' + } } }