Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 1 | plugins { |
| 2 | id 'java' |
| 3 | id 'application' |
| 4 | id 'cpp' |
| 5 | id 'visual-studio' |
| 6 | } |
| 7 | |
| 8 | apply plugin: 'edu.wpi.first.NativeUtils' |
| 9 | |
| 10 | apply from: "${rootDir}/shared/config.gradle" |
| 11 | |
| 12 | ext { |
| 13 | staticCvConfigs = [multiCameraServerCpp: []] |
| 14 | useJava = true |
| 15 | useCpp = true |
| 16 | skipDev = true |
| 17 | } |
| 18 | |
| 19 | apply from: "${rootDir}/shared/opencv.gradle" |
| 20 | |
Austin Schuh | 1e69f94 | 2020-11-14 15:06:14 -0800 | [diff] [blame] | 21 | mainClassName = 'edu.wpi.Main' |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 22 | |
| 23 | apply plugin: 'com.github.johnrengelman.shadow' |
| 24 | |
| 25 | repositories { |
James Kuszmaul | cf32412 | 2023-01-14 14:07:17 -0800 | [diff] [blame^] | 26 | maven { |
| 27 | url = 'https://frcmaven.wpi.edu/artifactory/ex-mvn' |
| 28 | } |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | dependencies { |
Austin Schuh | 75263e3 | 2022-02-22 18:05:32 -0800 | [diff] [blame] | 32 | implementation 'com.google.code.gson:gson:2.8.9' |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 33 | |
| 34 | implementation project(':wpiutil') |
James Kuszmaul | cf32412 | 2023-01-14 14:07:17 -0800 | [diff] [blame^] | 35 | implementation project(':wpinet') |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 36 | implementation project(':ntcore') |
| 37 | implementation project(':cscore') |
| 38 | implementation project(':cameraserver') |
| 39 | } |
| 40 | |
| 41 | model { |
| 42 | components { |
| 43 | multiCameraServerCpp(NativeExecutableSpec) { |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 44 | sources { |
| 45 | cpp { |
| 46 | source { |
| 47 | srcDirs = ['src/main/native/cpp'] |
| 48 | includes = ['**/*.cpp'] |
| 49 | } |
| 50 | exportedHeaders { |
| 51 | srcDirs = ['src/main/native/include'] |
| 52 | includes = ['**/*.h'] |
| 53 | } |
| 54 | } |
| 55 | } |
| 56 | binaries.all { binary -> |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 57 | lib project: ':cameraserver', library: 'cameraserver', linkage: 'static' |
James Kuszmaul | cf32412 | 2023-01-14 14:07:17 -0800 | [diff] [blame^] | 58 | project(':ntcore').addNtcoreDependency(binary, 'static') |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 59 | lib project: ':cscore', library: 'cscore', linkage: 'static' |
James Kuszmaul | cf32412 | 2023-01-14 14:07:17 -0800 | [diff] [blame^] | 60 | lib project: ':wpinet', library: 'wpinet', linkage: 'static' |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 61 | lib project: ':wpiutil', library: 'wpiutil', linkage: 'static' |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 62 | } |
| 63 | } |
| 64 | } |
| 65 | } |