2018-12-07 23:57:37 -08:00
|
|
|
plugins {
|
|
|
|
|
id 'java'
|
|
|
|
|
id 'application'
|
|
|
|
|
id 'cpp'
|
|
|
|
|
id 'visual-studio'
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-13 21:44:00 -08:00
|
|
|
apply plugin: 'org.wpilib.NativeUtils'
|
2018-12-07 23:57:37 -08:00
|
|
|
|
|
|
|
|
apply from: "${rootDir}/shared/config.gradle"
|
|
|
|
|
|
|
|
|
|
ext {
|
|
|
|
|
staticCvConfigs = [multiCameraServerCpp: []]
|
|
|
|
|
useJava = true
|
|
|
|
|
useCpp = true
|
|
|
|
|
skipDev = true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
apply from: "${rootDir}/shared/opencv.gradle"
|
|
|
|
|
|
2023-10-04 19:31:25 -07:00
|
|
|
application {
|
2025-11-07 19:58:22 -05:00
|
|
|
mainClass = 'org.wpilib.Main'
|
2023-10-04 19:31:25 -07:00
|
|
|
}
|
2018-12-07 23:57:37 -08:00
|
|
|
|
2024-12-12 22:19:14 -05:00
|
|
|
apply plugin: 'com.gradleup.shadow'
|
2018-12-07 23:57:37 -08:00
|
|
|
|
|
|
|
|
repositories {
|
2022-05-08 13:59:58 -07:00
|
|
|
maven {
|
|
|
|
|
url = 'https://frcmaven.wpi.edu/artifactory/ex-mvn'
|
|
|
|
|
}
|
2018-12-07 23:57:37 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
2025-08-08 23:04:02 -07:00
|
|
|
implementation 'com.google.code.gson:gson:2.13.1'
|
2018-12-07 23:57:37 -08:00
|
|
|
|
2019-11-12 17:14:04 -08:00
|
|
|
implementation project(':wpiutil')
|
2022-05-07 10:54:14 -07:00
|
|
|
implementation project(':wpinet')
|
2019-11-12 17:14:04 -08:00
|
|
|
implementation project(':ntcore')
|
|
|
|
|
implementation project(':cscore')
|
|
|
|
|
implementation project(':cameraserver')
|
2018-12-07 23:57:37 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
model {
|
|
|
|
|
components {
|
|
|
|
|
multiCameraServerCpp(NativeExecutableSpec) {
|
|
|
|
|
sources {
|
|
|
|
|
cpp {
|
|
|
|
|
source {
|
|
|
|
|
srcDirs = ['src/main/native/cpp']
|
|
|
|
|
includes = ['**/*.cpp']
|
|
|
|
|
}
|
|
|
|
|
exportedHeaders {
|
|
|
|
|
srcDirs = ['src/main/native/include']
|
|
|
|
|
includes = ['**/*.h']
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
binaries.all { binary ->
|
2020-12-30 16:17:20 -08:00
|
|
|
lib project: ':cameraserver', library: 'cameraserver', linkage: 'static'
|
2022-10-08 10:01:31 -07:00
|
|
|
project(':ntcore').addNtcoreDependency(binary, 'static')
|
2020-12-30 16:17:20 -08:00
|
|
|
lib project: ':cscore', library: 'cscore', linkage: 'static'
|
2022-05-07 10:54:14 -07:00
|
|
|
lib project: ':wpinet', library: 'wpinet', linkage: 'static'
|
2020-12-30 16:17:20 -08:00
|
|
|
lib project: ':wpiutil', library: 'wpiutil', linkage: 'static'
|
2018-12-07 23:57:37 -08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|