mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Get halsim_gazebo building again (#1201)
This commit is contained in:
committed by
Peter Johnson
parent
fe5d7dd6ba
commit
74efe5aafe
@@ -6,6 +6,7 @@ apply plugin: "google-test"
|
||||
|
||||
ext.skipAthena = true
|
||||
|
||||
apply from: "${rootDir}/shared/config.gradle"
|
||||
|
||||
/* If gz_msgs or gazebo is not available, do not attempt a build */
|
||||
def gazebo_version = ""
|
||||
|
||||
@@ -7,6 +7,7 @@ apply plugin: 'edu.wpi.first.NativeUtils'
|
||||
|
||||
/* The simulation does not run on real hardware; so we always skip Athena */
|
||||
ext.skipAthena = true
|
||||
apply from: "${rootDir}/shared/config.gradle"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
||||
@@ -4,7 +4,7 @@ apply plugin: 'edu.wpi.first.NativeUtils'
|
||||
apply plugin: 'cpp'
|
||||
|
||||
ext.skipAthena = true
|
||||
|
||||
ext.pluginName = 'halsim_gazebo'
|
||||
|
||||
/* If gz_msgs or gazebo is not available, do not attempt a build */
|
||||
def gazebo_version = ""
|
||||
@@ -37,9 +37,15 @@ tasks.whenTaskAdded { task ->
|
||||
task.onlyIf { !gz_msgs_project.hasProperty('skip_gz_msgs') && !project.hasProperty('skip_frc_plugins') }
|
||||
}
|
||||
|
||||
apply from: "${rootDir}/shared/plugins/setupBuild.gradle"
|
||||
|
||||
model {
|
||||
binaries {
|
||||
all {
|
||||
if (it instanceof StaticLibraryBinarySpec) {
|
||||
it.buildable = false
|
||||
return
|
||||
}
|
||||
linker.args gazebo_linker_args
|
||||
cppCompiler.args gazebo_cppflags
|
||||
lib project: ":simulation:gz_msgs", library: "gz_msgs", linkage: "static"
|
||||
|
||||
Reference in New Issue
Block a user