blob: f7a78c17d2c1ad188915003a679ae4209109e8a6 [file] [log] [blame]
Brian Silverman8fce7482020-01-05 13:18:21 -08001plugins {
2 id 'java'
3 id 'application'
4 id 'cpp'
5 id 'visual-studio'
6}
7
8apply plugin: 'edu.wpi.first.NativeUtils'
9
10apply from: "${rootDir}/shared/config.gradle"
11
12ext {
13 staticCvConfigs = [multiCameraServerCpp: []]
14 useJava = true
15 useCpp = true
16 skipDev = true
17}
18
19apply from: "${rootDir}/shared/opencv.gradle"
20
Austin Schuh1e69f942020-11-14 15:06:14 -080021mainClassName = 'edu.wpi.Main'
Brian Silverman8fce7482020-01-05 13:18:21 -080022
23apply plugin: 'com.github.johnrengelman.shadow'
24
25repositories {
26 mavenCentral()
27}
28
29dependencies {
Austin Schuh75263e32022-02-22 18:05:32 -080030 implementation 'com.google.code.gson:gson:2.8.9'
Brian Silverman8fce7482020-01-05 13:18:21 -080031
32 implementation project(':wpiutil')
33 implementation project(':ntcore')
34 implementation project(':cscore')
35 implementation project(':cameraserver')
36}
37
38model {
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 Schuh812d0d12021-11-04 20:16:48 -070055 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 Silverman8fce7482020-01-05 13:18:21 -080059 }
60 }
61 }
62}