mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Add libuv dependency (#1109)
This commit is contained in:
committed by
Peter Johnson
parent
8958c4eabd
commit
859b457c3d
@@ -20,6 +20,14 @@ ext {
|
||||
|
||||
apply from: "${rootDir}/shared/opencv.gradle"
|
||||
|
||||
ext {
|
||||
sharedUvwConfigs = [myRobotCpp : [],
|
||||
myRobotCppStatic: []]
|
||||
staticUvwConfigs = [:]
|
||||
}
|
||||
|
||||
apply from: "${rootDir}/shared/libuv.gradle"
|
||||
|
||||
mainClassName = 'edu.wpi.first.wpilibj.RobotBase'
|
||||
|
||||
apply plugin: 'com.github.johnrengelman.shadow'
|
||||
|
||||
@@ -24,6 +24,18 @@ staticGtestConfigs["${nativeName}Test"] = []
|
||||
|
||||
apply from: "${rootDir}/shared/googletest.gradle"
|
||||
|
||||
ext {
|
||||
sharedUvwConfigs = [:]
|
||||
staticUvwConfigs = [:]
|
||||
}
|
||||
|
||||
sharedUvwConfigs["${nativeName}"] = []
|
||||
sharedUvwConfigs["${nativeName}Base"] = []
|
||||
sharedUvwConfigs["${nativeName}Dev"] = []
|
||||
sharedUvwConfigs["${nativeName}Test"] = []
|
||||
|
||||
apply from: "${rootDir}/shared/libuv.gradle"
|
||||
|
||||
model {
|
||||
components {
|
||||
"${nativeName}Base"(NativeLibrarySpec) {
|
||||
|
||||
@@ -15,6 +15,19 @@ ext {
|
||||
|
||||
apply from: "${rootDir}/shared/java/javacommon.gradle"
|
||||
|
||||
ext {
|
||||
sharedUvwConfigs = [:]
|
||||
staticUvwConfigs = [:]
|
||||
}
|
||||
|
||||
sharedUvwConfigs["${nativeName}"] = []
|
||||
sharedUvwConfigs["${nativeName}Base"] = []
|
||||
sharedUvwConfigs["${nativeName}Dev"] = []
|
||||
sharedUvwConfigs["${nativeName}Test"] = []
|
||||
staticUvwConfigs["${nativeName}JNI"] = []
|
||||
|
||||
apply from: "${rootDir}/shared/libuv.gradle"
|
||||
|
||||
dependencies {
|
||||
compile project(':wpiutil')
|
||||
devCompile project(':wpiutil')
|
||||
|
||||
13
shared/libuv.gradle
Normal file
13
shared/libuv.gradle
Normal file
@@ -0,0 +1,13 @@
|
||||
model {
|
||||
dependencyConfigs {
|
||||
libuv(DependencyConfig) {
|
||||
groupId = 'edu.wpi.first.thirdparty.frc2018'
|
||||
artifactId = 'uvw'
|
||||
headerClassifier = 'headers'
|
||||
ext = 'zip'
|
||||
version = '1.8.1-1.20.3'
|
||||
sharedConfigs = project.sharedUvwConfigs
|
||||
staticConfigs = project.staticUvwConfigs
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,16 @@ if (!project.hasProperty('onlyAthena')) {
|
||||
ext.skipAthena = true
|
||||
apply from: "${rootDir}/shared/config.gradle"
|
||||
|
||||
ext {
|
||||
sharedUvwConfigs = [:]
|
||||
staticUvwConfigs = [:]
|
||||
}
|
||||
|
||||
sharedUvwConfigs["${pluginName}"] = []
|
||||
sharedUvwConfigs["${pluginName}Dev"] = []
|
||||
|
||||
apply from: "${rootDir}/shared/libuv.gradle"
|
||||
|
||||
model {
|
||||
components {
|
||||
"${pluginName}"(NativeLibrarySpec) {
|
||||
|
||||
@@ -60,6 +60,16 @@ ext {
|
||||
|
||||
apply from: "${rootDir}/shared/opencv.gradle"
|
||||
|
||||
ext {
|
||||
sharedUvwConfigs = [wpilibc : [],
|
||||
wpilibcBase: [],
|
||||
wpilibcDev : [],
|
||||
wpilibcTest: []]
|
||||
staticUvwConfigs = [:]
|
||||
}
|
||||
|
||||
apply from: "${rootDir}/shared/libuv.gradle"
|
||||
|
||||
project(':').libraryBuild.dependsOn build
|
||||
|
||||
ext {
|
||||
|
||||
@@ -33,10 +33,14 @@ templatesTree.list(new FilenameFilter() {
|
||||
ext {
|
||||
sharedCvConfigs = examplesMap + templatesMap + [commands: []]
|
||||
staticCvConfigs = [:]
|
||||
sharedUvwConfigs = examplesMap + templatesMap + [commands: []]
|
||||
staticUvwConfigs = [:]
|
||||
useJava = false
|
||||
useCpp = true
|
||||
}
|
||||
|
||||
apply from: "${rootDir}/shared/libuv.gradle"
|
||||
|
||||
apply from: "${rootDir}/shared/opencv.gradle"
|
||||
|
||||
model {
|
||||
|
||||
@@ -18,6 +18,13 @@ apply from: "${rootDir}/shared/opencv.gradle"
|
||||
|
||||
apply from: "${rootDir}/shared/googletest.gradle"
|
||||
|
||||
ext {
|
||||
sharedUvwConfigs = [wpilibcIntegrationTests: []]
|
||||
staticUvwConfigs = [:]
|
||||
}
|
||||
|
||||
apply from: "${rootDir}/shared/libuv.gradle"
|
||||
|
||||
model {
|
||||
components {
|
||||
wpilibcIntegrationTests(NativeExecutableSpec) {
|
||||
|
||||
@@ -87,6 +87,13 @@ ext {
|
||||
|
||||
apply from: "${rootDir}/shared/opencv.gradle"
|
||||
|
||||
ext {
|
||||
sharedUvwConfigs = [wpilibjDev: []]
|
||||
staticUvwConfigs = [:]
|
||||
}
|
||||
|
||||
apply from: "${rootDir}/shared/libuv.gradle"
|
||||
|
||||
model {
|
||||
components {
|
||||
wpilibjDev(NativeExecutableSpec) {
|
||||
|
||||
Reference in New Issue
Block a user