mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
This uses Dear Imgui to provide a cross-platform integrated GUI for robot simulation. The GUI provides fully integrated DS and joystick support so it's not necessary to run the official DS.
37 lines
1.2 KiB
Groovy
37 lines
1.2 KiB
Groovy
if (!project.hasProperty('onlylinuxathena') && !project.hasProperty('onlylinuxraspbian') && !project.hasProperty('onlylinuxaarch64bionic')) {
|
|
|
|
description = "A plugin that creates a simulation gui"
|
|
|
|
ext {
|
|
includeWpiutil = true
|
|
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.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 {
|
|
it.linker.args << '-lX11' << '-lvulkan'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|