Unbreak gradle build when other compilers installed (#1958)

There was dependency breakage in halsim_gui, which is only available on desktop.
This commit is contained in:
Peter Johnson
2019-10-19 09:50:49 -07:00
committed by GitHub
parent 53816155ba
commit 2ff694fa49

View File

@@ -23,6 +23,10 @@ if (!project.hasProperty('onlylinuxathena') && !project.hasProperty('onlylinuxra
binaries {
all {
nativeUtils.useRequiredLibrary(it, 'imgui_static')
if (it.targetPlatform.name == nativeUtils.wpi.platforms.roborio || it.targetPlatform.name == nativeUtils.wpi.platforms.raspbian || it.targetPlatform.name == nativeUtils.wpi.platforms.aarch64bionic) {
it.buildable = false
return
}
if (it.targetPlatform.operatingSystem.isWindows()) {
it.linker.args << 'Gdi32.lib' << 'Shell32.lib'
} else if (it.targetPlatform.operatingSystem.isMacOsX()) {