Add libuv dependency (#1109)

This commit is contained in:
Thad House
2018-05-27 22:56:58 -07:00
committed by Peter Johnson
parent 8958c4eabd
commit 859b457c3d
9 changed files with 84 additions and 0 deletions

View File

@@ -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'

View File

@@ -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) {

View File

@@ -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
View 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
}
}
}

View File

@@ -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) {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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) {

View File

@@ -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) {