Brian Silverman | f7f267a | 2017-02-04 16:16:08 -0800 | [diff] [blame^] | 1 | apply plugin: 'cpp' |
| 2 | |
| 3 | defineNetworkTablesProperties() |
| 4 | defineWpiUtilProperties() |
| 5 | defineCsCoreProperties() |
| 6 | |
| 7 | ext.shared = "${project(':wpilibc').projectDir.getAbsolutePath()}/shared" |
| 8 | ext.athena = "${project(':wpilibc').projectDir.getAbsolutePath()}/athena" |
| 9 | ext.hal = project(':hal').projectDir.getAbsolutePath() |
| 10 | |
| 11 | model { |
| 12 | components { |
| 13 | FRCUserProgram(NativeExecutableSpec) { |
| 14 | targetPlatform 'roborio-arm' |
| 15 | binaries.all { |
| 16 | tasks.withType(CppCompile) { |
| 17 | cppCompiler.args "-DNAMESPACED_WPILIB" |
| 18 | addNiLibraryLinks(linker, targetPlatform) |
| 19 | addNetworkTablesLibraryLinks(it, linker, targetPlatform) |
| 20 | addCsCoreLibraryLinks(it, linker, targetPlatform) |
| 21 | } |
| 22 | |
| 23 | cppCompiler.args '-pthread', '-Wno-unused-variable' |
| 24 | linker.args '-pthread', '-Wno-unused-variable', '-Wl,-rpath,/opt/GenICam_v3_0_NI/bin/Linux32_ARM' |
| 25 | } |
| 26 | sources { |
| 27 | cpp { |
| 28 | def dir = 'wpilibC++IntegrationTests' |
| 29 | source { |
| 30 | srcDir 'src' |
| 31 | include '**/*.cpp' |
| 32 | } |
| 33 | source { |
| 34 | srcDir 'gtest/src' |
| 35 | include 'gtest-all.cc', 'gtest_main.cc' |
| 36 | } |
| 37 | exportedHeaders { |
| 38 | srcDirs = ['include', 'gtest', 'gtest/include', |
| 39 | "${project.athena}/include", "${project.shared}/include", |
| 40 | "${project.hal}/include/HAL", netTablesInclude, wpiUtilInclude, csCoreInclude] |
| 41 | include '**/*.h' |
| 42 | } |
| 43 | |
| 44 | lib project: ':wpilibc', library: 'wpilibc', linkage: 'shared' |
| 45 | lib project: ':hal', library: 'HALAthena', linkage: 'shared' |
| 46 | } |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | } |
| 51 | } |