Get halsim_gazebo building again (#1201)

This commit is contained in:
Jeremy White
2018-07-20 18:24:48 -05:00
committed by Peter Johnson
parent fe5d7dd6ba
commit 74efe5aafe
17 changed files with 9 additions and 1 deletions

View File

@@ -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 = ""

View File

@@ -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()

View File

@@ -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"