2019-11-01 20:26:05 -07:00
|
|
|
if (!project.hasProperty('onlylinuxathena') && !project.hasProperty('onlylinuxraspbian') && !project.hasProperty('onlylinuxaarch64bionic')) {
|
|
|
|
|
|
|
|
|
|
description = "A plugin that creates a simulation gui"
|
|
|
|
|
|
|
|
|
|
ext {
|
|
|
|
|
includeWpiutil = true
|
2020-04-05 23:09:50 -07:00
|
|
|
includeNtCore = true
|
2019-11-01 20:26:05 -07:00
|
|
|
pluginName = 'halsim_gui'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
apply plugin: 'google-test-test-suite'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ext {
|
|
|
|
|
staticGtestConfigs = [:]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
staticGtestConfigs["${pluginName}Test"] = []
|
|
|
|
|
apply from: "${rootDir}/shared/googletest.gradle"
|
|
|
|
|
|
|
|
|
|
apply from: "${rootDir}/shared/plugins/setupBuild.gradle"
|
|
|
|
|
|
|
|
|
|
model {
|
|
|
|
|
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()) {
|
|
|
|
|
it.linker.args << '-framework' << 'Cocoa' << '-framework' << 'IOKit' << '-framework' << 'CoreFoundation' << '-framework' << 'CoreVideo'
|
|
|
|
|
} else {
|
2020-06-27 16:02:40 -07:00
|
|
|
it.linker.args << '-lX11'
|
2019-11-01 20:26:05 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|