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 { |
| 26 | mavenCentral() |
| 27 | } |
| 28 | |
| 29 | dependencies { |
Austin Schuh | 75263e3 | 2022-02-22 18:05:32 -0800 | [diff] [blame^] | 30 | implementation 'com.google.code.gson:gson:2.8.9' |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 31 | |
| 32 | implementation project(':wpiutil') |
| 33 | implementation project(':ntcore') |
| 34 | implementation project(':cscore') |
| 35 | implementation project(':cameraserver') |
| 36 | } |
| 37 | |
| 38 | model { |
| 39 | components { |
| 40 | multiCameraServerCpp(NativeExecutableSpec) { |
| 41 | targetBuildTypes 'release' |
| 42 | sources { |
| 43 | cpp { |
| 44 | source { |
| 45 | srcDirs = ['src/main/native/cpp'] |
| 46 | includes = ['**/*.cpp'] |
| 47 | } |
| 48 | exportedHeaders { |
| 49 | srcDirs = ['src/main/native/include'] |
| 50 | includes = ['**/*.h'] |
| 51 | } |
| 52 | } |
| 53 | } |
| 54 | binaries.all { binary -> |
Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame] | 55 | lib project: ':cameraserver', library: 'cameraserver', linkage: 'static' |
| 56 | lib project: ':ntcore', library: 'ntcore', linkage: 'static' |
| 57 | lib project: ':cscore', library: 'cscore', linkage: 'static' |
| 58 | lib project: ':wpiutil', library: 'wpiutil', linkage: 'static' |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 59 | } |
| 60 | } |
| 61 | } |
| 62 | } |