Files
allwpilib/wpilibcIntegrationTests/build.gradle
Fred Silberberg 8d1c51b7e9 Update image 2017 v5 (#254)
* Updated the image version and dependent libraries to 2017 v5.

* Updated version for beta 1

* Some additional library updates, task updates, and rpath updates
2016-10-08 00:13:31 -07:00

49 lines
1.7 KiB
Groovy

apply plugin: 'cpp'
defineNetworkTablesProperties()
defineWpiUtilProperties()
ext.shared = "${project(':wpilibc').projectDir.getAbsolutePath()}/shared"
ext.athena = "${project(':wpilibc').projectDir.getAbsolutePath()}/athena"
ext.hal = project(':hal').projectDir.getAbsolutePath()
model {
components {
FRCUserProgram(NativeExecutableSpec) {
targetPlatform 'arm'
binaries.all {
tasks.withType(CppCompile) {
addNiLibraryLinks(linker, targetPlatform)
addNetworkTablesLibraryLinks(it, linker, targetPlatform)
}
cppCompiler.args '-pthread', '-Wno-unused-variable'
linker.args '-pthread', '-Wno-unused-variable', '-Wl,-rpath,/opt/GenICam_v3_0_NI/bin/Linux32_ARM'
}
sources {
cpp {
def dir = 'wpilibC++IntegrationTests'
source {
srcDir 'src'
include '**/*.cpp'
}
source {
srcDir 'gtest/src'
include 'gtest-all.cc', 'gtest_main.cc'
}
exportedHeaders {
srcDirs = ['include', 'gtest', 'gtest/include',
"${project.athena}/include", "${project.shared}/include",
"${project.hal}/include/HAL", netTablesInclude]
include '**/*.h'
}
lib project: ':wpilibc', library: 'wpilib_nonshared', linkage: 'static'
lib project: ':hal', library: 'HALAthena', linkage: 'static'
}
}
}
}
}