blob: 4aafd266c7925bd007dd6f1e9e7cb0c8ac7b202f [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 {
James Kuszmaulcf324122023-01-14 14:07:17 -080026 maven {
27 url = 'https://frcmaven.wpi.edu/artifactory/ex-mvn'
28 }
Brian Silverman8fce7482020-01-05 13:18:21 -080029}
30
31dependencies {
Austin Schuh75263e32022-02-22 18:05:32 -080032 implementation 'com.google.code.gson:gson:2.8.9'
Brian Silverman8fce7482020-01-05 13:18:21 -080033
34 implementation project(':wpiutil')
James Kuszmaulcf324122023-01-14 14:07:17 -080035 implementation project(':wpinet')
Brian Silverman8fce7482020-01-05 13:18:21 -080036 implementation project(':ntcore')
37 implementation project(':cscore')
38 implementation project(':cameraserver')
39}
40
41model {
42 components {
43 multiCameraServerCpp(NativeExecutableSpec) {
Brian Silverman8fce7482020-01-05 13:18:21 -080044 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 Schuh812d0d12021-11-04 20:16:48 -070057 lib project: ':cameraserver', library: 'cameraserver', linkage: 'static'
James Kuszmaulcf324122023-01-14 14:07:17 -080058 project(':ntcore').addNtcoreDependency(binary, 'static')
Austin Schuh812d0d12021-11-04 20:16:48 -070059 lib project: ':cscore', library: 'cscore', linkage: 'static'
James Kuszmaulcf324122023-01-14 14:07:17 -080060 lib project: ':wpinet', library: 'wpinet', linkage: 'static'
Austin Schuh812d0d12021-11-04 20:16:48 -070061 lib project: ':wpiutil', library: 'wpiutil', linkage: 'static'
Brian Silverman8fce7482020-01-05 13:18:21 -080062 }
63 }
64 }
65}