mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Rename the following folders: hal/lib/Athena -> hal/lib/athena hal/lib/Desktop -> hal/lib/sim hal/lib/Shared -> hal/lib/shared wpilibc/Athena -> wpilibc/athena wpilibc/simulation -> wpilibc/sim Windows users may need to run gradlew clean after updating.
48 lines
1.7 KiB
Groovy
48 lines
1.7 KiB
Groovy
apply plugin: 'cpp'
|
|
|
|
defineNetworkTablesProperties()
|
|
|
|
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) {
|
|
dependsOn addNiLibraryLinks
|
|
dependsOn addNetworkTablesLibraryLinks
|
|
}
|
|
|
|
cppCompiler.args '-pthread', '-Wno-unused-variable'
|
|
linker.args '-pthread', '-Wno-unused-variable', '-Wl,-rpath,/opt/GenICam_v2_3/bin/Linux_armv7-a'
|
|
}
|
|
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'
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|